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.

[参考译文] CCS/TMS320F280021:TMS320F280021

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/916222/ccs-tms320f280021-tms320f280021

器件型号:TMS320F280021
主题中讨论的其他器件:C2000WARE

工具/软件:Code Composer Studio

大家好、我已经从 TI 网站下载了 C2000Ware_3_01_00_00来了解 TI 的 DSP 编程。 在名为"GPIO_ex2_toggle "的示例中、文件"device.c"中有一些代码我无法完全理解。

#ifdef _flash
   //
   //将时间关键代码和闪存设置代码复制到 RAM。 这包括
   //以下函数:InitFlash();
   //
   // RamfuncsLoadStart、RamfuncsLoadSize 和 RamfuncsRunStart 符号
   //由链接器创建。 请参阅器件.cmd 文件。
   //
   memcpy (&RamfuncsRunStart、&RamfuncsLoadStart、(size_t)&RamfuncsLoadSize);
 
   //
   //调用闪存初始化以设置闪存等待状态。 此函数必须执行的操作
   //驻留在 RAM 中。
   //
   Flash_initModule (FLASH0CTRL_base、FLASH0ECC_BASE、DEVICE_FLASH_WAITSTATES);
#endif

闪存在哪里?

非常感谢!

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

    您好!

    [引用 user="user5246008"]在哪里是_flash?

    FLASH 是为工程的闪存配置定义的预定义符号。 可从项目的预定义符号->属性->编译-> C2000编译器->预定义符号中检查项目的预定义符号

    谢谢
    Vasudha