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.
代码在不同的flash或者SRAM中执行,其功耗是不同的,但是寻找了半天,也没有找到如何将代码执行配置到不同flash或SRAM中。
请教了~
无法查看您的图片,请重新上传
关于您提到的问题,您可以看一下工程内cmd文件,如msp432p401r .cmd
您可以将其“load”地址设置为flash并将其“run”地址设置为RAM
参考 的 3.1.1 Load and Run Addresses
如果使用的是CCS,则可以通过将__attribute __((ramfunc))附加到函数原型中来实现(如果使用默认的链接描述文件)。
/* store in flash, run from flash, by default */ void foo( void ); /* store in flash, run from RAM, by default */ void foo( void ) __attribute__((ramfunc));