AnsweredAssumed Answered

KV10 with freeRTOS

Question asked by borjaserra on Feb 2, 2017
Latest reply on Feb 6, 2017 by borjaserra

Good morning,

 

I have the FRDM-KV10Z and I just started a new SDK2.0 project (including all drivers) with FreeRTOS. It comes with an example with a simple task publishing "Hello world" in the serial interface. When I try to build the project I get an error such as:

 

file.elf section `.bss' will not fit in region `m_data'

region m_data overflowed with stack and heap

region `m_data' overflowed by 3440 bytes

 

I have been checking and found that this could be an SRAM size issue. The KV10 has 8kB memory so I am afraid the MCU hasn't memory enough to run with FreeRTOS. I found this explanation in this website with another MCU from NXP:

 

FreeRTOS Heap with Segmented Kinetis K SRAM | MCU on Eclipse 

in this case the KV10 doesnt have 2 partitions in the SRAM as far as I saw on the .Id file

 

 

However I have also been checking on the FreeRTOS website but they don't look like using that much SRAM.

 

FreeRTOS FAQ relating to FreeRTOS memory management and usage. FreeRTOS is an Open Source RTOS Kernel for small embedde… 

 

My question would be if my assumption is right. In case I want to run with FreeRTOS, do I need a MCU with bigger SRAM size? Probably upgrading to KV3?

 

Thanks

 

Borja

Outcomes