|
发表于 2013-9-22 18:36:21
|
显示全部楼层
AVRstudio4.7没有听过,4.17吧,.eep会自动生成,只要你把数据定义成eeprom数据
下面这个定义是我随便找个程序然后在里面加的,有没有语法问题先不管,只管如何生成.eep文件。
类似于以下:
unsigned char IdentifyDeviceLingoes[] __attribute__((section(".eeprom"))) = {0xff,0x55,0x0e,0x00,0x13,0x00,0x00,0x00,0x35,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00};
就是生成.eep文件:
Program: 796 bytes (38.9% Full)
(.text + .data + .bootloader)
Data: 21 bytes (16.4% Full)
(.data + .bss + .noinit)
EEPROM: 17 bytes (13.3% Full)
(.eeprom)
具体.eep的内容是:
:10000000FF550E0013000000350000000400000042
:0100100000EF
:00000001FF
|
|