I am following the Getting Started with MCUXpresso SDK for EVK-MIMXRT685 guide part 7 "Run the demo using the prebuilt binary".
I'm able to run the j-link commander and connect to the core using:
/usr/bin/JLinkExe -device MIMXRT685S_M33 -if SWD
J-Link>rnh works and the previously debugged example resets properly.
also the loading to flash seems to work as well:
J-Link>loadbin hello_world.bin 0x08000400
Halting CPU for downloading file.
Downloading file [hello_world.bin]...
J-Link: Flash download: Bank 0 @ 0x08000000: 1 range affected (65536 bytes)
J-Link: Flash download: Total: 0.685s (Prepare: 0.002s, Compare: 0.043s, Erase: 0.230s, Program & Verify: 0.263s, Restore: 0.146s)
J-Link: Flash download: Program & Verify speed: 243 KB/s
O.K.
J-Link>
I'm not able to see anything on the console after trying to reboot the board or by using rnh after
writing the .bin file to the load address.
Any tips would be appreciated.
jlink loadbin cmd is used to load image binary into memory only, but without execution. if you want to execute app by jlink, you still need to issue beow five cmds.
mem32 0x08001000 2
08001000 = valueWord0 valueWord1
wreg MSP valueWord0
wreg PSP valueWord0
SetPC valueWord1
g
If you want app to boot after re-power the board, you need to check the ISP pins settiing.