FX3 SDK Rtos example使用注意事项(新手入门手册)

[复制链接]
1893|2
 楼主| zengweitotty 发表于 2015-12-29 11:53 | 显示全部楼层 |阅读模式
本帖最后由 zengweitotty 于 2015-12-29 11:55 编辑

新手入门的系列文档【原创】
本贴讲解了Rtos example 中该如何正确使用,英文写的,就不翻译了。有空的时候给翻译成中文。

1. If you face the issue like following error code.

Error: Failed to register thread monitoring GPIO, status = 255

Error: Failed to register mutex monitoring GPIO, status = 255

Error: Failed to register semaphore monitoring GPIO, status = 255

Error: Failed to register event group monitoring GPIO, status = 255


2. The root cause is you do not enable CYU3P_PROFILE_ENmacro, our library libcyu3threadx.a has already enable the feature.
UINT tx_thread_set_profile_gpio(TX_THREAD *thread_ptr, ULONG gpio_id)
{
#ifdef CYU3P_PROFILE_EN
/* *******************
…..……
………..
**************/
    /* Return successto caller.  */
   return(TX_SUCCESS);
#else
    /* Feature is notenabled, return error.  */
   return(TX_FEATURE_NOT_ENABLED);               //returnerror code 0xFF
#endif
}
3. In the following snapshot of fx3_profile_debug.mak whenbuild the library, we enable the definition CYU3P_PROFILE_EN=1
file:///C:\Users\weiz\AppData\Local\Temp\msohtmlclip1\01\clip_image002.jpg
3. So you could choose the library from the following steps.
file:///C:\Users\weiz\AppData\Local\Temp\msohtmlclip1\01\clip_image004.jpg
4. This selection will the library in the following PATH: "${FX3_INSTALL_PATH}/fw_lib/${FX3SDKVERSION}/fx3_profile_debug"
file:///C:\Users\weiz\AppData\Local\Temp\msohtmlclip1\01\clip_image006.jpg
5. Then you could NOT see the previously error.
file:///C:\Users\weiz\AppData\Local\Temp\msohtmlclip1\01\clip_image008.jpg

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×

评分

参与人数 2威望 +3 收起 理由
wsjc1999 + 2 赞一个!
星PSOC + 1 很给力!

查看全部评分

 楼主| zengweitotty 发表于 2015-12-29 11:54 | 显示全部楼层
上传PDF 文档,方便查看
星PSOC 发表于 2015-12-30 13:33 | 显示全部楼层
好贴!学习了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

26

主题

61

帖子

19

粉丝
快速回复 在线客服 返回列表 返回顶部