1.packres.exe为资源打包程序 http://pkgman.jieliapp.com/doc/all的下载目录工具里面这个EXE
将packres.exe放到toy目录下,在 download.c 添加命令(放在cd toy后):
packres.exe -n test_dir -o res.bin dir_tone 0 -normal
:: -n test_dir #在芯片访问时候使用的名字,比如 test_dir
:: -o res.bin #输出的文件名 res.bin
:: -normal #表示要去掉 index
:: dir_tone 0 … # 文件名 地址(要设置写在外挂flash的地址,一拖八需要解析)
2.在 download.c 删除参数: -wflash dir_tone 0 [PA08_1C_NUL0]
添加参数:-ex_flash res.bin
:: -ex_flash #一拖八所需要的解析参数
:: res.bin #已经打包的资源文件,尽可能使用该名字,OTA升级只识别此名字
3.在isd_config.ini的[SYS_CFG_PARAM]下添加参数:EX_FLASH=PA08_1C_NULL;
示例配置为CS为PA08, 使用SPI1, C口,电源使用vddio, 如果norflash电源为vddio,填NULL即可
4.修改保存后编译工程,得到带外挂flash资源的fw,授权即可