Hi @esben-e ,
My understanding from Run entire application from RAM is that you are trying to download the application in to ITCM, and execute from there. I did this with the attached Zephyr application binary and MIMXRT1024-EVK, and the command line tools to interface with the RT1024 ROM. The tools come from the package "Flash loader i.MXRT1020" found at the RT1020 Tools page. You should be able to do the same with the mfgtool if you prefer the GUI tools.
Use sdphost to download the flashloader to DTCM, and execute the flashloader. Note that I tried sdphost to write the app directly to ITCM, but sdphost is not able to access ITCM.
\Flashloader_RT1020_1.0_GA\Tools\sdphost\win>sdphost -u 0x1fc9,0x0130 -t 5000 -- write-file 0x20000000 "\Flashloader_RT1020_1.0_GA\Tools\mfgtools-rel\Profiles\MXRT102X\OS Firmware\ivt_flashloader.bin"
Preparing to send 60415 (0xebff) bytes to the target.
(1/1)1%Status (HAB mode) = 1450735702 (0x56787856) HAB disabled.
Reponse Status = 2290649224 (0x88888888) Write File complete.
\Flashloader_RT1020_1.0_GA\Tools\sdphost\win>sdphost -u 0x1fc9,0x0130 -t 5000 -- jump-address 0x20000400
Status (HAB mode) = 1450735702 (0x56787856) HAB disabled.
Use blhost tool to communicate with the flashloader. Verifies blhost can talk to the flashloader, then writes the Zephyr application to ITCM
\Flashloader_RT1020_1.0_GA\Tools\sdphost\win>cd ..\..\blhost\win
\Flashloader_RT1020_1.0_GA\Tools\blhost\win>blhost -u 0x15A2,0x0073 -- get-property 1
Inject command 'get-property'
Response status = 0 (0x0) Success.
Response word 1 = 1258422528 (0x4b020100)
Current Version = K2.1.0
\Flashloader_RT1020_1.0_GA\Tools\blhost\win>blhost -u 0x15A2,0x0073 -- write-memory 0x0000000 zephyr.bin
Inject command 'write-memory'
Preparing to send 14512 (0x38b0) bytes to the target.
Successful generic response to command 'write-memory'
(1/1)100% Completed!
Successful generic response to command 'write-memory'
Response status = 0 (0x0) Success.
Wrote 14512 of 14512 bytes.
Use blhost to read the address in the reset vector. This should be at offset 0x4 in the vector table, read below as 0x13F9. Then use blhost to execute from that address
\Flashloader_RT1020_1.0_GA\Tools\blhost\win>blhost -u 0x15A2,0x0073 -- read-memory 0x0000000 8
Inject command 'read-memory'
Successful response to command 'read-memory'
c0 06 00 20 f9 13 00 00
(1/1)100% Completed!
Successful generic response to command 'read-memory'
Response status = 0 (0x0) Success.
Response word 1 = 8 (0x8)
Read 8 of 8 bytes.
\Flashloader_RT1020_1.0_GA\Tools\blhost\win>blhost -u 0x15A2,0x0073 -- execute 0x13f9 0 0
Inject command 'execute'
Successful generic response to command 'execute'
Response status = 0 (0x0) Success.
My Zephyr hello_world application then prints this to the console:
*** Booting Zephyr OS build zephyr-v2.6.0 ***
Hello World! mimxrt1024_evk
Best regards