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.

[参考译文] TMS320F2800137:flashAP1_EXIIprogramming

Guru**** 2311760 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1522458/tms320f2800137-flashap1_exiiprogramming

器件型号:TMS320F2800137

工具/软件:

你好,我已经移植了代码
flashAP1_EXIIprogramming 的 falsh 相关函数
C:\Users\Xiaohua\Desktop\013\x15\universal_motorcontrol_lab_f280013x、发现正常写入后、它无法擦除、然后发生错误
我选择了 Bzero_Sector 64_start 并尝试了 Instance-EraseSactor ()函数,但它仍然无法正确擦除。 这是为什么? 保护配置不正确

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、

    由于未正确设置 CMDWEPROTB 值以擦除要擦除的扇区、因此该器件在 FMSTAT 时失败。

    在  CMDWEPROTB 中、每个位都会保护一组包含8个扇区的扇区、以防止其擦除或编程。

    位0 -> 32 - 39扇区

    位1 -> 40 - 47扇区

    位2 -> 48 - 55个扇区

    位3->56-63扇区...等

    如果尝试擦除扇区64、则必须 清除  CMDWEPROTB 寄存器的位4。

    此致、

    Rajeshwary