Stack Size, FRDM-KL46Z IAR?

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

Stack Size, FRDM-KL46Z IAR?

1,012 Views
ishmeets
Contributor I

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)

1.PNG.png

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

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

4.PNG.png

Then, I go to map file of the project.

3.PNG.png

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,

Labels (1)
0 Kudos
Reply
1 Reply

653 Views
perlam_i_au
Senior Contributor I

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.

0 Kudos
Reply