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.

在使用F021 Flash API时如何将flash程序搬到RAM

Other Parts Discussed in Thread: TMS570LS1224

您好!

       我在使用官方的TMS570LS1224的LaunchPad时,使用官方提供的F021 Flash API 对内置的flash进行操作,在Fapi_setActiveFlashBank( Fapi_FlashBank0) 时,会出现错误异常,进入undefEntry 状态。 然后将Fapi_FlashBank0 改为Fapi_FlashBank7 程序就完好,并且擦写都正确。

      我想问: 1.  是不是因为程序存储在Flash Bank 0 中,所以使用API 不能对BANK0进行操作?

                       2.  如果要对Bank0进行擦写操作,有什么办法?  需要将Flash API程序 弄到RAM中,然后在RAM中执行flash API 对 BANK0 进行擦写操作?

                       3.  问下如何才能将FLASH API 或程序 弄到RAM中进行操作,有没有相关例程 或文档支持?

       麻烦回答了,再这先感谢回答的各位!