rt1170 - Stack error when starting to debug

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

rt1170 - Stack error when starting to debug

455件の閲覧回数
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 返答(返信)

415件の閲覧回数
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 件の賞賛
返信

435件の閲覧回数
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 件の賞賛
返信

369件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

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

danielchen_0-1700201542894.png

 

0 件の賞賛
返信