SuicidalTasks Kills Cortex R4F Port

westmorelandeng wrote on Thursday, March 26, 2015:

Hmmm. OK - the port is here:

x:\FreeRTOS_SVN\freertos\trunk\FreeRTOS\Demo\CORTEX_R4_RM48_TMS570_CCS5

I ran the ‘main full’ on the TMS570 with FPU.
I changed heap4.c to heap5.c and made the addition to main.c.

I have the TMS570LS3137 HDK.

Would you like me to post this modified version of what is part of the distribution and I’m pretty sure is not using anything from HALCoGen?

I have an IAR version that does the same exact thing - mentioned in posts. Note I am not using anything RTOS related in that that is from HALCoGen. That has been posted.

Regards,
John

Edit: Also made the change to the linker control file so memory regions do not intersect. Did equivalent under IAR with same results; as posted. No HALCogen. I just tried HALCoGen; that is all.

westmorelandeng wrote on Thursday, March 26, 2015:

Do you have a target with the TMS570LS3137?

rtel wrote on Thursday, March 26, 2015:

So that is external RAM - is that correct? When you use heap_4 is it
also using external RAM?

Regards.

westmorelandeng wrote on Thursday, March 26, 2015:

No, using internal RAM to the processor. The RAM memory space runs from
0x08000000 to 0x0803ffff; so 256KB of internal RAM.

There is currently some errata against the EMIF (RevC) but not using external RAM for this.

westmorelandeng wrote on Friday, March 27, 2015:

Would you like me to post the CC6 v6 example?

rtel wrote on Friday, March 27, 2015:

Is this the demo created by HALCoGen? If so I don’t think that is necessary as it is already available to HALCoGen users.

westmorelandeng wrote on Friday, March 27, 2015:

No. There are some files that originated from HALCoGen but those are drivers vs. being core to the RTOS. I did update all of the core FreeRTOS files to the latest.

rtel wrote on Friday, March 27, 2015:

In which case, if the project is completely functional (doesn’t have the mystery heap exhaustion) then some users may find it useful so please do upload it.

Regards.

westmorelandeng wrote on Wednesday, April 01, 2015:

OK - I will upload it - should get to it before I knock off.

Regards,
John W.

westmorelandeng wrote on Wednesday, April 01, 2015:

Hello,

File uploaded now.

Regards,
John W.