FreeRTOS runs LPC2388 but not LPC2368

kenmosher wrote on Wednesday, July 15, 2009:

Hope someone can help?  We have a small project running with FreeRTOS 5.4.0 and the GNU Toolchain for ARM (GCC).  The project is just a skeleton right now which provides a serial console, some CAN stuff, some LCD output, etc.    We are using two MCB2300 Kiel boards … one with a 2388 and the other with a 2368.  The 2388 board runs fine.  The same code crashes immediately on the 2368 board (exactly the same .hex file) as soon as it tries to call xQueueCreate (or XTaskCreate if we comment out the queuecreate) in the main.c after startup/initialization successfully.  The two processors ought to be basically identical!  Any clues from the gurus? THANKS!

jwestmoreland wrote on Wednesday, July 15, 2009:

Ken,

The 2388 has about 40KB or so more of RAM than the 2368 - check the return value of xQueueCreate and spin when it fails.

You may have to reduce your heap allocation, min. stack size, and possibly queue sizes to get it to ‘fit’.

Regards,
John

kenmosher wrote on Thursday, July 16, 2009:

Thanks for the response!

I’ll look through that … my underlying assumption was that the 2388/68 were basically identical except for the pin package and the fact that the 2388 support OTG USB.  We’ll comb over the specs again and adjust some stuff and see what happens.  THANKS!

galbano wrote on Tuesday, September 22, 2009:

Hi,

I don’t know what the problem is. But I’m trying to get freeRTOS running on my LPC2388. I also use GCC ARM but can’t get the code to compile. Could you send me startup.s compile_batch file and the link file to xxxx@xxxx. Just to get freeRTOS running.

Thank you in advance.