a simple task fails for TCM_L and works well for flash.

cancel
Showing results for 
Search instead for 
Did you mean: 

a simple task fails for TCM_L and works well for flash.

145 Views
Contributor II

hello
Maybe it is an obvious question but i do not see correct answer.
i use mx6sx mcu (a9 and m4 cores inside) and had created a FreeRTOS little test project for TCM_L memory of m4. The project has one little task - just to type out "hello world". the task works about 10 sec and stops then.
Then i have created the same for qspi flash and it works well.
My question is:
what it could be, that may cause to stop the task when uses TCM_L .
Thanks.

0 Kudos
2 Replies

3 Views
Contributor II

thank you Artur.
i found cause this fault. i used a pointer incorrectly.
I suppose, using large size flash memory did not to lead to crashing in a short time.

0 Kudos

3 Views
NXP TechSupport
NXP TechSupport

Is your M4 task built as bare metal one or as FreeRTOS-based? In the second case, the most likely cause of the issue is some memory contention between your task and FreeRTOS components, since FreeRTOS itself uses TCM as well.

Best Regards,
Artur

0 Kudos