Custom RT1064 can not be flashed with Jlink on Zephyr #74089
-
We have a custom board RT1064 which we are not able to flash with jlink on Zephyr v3.6.0. At the end we get the following error: Any help would be appreciated :)
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @mariopaja , Also, is the FCB and IVT required to boot from the FlexSPI flash included in your Zephyr image? You can view these boot structures are the start of the image in the two binary files and see if they are different. If they are missing from your Zephyr image, then perhaps your custom board is not including them. Another thought, since you are booting from the integrated flash on the FlexSPI2, this is the same as our EVK. You could try building a Zephyr app for the mimxrt1064_evk board, and try loading that on your board. I expect the ROM would be able to boot it up, even if the app does not run correctly due to board differences. So I would expect the Jlink to be able to flash that image successfully to your board. If so, that would also point to a difference with your custom board config. Let us know what you find. |
Beta Was this translation helpful? Give feedback.
-
Hi @mariopaja , And your flash dumps show the flash is programmed with the Zephyr images. I suspect the device is booting, but runs into an issue early in the startup code, and faults or runs away. Can you use a debugger and halt in the reset entry function? That would confirm it is booting. And then you can step through the code and see how far it gets. Let us know what you find. |
Beta Was this translation helpful? Give feedback.
Hi @mariopaja ,
The baremetal image that works does not include the DCD, which configures for SDRAM. Does your board have SDRAM? If so, is it the same used on the EVK? The default Zephyr image will place data in SDRAM, and try to access it early in the startup code. I would move the data
zephyr,sram
node to DTCM to rule out issues with the SDRAM.And your flash dumps show the flash is programmed with the Zephyr images. I suspect the device is booting, but runs into an issue early in the startup code, and faults or runs away. Can you use a debugger and halt in the reset entry function? That would confirm it is booting. And then you can step through the code and see how far it gets.
Let us …