STM32将常量数组定义到FLASH固定地址 -
来源: 网络用户发布,如有版权联系网管删除 2018-09-06
[导读]方法:static const uint8_t s_acBmpLogo030[len] __attribute__((at(0X800F000)))={0x80,0xC0,0xC0,0xC0,0xC0,0x80,xxxxxxx} 编译之后可在.map文件看到其分配到的地址0x0800f000 0x0000005c Data RO 4013 .A
方法:static const uint8_t s_acBmpLogo030[len] __attribute__((at(0X800F000)))={0x80,0xC0,0xC0,0xC0,0xC0,0x80,xxxxxxx}
本文引用地址: http://www.21ic.com/app/mcu/201808/783696.htm
编译之后可在.map文件看到其分配到的地址
0x0800f000 0x0000005c Data RO 4013 .ARM.__AT_0x0800F000 main.o
这是从调试窗口查看的flash数据
查看评论 回复