<br />If your system configuration does not support allocating an initialized section such as .const to data memory, then you must <font color=#FF0040>allocate the .const section to load in program memory and run in data memory</font>. At boot time, copy the .const section from program to data memory. The following sequence shows how you can perform this task:<br />不知道楼上的方法是否可以用,常数可以分配在program memory,即flash中,但是运行还是要放到data memory中.<br />28是可以用const定义数组,有兴趣看一下.
|