我编写的程序在RAM区里可以运行,可是写入FLASH,烧写完之后,仿真器提示是对的,可是没有反应。后来我烧一个简单程序,能够运行. 向各位请教如何向FLASH里烧程序。有什么要注意的地方吗? 另外需要对密码区进行操作吗? FLASH这个比较娇气,看资料说弄不好会报废。唉! 请各位大侠指教!先谢了 下面是我的CMD文件
MEMORY { PAGE 0: /* Program register*/ VECS origin = 0000h, length = 0040h /* Vectors */ PVECS: origin = 0044h, length = 00100h FLASH: origin = 150h, length = 5000h /* Program address */ SINV: origin = 7000h, length = 7F00h PAGE 1: /* data register*/ B2: origin = 0060h, length = 020h B0: origin = 200h, length = 100h B1: origin = 300h, length = 100h EX_SRAM: origin = 8000h, length = 8000h /* external DATA RAM */ } SECTIONS { .VECTORS: > VECS PAGE 0 .PVECS: > PVECS PAGE 0 .text: > FLASH PAGE 0 .data: > SINV PAGE 0 .bss: > B1 PAGE 1 .context > B2 PAGE 1 } |