I have a MIMXRT1180-EVK board, and my IDE is MCUXpresso for VS Code, the SDK version is 2.16.000, J-Link is used, JP4 is shorted. I have questions about debugging.
First, SW5[2:4]=001, the "evkmimxrt1180_rled_blinky_demo_cm33" work well using the "debug" build configuration, I can download and debug the demo code, and the "D6" LED was blinking. But it can't work after power on again.
Second, SW5[2:4]=100, I can download the blinky demo using "flexspi_nor_hyperram_debug", but can't debug it. The breakpoint in the main() can't be reached. I don't know why.
Third, I open the "vkmimxrt1180_rled_blinky_demo_cm33\armgcc\flexspi_nor_hyperram_debug\rled_blinky_demo_cm33.elf", find that it is start from 0x28000B00. And the "vkmimxrt1180_rled_blinky_demo_cm33\armgcc\MIMXRT1189xxxxx_cm33_flexspi_nor_hyperram.ld" show that the app_image_offset is 0x0000B0000.
Why does the image not start from 0x28000000?
Fourth, after power on again, I readout entire flash using J-Link, and I find that the content start from 0x2800B000 is same with rled_blinky_demo_cm33.elf. And the content between 0x28000000 and 0x2800B000 is 0xFF.
Can you help me? I want the code startup after power on again.
Hi @shengs
I tested it on my RT1180EVK Board. It can work.
But i use the MCUXpresso IDE.
The SW5[2:4]=001, and i debug the evkmimxrt1180_rled_blinky_demo_cm33. when i reset the board, it can work.
You can try to download MCUXpresso IDE.
I will also try to use VScode.
Hope this will help you.
BR
Hang
Hi @shengs
I have tested it.
As you mentioned.
I imported the evkmimxrt1180_rled_blinky_demo_cm33,
and set flexspi_nor_debug as default.
I didn't change the SW5.
It can work.
Hope this will help you.
BR
Hang
Hi
是的,如果使用jlink,目前Vscode中只能在“debug”或者“release”模式下调试。如果您想板子重新上电后点灯程序能正常启动。建议用板载debuger。
BR
Hang
原因找到了,是XIP_BOOT_HEADER_ENABLE没有使能,见"MCUXpresso_SDK_V2.16_MIMXRT1180-EVK_Repository\docs\Getting Started with MCUXpresso SDK for MIMXRT1180-EVK.pdf"
对于MCUXpresso for VS Code,在evkmimxrt1180_rled_blinky_demo_cm33\armgcc\flags.cmake文件里更改。