大家好!
在MAP文件中,可以看到
6 926 bytes of readonly code memory
582 bytes of readonly data memory
1 348 bytes of readwrite data memory
的内容。
我知道“6 926 bytes of readonly code memory”指的是代码大小为6926bytes
“1 348 bytes of readwrite data memory”指的是RAM大小为1348bytes
那么,“582 bytes of readonly data memory”表示的是什么呢?
又测试了一把,发觉应该是不占用RAM资源,而是占用Flash资源的,即公用code资源。
但是,调整了const的量,其超过了MCU的256kflash空间,居然编译通过。map内容如下:
6 926 bytes of readonly code memory
330 562 bytes of readonly data memory (这已经超出了256kflash空间了。他到底占用什么资源啊?)
1 348 bytes of readwrite data memory