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.

[参考译文] TMS320F280025C:CAN't 擦除闪存、Fapi_EraseSector 中的扇区3

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1130352/tms320f280025c-can-t-erase-sector-3-from-flash-fapi_erasesector

器件型号:TMS320F280025C

您好、
我将浏览建议的擦除闪存存储的方法。
当我转储存储器时、所有设置为0xFF 将会产生第三个扇区。
我忘记了该扇区是否有不同的保护

提前感谢、Lukas

    Fapi_StatusType retVal = InitFlash();
    retVal = Fapi_setActiveFlashBank(Fapi_FlashBank0);
    int i = 0;

    EALLOW;
    for(i=0;i<14;i++)   //14 sectors, erase one by one

    {
        Fapi_issueAsyncCommandWithAddress(Fapi_EraseSector,
        (uint32 *)SectorAdrsBank0[i]);

        // Wait until FSM is done with erase sector operation
        while (Fapi_checkFsmForReady() != Fapi_Status_FsmReady){}
    }

    EDIS;

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

    代码在 RAM 中执行

    #pragma CODE_SECTION(".TI.ramfunc");


    但是、包含的和使用的 FlashAPI.lib 库是否可以存储在闪存中的该位置?

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

    尊敬的 Lukas:

    我将在几天内回顾并返回给您。

    谢谢、此致、

    Vamsi

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

    非常感谢、您的另一篇文章解决了我的问题:
    e2e.ti.com/.../tms320f28377d-running-library-functions-from-ram

    必须更改我的链接器脚本才能从 RAM 运行库

    GROUP
       {
           .TI.ramfunc
           {
              -l FlashAPI_F28002x_FPU32.lib
           }
       }  LOAD = FLASH_BANK0_SEC0,
    	  RUN = RAMLS4567,
    	  LOAD_START(RamfuncsLoadStart),
    	  LOAD_SIZE(RamfuncsLoadSize),
    	  LOAD_END(RamfuncsLoadEnd),
    	  RUN_START(RamfuncsRunStart),
    	  RUN_SIZE(RamfuncsRunSize),
    	  RUN_END(RamfuncsRunEnd),
    	  ALIGN(8)

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

    尊敬的 Lukas:

    很高兴它能为您提供帮助。  我要关闭此帖子。

    谢谢、此致、

    Vamsi