This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x ICE板etherCAT的bin文件烧录到SPi flash出错问题



本人使用ICE板的etherCAT例程时,在把ethercat_spi.bin烧录到SPI flash时,会出现奇怪的情况:

[CortxA8]
[CortxA8] AM335x ISDK Flasher Version - 1.0.5
[CortxA8] Enter the board type [0-ICE, 1-IDK ]
0
[CortxA8] SPI id selected - 0
[CortxA8] Manufacturer ID read is 0xef.
[CortxA8] Device ID read is 0x16.
[CortxA8] Enter the binary type [0-Bootloader, 1-Other ]
1
[CortxA8] Enter the Offset in bytes (In HEX. eg:- bootloader :0x0 app : 0x20000)
0x20000
[CortxA8] Load .bin file to 0x80100000 and Enter 0 to continue
0
[CortxA8] Flash erase offset = 131072 , length = 167936
[CortxA8] Writing...
[CortxA8] Verifying...
[CortxA8] Did not match @ page 213, bytes compared : 256. Exit

出现这种情况(三次),烧录正常。输出LED灯会来回点亮,EtherCAT通信正常。

而经常出现的情况是,最后一行出现的是[CortxA8] flash done ,此时烧录的程序居然不正常。只有4个LED灯会亮,EtherCAT不能通信。

使用的都是同一个bootloader和etherCAT的bin文件烧录,怀疑是烧录过程哪里出现了问题。JTAG的频率也从1Mhz,调到500k到200k都试过,依然出现同样情况。恳请指导!!

下面是烧录过程中会碰到的两种错误情况。
----------------------------------------------------------------------------------------------------

CortxA8: Trouble Writing Memory Block at 0x80100000 on Page 0 of Length 0x7ff0: (Error -1064 @ 0x665F6970) Internal error: Access to unknown or invalid register was requested. Restart the application. If error persists, please report the error. (Emulation package 5.0.747.0)
烧录时会出现的一种错误。
-----------------------------------------------------------------------------------------------------
CortxA8: GEL: Error while executing OnRestart( 0 ): identifier not found: CPSR at (CPSR&=~(0x20)) [TMDXICE3359.gel:291] at AM335xStartState() [TMDXICE3359.gel:302] at OnRestart(0) .
CortxA8: GEL: Error while executing OnFileLoaded(0, 0): identifier not found: CPSR at (CPSR&=~(0x20)) [TMDXICE3359.gel:291] at AM335xStartState() [TMDXICE3359.gel:297] at OnFileLoaded(0, 0) .
CortxA8: The callstack was unable to find Frame Pointer register information
烧录时会出现的另一种错误。