MIMXRT1170 EVK SDRAM Execution

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MIMXRT1170 EVK SDRAM Execution

23 次查看
GLantzTCore
Contributor III

I have written my own boot loader for the 1170 EVK board.  It can download an executable via ethernet and store it into the FlexSPI Flash.  At boot time it will copy the executable from SPIFlash into SDRAM, validate the executable with a CRC, and jump into the executable.  The executable does not run.

I am using IAR, i-jet probe to debug the system.  The executable I am attempting to load and run is the Hello_World example project, build with the sdram_txt_release target.

The executable I download contains the 16-bit CRC as the last 2 bytes of the executable, with the address of Reset_Handler in the 4 bytes preceding the CRC.

I load the address into a C pointer to a function and then call that function.  I have verified that the address I am attempting to jump to is what shows in the map file for the Hello_World demo.  When I step in disassembly mode, I get a hard fault error.

 

Is there an issue with debugging this way or with executing from SDRAM?

I've read related questions in this forum and haven't been able to find anything to help me.

 

Thanks in advance for any assistance.  

0 项奖励
回复
0 回复数