rt1170 - Stack error when starting to debug

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

rt1170 - Stack error when starting to debug

609 次查看
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 项奖励
回复
3 回复数

569 次查看
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 项奖励
回复

589 次查看
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 项奖励
回复

523 次查看
danielchen
NXP TechSupport
NXP TechSupport

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

danielchen_0-1700201542894.png

 

0 项奖励
回复