Häufig gestellte Fragen
- M051-Base-Serie(95)
- M0518-Serie(97)
- M0519-Serie(43)
- M0564-Serie(1)
- Mini51-Base-Serie(90)
- Nano100/102-Base-Serie(101)
- Nano103-Base-Serie(10)
- Nano110/112-LCD-Serie(100)
- Nano120-USB-Serie(111)
- Nano130-Advanced-Serie(110)
- NUC029-Serie(94)
- NUC100/200-Advanced-Serie(102)
- NUC120/122/123/220-USB-Serie(116)
- NUC121/125-Serie(1)
- NUC126-USB-Serie(2)
- NUC130/230-CAN-Serie(103)
- NUC131-NUC1311-CAN-Serie(98)
- NUC140/240-Konnektivität-Serie(114)
- M451-Base-Serie(118)
- M451M-Serie(117)
- M452-USB-Serie(130)
- M4521 USB Serie(1)
- M453-CAN-Serie(128)
- M463 CAN FD/USB HS Series(1)
- M467 Ethernet/Crypto Series(1)
- M471 Series(1)
- M479 Motor Control Series(1)
- M481-Base-Serie(4)
- M482-USB-FS-OTG-Serie(4)
- M483-CAN-Serie(4)
- M484-USB-HS-OTG-Serie(4)
- M485-Crypto-Serie(4)
- M487-Ethernet-Serie(4)
- M4TK-Touch-Key-Serie(25)
- NUC442/472-Serie(130)
- NUC472 Series(1)
- NUC505-Serie(138)
Produkte
Applikationen
Funktion
+
常见问答
如何在程序编译时,将数据放在Flash固定的地址? 日期:2016-08-29
-
在Keil开发环境中
可以使用以下语句:const uint32_t Buf[1] __attribute__((at(0x1000))) = {0x12345678};
将数据0x12345678写入到地址0x1000。
-
在IAR开发环境中
首先程序必须先定义常数SIG,常数值0x12345678放在“Flash Address”指定的地址:
/* Declaration of signature. Location of it is specified in scatter file. */
const uint32_t SIG @ "Flash_Address";
/* Definition of SIG signature. */
const uint32_t SIG = 0x12345678;
在link file(*.scf)必须定义Flash_Address确定的地址。如下列为例,定义“Flash_Address”的地址为0x1000:
place at address mem:0x1000 {section Flash_Address };
产品: | 微控制器 ,Arm Cortex-M0 微控制器 ,M051 系列 ,M0518 系列 ,M0519 系列 ,Mini51 系列 ,Nano100 / 102 系列 ,Nano103 Base 系列 ,Nano110 / 112 LCD 系列 ,Nano120 USB 系列 ,Nano130 USB+LCD 系列 ,NUC029 系列 ,NUC100 / 200 系列 ,NUC120 / 122 / 123 / 220 USB 系列 ,NUC130 / 230 CAN 系列 ,NUC131/NUC1311 CAN 系列 ,NUC140 / 240 USB+CAN 系列 ,Arm Cortex-M4 微控制器 ,M451 Base 系列 ,M451M 系列 ,M452 USB 系列 ,M453 CAN 系列 ,M4TK 触摸 IC 系列 ,NUC442 / 472 系列 ,NUC505 系列 |
---|---|
应用: | |
功能: | Peripherals,Memory,APROM,Data Flash,LDROM,Software and Tools,Development-Environment,IAR,Keil |