twr-k60 freertos demo does not work

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

twr-k60 freertos demo does not work

Jump to solution
1,231 Views
tirak
Contributor I

Hi,

I'm new here. Maybe someone can help me.

I have the TWR-K60 Board and downloaded the SDK with FreeRTOS support.

I selected the lwip_tcpecho_demo_freertos demo. But to my suprise I cannot compile it.

Everything is fresh installed. I'm confused as I don't believe that NXP would offer a demo to the whole community that doesn't work.

It seems it doesn't use the lower RAM. What is wrong here?

Memory region Used Size Region Size %age Used
PROGRAM_FLASH: 56216 B 512 KB 10.72%
SRAM_UPPER: 81988 B 64 KB 125.10%
SRAM_LOWER: 0 GB 64 KB 0.00%
c:/nxp/mcuxpressoide_11.1.1_3241/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.1.0.202001081728/tools/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: twrk60d100m_demo_apps_lwip_lwip_tcpecho_freertos.axf section `.heap' will not fit in region `SRAM_UPPER'
c:/nxp/mcuxpressoide_11.1.1_3241/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.1.0.202001081728/tools/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: region `SRAM_UPPER' overflowed by 16452 bytes
collect2.exe: error: ld returned 1 exit status
FLEX_RAM: 0 GB 4 KB 0.00%
make: *** [makefile:46: twrk60d100m_demo_apps_lwip_lwip_tcpecho_freertos.axf] Error 1
"make -r -j8 all" terminated with exit code 2. Build might be incomplete.

21:56:48 Build Failed. 3 errors, 0 warnings. (took 8s.253ms)

 

Greetings

mangkut

0 Kudos
1 Solution
1,140 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Marcus:

I would suggest you put the global data to SRAM_LOWER. Please refer to below picture.

pastedImage_1.png

Regards

Daniel

View solution in original post

0 Kudos
5 Replies
1,140 Views
tirak
Contributor I

Ok, this works. Thanx Daniel.

Another thing... as I figured out that the most Kinetis EVAL-Boards are fitted with a KXXFN CPU there is no EEPROM via FlexRAM possible. As I understood only with FX CPUs.

I want port code from a Atmel CPU to an Kinetis. But I need to store user config data. The Atmel has EEPROM which I use for it. I don't want to build hardware for testing it.
Is it somehow possible to store user data without having this 4k FlexRAM?

My TWR-K60DN512 doesn't support EEPROM via FlexRAM if I understood right.

0 Kudos
1,140 Views
tirak
Contributor I

I used the SDK Builder on the Web-Site similar to the description in the followed link:
Generating a downloadable MCUXpresso SDK v.2 package 

There you can select FreeRTOS

Than I downloaded it and simply drag and drop it to the project.
Then it offers you both, bm and FreeRTOS in the demo selections. But FreeRTOS doesn't work.

Regards

Marcus

pic.png

0 Kudos
1,141 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Marcus:

I would suggest you put the global data to SRAM_LOWER. Please refer to below picture.

pastedImage_1.png

Regards

Daniel

0 Kudos
1,139 Views
danielchen
NXP TechSupport
NXP TechSupport

Could you please let me know your SDK version and the IDE version?

Could you download the latest sdk from Welcome | MCUXpresso SDK Builder   and try it again?

Regards

Daniel

0 Kudos
1,140 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Marcus:

From MCUXpresso IDE, only lwip_tcpecho bm demo can be imported in my side. How can you import the freertos version?

pastedImage_1.png

Regards

Daniel

0 Kudos