Enable lightweight messages

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Enable lightweight messages

ソリューションへジャンプ
1,728件の閲覧回数
intevac_coder
Contributor III

Hello,

How does one enable lightweight messages in a fresh project?  I am using:

 

CW 10.1

MQX 3.7

Kinetis K40 tower kit

 

I have loaded in the bsp_twrk40x256 and the lwmsgq_twrk40x256 projects and messaging works fine.  However, when I create a new project and try to use messages, the compiler throws errors when  including <lwmsgq.h>.

 

What files/projects have to be modified to include messaging (and other optional components)?  The user manual tells that the bsp needs to be modified but it doesn't tell what or how to make the modifications.

 

Thanks!

 

0 件の賞賛
返信
1 解決策
1,484件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi Intevac_coder,

Would you please post your new project?

"lwmsgq" is enabled by default so you shouldn't have to have changed anything in the new project.

Regards,

David

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,485件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi Intevac_coder,

Would you please post your new project?

"lwmsgq" is enabled by default so you shouldn't have to have changed anything in the new project.

Regards,

David

0 件の賞賛
返信
1,484件の閲覧回数
intevac_coder
Contributor III

David,

Thank you for the response.  I did find that lightweight messages worked after I added mqx.h and bsp.h in my task header. 

 

#include <mqx.h>

#include <bsp.h>

#include <lwmsgq.h>

 

Otherwise the compiler threw errors.

Thanks!

0 件の賞賛
返信