rt1170 - Stack error when starting to debug

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

rt1170 - Stack error when starting to debug

452 Views
andreytarakin
Contributor I

Hello,

We are using a custom board with the RT1170 MCU. we are trying to use the hello world program from SDK (v2.14) to connect to the MCU with MCUXpresso (using J-Link). we set a break point in the beginning of the ResetISR function and we observe that the stack usage (displayed in MCUXpresso) is -49784.96%.

the stack address range displayed is 0x2004f000-0x20050000.

the stack last used address displayed is 0x20241d98.

Obviously the program crashes and displays the 0xdeadbeee address error.

what can be a reason for the stack address error? is it something with the ROM on power up?

 

you help is much appreciated!

 

0 Kudos
Reply
3 Replies

412 Views
andreytarakin
Contributor I

Hello,

The linker script has the default configuration of the SDK example project, we did not change it.

andreytarakin_0-1699776975492.png

Another thing we observe is the FLEXSPI clock towards the flash. By definition, on power up, the ROM should talk to the flash using 30MHz clock in order to read its FCB. in our case the clock we see is 290KHz.

And when we are trying to debug the board using J-Link, the clock towards the FLASH (during the flash write process of the MCUXpresso) is 24MHz.

Is there a way to check why the ROM FLEXSPI clock had configured in such a way?

 

Regards,

Andrey

 

0 Kudos
Reply

432 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi 

 

I would suggest you check the linker script, especially the stack config,  it should configured according to your project.

danielchen_0-1699692208014.png

 

Regards

Daniel

0 Kudos
Reply

366 Views
danielchen
NXP TechSupport
NXP TechSupport

Please also check the memory map , it should reflect your project requirement. 

danielchen_0-1700201542894.png

 

0 Kudos
Reply