Setting Heap and Stack sizes for MK22

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

Setting Heap and Stack sizes for MK22

753 Views
Solarhacker
Contributor II

Using MCUXpresso IDE v11.2.1 with SDK_2.8.2_MK22FN128xxx12, Redlib (none)

Trying to change stack and heap size from default.  When I click on Heap or Stack Size (Default) No dialog is displayed.  I've tried --defsym=_HeapSize=0x0100 --defsym=_StackSize=0x0200 in linker flags

My project doesn't use any heap and stack requirements are less the 512 bytes. Currently out of 24K of RAM 7.5K are being consumed by unused heap and stack

>Darren

Solarhacker_0-1612816931144.png

 

0 Kudos
3 Replies

722 Views
Solarhacker
Contributor II

I finally got it to work. When I click on "default" stack size, nothing changes on display. if I enter a value and then left click again, value updates. Not expected dialog behavior.

0 Kudos

736 Views
ErichStyger
Senior Contributor V

You can change the value from the default:

ErichS_0-1612867511971.png

 

Click into the field and enter a value.

 

I hope this helps,

Erich

741 Views
frank_m
Senior Contributor III

Have you tried to enter approriate size values in the shown "Settings" screen, instead of leaving it at "Default" ?

There appears no additional screen for me, but I can manually enter values.

Version 11.1. for a LPC546xx, though.