Solution for Warning with Using dsPIC Series

Solution for Warning with Using dsPIC Series

Postby FxDev » Wed Aug 31, 2016 7:06 am

As you know dsPIC series microcontorllers are 16bit. So if you compile cocoOS with new version you can get "warning: cast to pointer from integer of different size" warning message.
If you want to fix that you have to do these:

1) From os_defines.h

typedef uint32_t Mem_t;

to

typedef uint16_t Mem_t;

2) From os_msgqueue.c in function "MsgQAllDelayed"

uint32_t nextMessage;

to

uint16_t nextMessage;

After that you will not get any warning message.
FxDev
 
Posts: 4
Joined: Tue Aug 04, 2015 6:44 am

Return to General topics

Who is online

Users browsing this forum: No registered users and 1 guest

cron