This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LP-AM263P: Flashwriter script offset

Part Number: LP-AM263P
Other Parts Discussed in Thread: UNIFLASH, CODECOMPOSER

Tool/software:

Hello.

I'm trying to load some image file to FLASH with 'uart_uniflash.py' script and has some errors.

When flash offset is set multiple to 0x20000 (for example 0x80000, 0xA0000, 0xC0000) it returns "[STATUS] SUCCESS !!!", otherwise (for offsets 0x81000, 0x90000, 0xA0800 and so on) it returns "[STATUS] ERROR: Flashing failed !!!"

I assume, that reason is loading data to flash by blocks. But is it limitations of bootloader, which can be avoided by using custom one, or hardware limitation of used on-board flash?



Config file used in script is very simple:

--flash-writer=sbl_uart_uniflash.debug.tiimage
--file=<some image file> --operation=flash --flash-offset=0x90000

Results with offset 0x90000

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 !!!

Results with offset 0xA0000 (the same for 0x80000, which is actual for further SBL work)

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 !!!