Enable lightweight messages

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Enable lightweight messages

跳至解决方案
660 次查看
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 解答
416 次查看
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 回复数
417 次查看
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 项奖励
416 次查看
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 项奖励