请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:LP-AM263P 主题中讨论的其他器件:UNIFLASH、 CODECOMPOSER
工具与软件:
你好。
我正在尝试使用"uart_uniflash.py"脚本将一些映像文件加载到闪存、但有一些错误。
当闪存偏移量设置为多次0x20000 (例如、0x80000、0xA0000、0xC0000)时、它返回"[STATUS] SUCCESS!!!"、否则(对于偏移量0x8001000、0x90000、0xA0800等)返回"[STATUS]错误:刷写失败!!!"
我假设是因为这个原因、以块将数据加载到闪存。 但是、它是对引导加载程序的限制(使用自定义引导加载程序可以避免)还是对所用板载闪存的硬件限制?
脚本中使用的配置文件非常简单:
Fullscreen
1
2
--flash-writer=sbl_uart_uniflash.debug.tiimage
--file=<some image file> --operation=flash --flash-offset=0x90000
偏移为0x90000的结果
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
D:\Workspaces\TI_CodeComposer\Flash_Script\flash>python uart_uniflash.py -p COM30 --cfg=sbl_ospi_debug.cfg
Parsing config file ...
Parsing config file ... SUCCESS. Found 2 command(s) !!!
Executing command 1 of 2 ...
Found flash writer ... sending sbl_uart_uniflash.debug.tiimage
Sent flashwriter sbl_uart_uniflash.debug.tiimage of size 84977 bytes in 7.94s.
Executing command 2 of 2 ...
Command arguments : --file=../../FCC_model_test_AM263Px/Debug/FCC_model_test_AM263Px.appimage --operation=flash --flash-offset=0x90000
Sent ../../FCC_model_test_AM263Px/Debug/FCC_model_test_AM263Px.appimage of size 122292 bytes in 14.4s.
[STATUS] ERROR: Flashing failed !!!
All commands from config file are executed !!!
偏移量为0xA0000的结果(0x80000的结果相同、用于进一步 SBL 工作)
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
D:\Workspaces\TI_CodeComposer\Flash_Script\flash>python uart_uniflash.py -p COM30 --cfg=sbl_ospi_debug.cfg
Parsing config file ...
Parsing config file ... SUCCESS. Found 2 command(s) !!!
Executing command 1 of 2 ...
Found flash writer ... sending sbl_uart_uniflash.debug.tiimage
Sent flashwriter sbl_uart_uniflash.debug.tiimage of size 84977 bytes in 10.42s.
Executing command 2 of 2 ...
Command arguments : --file=../../FCC_model_test_AM263Px/Debug/FCC_model_test_AM263Px.appimage --operation=flash --flash-offset=0xA0000
Sent ../../FCC_model_test_AM263Px/Debug/FCC_model_test_AM263Px.appimage of size 122292 bytes in 14.39s.
[STATUS] SUCCESS !!!
All commands from config file are executed !!!