大家好:
最近遇到了一个问题——F28035板子不能通过JTAG xdsv3烧录了,板子本来是正常的,但通过下面的操作后就不正常了。
本来想通过实验完成FLAH当做EEPROM使用的功能,通过例子程序实验成功,并不会出现板子不能烧写程序的情况。例子程序将FLASH的sectorD作为EEPROM使用,每次写入64个16位字,每次更新bank_status和page_status的值,下次写入的数据接在上次写入的数据之后,直到整个扇区写满然后擦除整个扇区。 而我后来想要实现这样的功能:每次写入少于64个16位字,下次写入数据之前即擦除扇区,写入数据之后并未更新bank_status和page_status的值,结果第二次烧写该程序时出现如下错误
C28xx: Flash Programmer: Error erasing Flash memory. C28xx: Flash Programmer: Error encountered when writing to flash memory C28xx: Trouble Writing Memory Block at 0x3f659a on Page 0 of Length 0x26 C28xx: GEL: File: D:\workspace_jp\FlashAsEepromV1.0\Debug\FlashAsEepromV1.0.out: Load failed.
并且也出现过下面的错误信息
The value is '-151' (0xffffff69). The title is 'SC_ERR_FTDI_OPEN'. The explanation is: One of the FTDI driver functions used during the connect returned bad status or an error. The cause may one or more of: invalid emulator serial number, blank emulator EEPROM, missing FTDI drivers, faulty USB cable. Use the xds100serial command-line utility in the 'common/uscif' folder to verify the emulator can be located.
请问这是什么原因,如何解决?