insufficient heap size at a released demo project

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

insufficient heap size at a released demo project

1,245 Views
tirak
Contributor I

I cannot understand why the NXP support team releases a demo for the MK60 tower board

-> twrk60d100m_demo_apps_lwip_lwip_ping_freertos

that leads into a failed compilation cos insufficient heap size.

After some invastigation I figured out it is a problem of the 2 RAM areas of the M4 core

(unfortunately I realized this only after this issue occured)

But why NXP releases a demo that doesn't work? For a beginner it is not funny.

Is it a M4 problem or a special NXP design issue?

c:/nxp/mcuxpressoide_10.1.1_606/ide/tools/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe: twrk60d100m_demo_apps_lwip_lwip_ping_freertos.axf section `.heap' will not fit in region `SRAM_UPPER'
SRAM_UPPER: 82240 B 64 KB 125.49%

So how can I fix this problem without run into danger the CPU makes an access at this border 0x20000000

And how can I tell the linker to set for example an fixed array[4096] into the SRAM_LOWER area

Marcus

Labels (1)
0 Kudos
Reply
4 Replies

1,065 Views
tirak
Contributor I

Ok, thanks...

There is one question open. How can I set fixed memory like array[1024] to a fixed address.

How can I tell it the linker?

I know this is a C language question but I would not have it when this ristriction of the memory didn't exist.

0 Kudos
Reply

1,065 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

Currently twrk60d100m_demo_apps_lwip_lwip_ping_freertos is not supported by MCUXpresso. You can see the readme file in its directory. If you want to use MCUXpresso, you can open a twrk60d100m_demo_apps_lwip_lwip_ping_bm and copy related file to that project.

Regards,

Jing

0 Kudos
Reply

1,065 Views
BlackNight
NXP Employee
NXP Employee

There is a memory boundary at 0x2000'0000 because of the two memory controllers. See FreeRTOS Heap with Segmented Kinetis K SRAM | MCU on Eclipse  for a discussion and how to allocate the heap into different memory areas.

If you would like to have multiple memory regions, see the following article.:

Using Multiple Memory Regions with the FreeRTOS Heap | MCU on Eclipse 

I hope this helps,

Erich

0 Kudos
Reply

1,065 Views
tirak
Contributor I

Not really. Cos I don't know how to mage it with MCUExpresso. All your

examples refer to Kinetis Studio and Processor Expert.

Do you suggest to use this IDE?

Am 12.03.2018 um 07:48 schrieb BlackNight:

>

NXP Community

<https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>

>

Re: insufficient heap size at a released demo project

reply from Erich Styger

<https://community.nxp.com/people/BlackNight?et=watches.email.thread>

in /Kinetis Microcontrollers/ - View the full discussion

<https://community.nxp.com/message/994363?commentID=994363&et=watches.email.thread#comment-994363>

>

0 Kudos
Reply