Enable lightweight messages

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Enable lightweight messages

Jump to solution
679 Views
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 Kudos
1 Solution
435 Views
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

View solution in original post

0 Kudos
2 Replies
436 Views
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 Kudos
435 Views
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 Kudos