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!
Hello,
The linker script has the default configuration of the SDK example project, we did not change it.
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
Hi
I would suggest you check the linker script, especially the stack config, it should configured according to your project.
Regards
Daniel
Please also check the memory map , it should reflect your project requirement.