FreeRTOS for dsPIC33EV

eaoiyrioeaf wrote on Monday, January 09, 2017:

Hello Sir.
The FreeRTOS don’t have a Demo port for dspic33EV up to now. according to the Tutorial Guide, the best option is to adapting the dsPIC33FJ demo. while I’m trying to modifying the existing demo, seems there is a portasm_dsPIC.s file in this project need to be modified. It is easy to modify the statement #if defined( dsPIC30F ) || defined( dsPIC33F ) || defined( dsPIC33E ) . but I’m not sure whether there are other things need to be modified. I checked the overall project, and didn’t see where the function “vPortYield” has been called. Could you please give some ideal on what need to be adapted?
Thank you very much!

rtel wrote on Monday, January 09, 2017:

dsPIC24E is supported, but dsPIC33E parts are not officially supported
by FreeRTOS because they contain some registers that form part of the
task context but cannot be accessed by software. It is actually
unlikely these registers would actually get used though - unless you
were using hand tuned asm code.

Keeping the above in mind, there are some third party dsPIC33E ports
available from the FreeRTOS Interactive site.

eaoiyrioeaf wrote on Tuesday, January 10, 2017:

Thank you sir, the project can successfully built except one warning:
heap_1c:132:39: cast from pointer to integer of different size
do you think this warning can be ignored?

rtel wrote on Tuesday, January 10, 2017:

Yes. It can be ignored.

eaoiyrioeaf wrote on Wednesday, January 11, 2017:

Thanks alot.