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.

29377D的代码能像28335那样整体搬移到RAM执行吗



之前用的28335,看了网上的一些资料后修改CMD文件和另外几个汇编文件,然后成功的将代码从FLASH搬移到了RAM执行,我想28377肯定也可以,只是不知道该怎么操作,28335的那套方法和相应的代码修改能完全照搬到28377里来吗

  • 正在查看您的问题,稍后会尽快回复,谢谢您的理解和等待
  • 初始化中有包含 参考一下 在宏定义中增加_FLASH就可以了
    void InitSysCtrl(void)
    {
    // Disable the watchdog
    DisableDog();

    #ifdef _FLASH
    // Copy time critical code and Flash setup code to RAM
    // This includes the following functions: InitFlash();
    // The RamfuncsLoadStart, RamfuncsLoadSize, and RamfuncsRunStart
    // symbols are created by the linker. Refer to the device .cmd file.
    memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (size_t)&RamfuncsLoadSize);