打印

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

[复制链接]
1405|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

issue_with_profile.pdf

388.9 KB

评分
参与人数 2威望 +3 收起 理由
wsjc1999 + 2 赞一个!
星PSOC + 1 很给力!
沙发
zengweitotty|  楼主 | 2015-12-29 11:54 | 只看该作者
上传PDF 文档,方便查看

使用特权

评论回复
板凳
星PSOC| | 2015-12-30 13:33 | 只看该作者
好贴!学习了

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

26

主题

61

帖子

19

粉丝