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.

Flash当做EEPROM实验后出现flash无法擦除,板子无法烧写的情况,有什么解决方法



大家好:

    最近遇到了一个问题——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.

请问这是什么原因,如何解决?

    1. 第二个错误信息是仿真器的问题。换个仿真器试试,或用现在的仿真器烧写其他板子试试。
    2. 你的片子现在还可以直接擦除吗?如果用CCS自带的on chip flash programer 没有办法擦写,或JTAG无法连接的话,有可能是由于对Flash的操作不当造成的flash损坏。这种损坏有可能是无法修复的,直接换片子。

  • 您好,非常感谢您的回答,但我还有几个问题需要解决:

    1. 怎么用 on chip flash programer 擦写?

    2. 在我这次试验中,什么原因导致片子这么容易损坏?

    3. 对flash的不当操作有哪些?

    4. 之前通过对CSM密码段的操作,在28035芯片上进行了芯片加密试验,或许因为加密方式的不合理,导致片子有一定几率损坏,请问是什么原因,我该用什么方法进行加密呢?

  • 您好!我是山大的一名学生,最近也在想着使用内部的Flash来仿真Eeprom的功能,我对于功能的要求并不高,仅仅只是一次写入30个左右参数值在同一开辟的区域。我想了解您的方案,TI的官方例程我也看了,不是很明白。