|
|
---------------------------
SiC8051F
---------------------------
Warning! An attempt was made to modify address 3FC0
which is restricted!
Code edit has been cancelled
---------------------------
确定
---------------------------
错误提示:
*** AGDI-Msg: AG_Init Status: AG_INITFLASHLOAD.
*** AGDI-Error! WriteCode at address 0x3dc2 returned error
*** AGDI-Error! WriteCode at address 0x3ec1 returned error
程序下载阶段就写进了受限区域
含义:
AG_INITFLASHLOAD → 正在烧录 Flash
WriteCode 失败 → 往某些地址写程序失败
地址 0x3DC2 / 0x3EC1 → ⚠️ 已经接近 Flash 尾部
你的程序已经“顶到 Flash 保留区边缘”了
对于 C8051F320:
Flash 总大小:0x0000 ~ 0x3FFF(16KB)
危险区域: 0x3C00 ~ 0x3FFF ⚠️
你现在写到:
0x3DC2
0x3EC1
👉 已经进入:
Lock Byte 区
校准区
Debug 保留区
👉 所以直接写失败(硬件拒绝)
本质原因(非常明确)
👉 你的程序太大了(或分布不合理)
Program Size: data=80.1 xdata=1024 code=3565
creating hex file from "getADC2.5"...
经过修改过后:
Program Size: data=65.1 xdata=1024 code=3042
creating hex file from "getADC2.5"...
"getADC2.5" - 0 Error(s), 4 Warning(s). |
|