华大原生算法使用字节写入方式,下载100K左右的固件,要6秒左右的时间.本算法下载时间约3秒.
附件中,包含已生成的FLM文件和源码
使用方法:
MDK : 将3个flm文件拷贝到 keil目录/arm/flash 下即可
JLINK: 将3个flm文件拷贝到jlink目录,并在jlinkdevices.xml中添加
<Device>
<ChipInfo Vendor="HDSC" Name="HC32x1xx-64K" WorkRAMAddr="0x20000000" WorkRAMSize="0x2000" Core="JLINK_CORE_CORTEX_M0"/>
<FlashBankInfo Name="Flash_64K" BaseAddr="0x0" MaxSize="0x10000" Loader="HC32x1xx-64K.flm" LoaderType="FLASH_ALGO_TYPE_OPEN" AlwaysPresent="1"/>
</Device>
<Device>
<ChipInfo Vendor="HDSC" Name="HC32x1xx-128K" WorkRAMAddr="0x20000000" WorkRAMSize="0x4000" Core="JLINK_CORE_CORTEX_M0"/>
<FlashBankInfo Name="Flash_128K" BaseAddr="0x0" MaxSize="0x20000" Loader="HC32x1xx-128K.flm" LoaderType="FLASH_ALGO_TYPE_OPEN" AlwaysPresent="1"/>
</Device>
<Device>
<ChipInfo Vendor="HDSC" Name="HC32x1xx-256K" WorkRAMAddr="0x20000000" WorkRAMSize="0x8000" Core="JLINK_CORE_CORTEX_M0"/>
<FlashBankInfo Name="Flash_256K" BaseAddr="0x0" MaxSize="0x40000" Loader="HC32x1xx-256K.flm" LoaderType="FLASH_ALGO_TYPE_OPEN" AlwaysPresent="1"/>
</Device>
|