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.
Questions:
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.
Thanks,
Hello Ishmeet:
Have you ever tried to this with CodeWarrior? as long as I know this problem does not happens with Freescale Tools.
Also, in this case may be you can enter a service request with IAR, because this seems to be a compiler issue.