如图,文件长度14,286可以正常下载,但是文件14,578显示文件过大无法下载。CH552G的code flash有16K,为什么无法下载呢?
使用环境:keil C51
热门产品 :
CH592: RISC-V内核BLE5.4无线MCU
如图,文件长度14,286可以正常下载,但是文件14,578显示文件过大无法下载。CH552G的code flash有16K,为什么无法下载呢?
使用环境:keil C51
user flash range is from 0x000 ... 0x37FF. 0x3800..3FFF is used by the bootloader.
So usercode limit is 14335 bytes decimal.
Maybe you can shrink the code:
- try LX51 in Options->Device
- enable Global Register Coloring + Linker Code Packing in Options->C51