AnsweredAssumed Answered

Stack Size, FRDM-KL46Z IAR?

Question asked by Ishmeet S on Jun 17, 2014
Latest reply on Jun 18, 2014 by Perla Andrea Moncada Fajardo

There seems to be some sort of paradox, that I am not able to configure the correct Stack Size for FRDM-KL46Z for IAR compiler.

I am using the FRDM-Demo example provided from freescale for IAR compiler.


I go to project linker settings, and modified CSTACK to 33*1024 (Enormous)




Then I RE Build the program, surprisingly it build Successful - OK.

I checked the 256_pflash.icf linker file, shows cstack = 33*1024.




Then, I go to map file of the project.





1. Why is map file not showing the Stack Size value, in the Highlighted Linker created area?

2. How was IAR abled to Build, by configure 33*1024 Bytes of Stack size, while total RAM of FRDM-KL46Z is 32 KB only?


Please, explain anyone what is happening, actually I want to increase the stack size, but now I am not sure if I am using the right linker files or not.

And, I am doing this because I am facing a HardFault error. This is why I was trying to increase stack size.