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.
Tool/software:
Hi TI Team,
I am currently developing applications on the Device Manager (DM) R5 core using the MCU+ SDK. While I am able to successfully debug and flash the application on the EVM, I am facing challenges with the same process on a custom board. Specifically, I am unable to flash the SBL and debug the DM R5 core.
Documentation Reference: https://software-dl.ti.com/mcu-plus-sdk/esd/AM62X/latest/exports/docs/api_guide_am62x/DEVELOP_AND_DEBUG_DMR5.html
I need your support to resolve these issues.
Regards,
Vikash
Hello,
Specifically, I am unable to flash the SBL and debug the DM R5 core.
Can you please share the flashing logs?
BR, Prashant
Hi Prashant,
Thank you for your response.
Please find the requested logs attached below.
LOGS:
mni@mni:~/ti/mcu_plus_sdk_am62x_09_02_01_06/tools/boot$ python3 uart_uniflash.py -p /dev/ttyUSB0 --cfg=sbl_prebuilt/am62x-sk/default_sbl_ospi_linux_hs_fs.cfg
Parsing config file ...
Parsing config file ... SUCCESS. Found 9 command(s) !!!
Executing command 1 of 9 ...
Found flash writer ... sending sbl_prebuilt/am62x-sk/sbl_uart_uniflash_stage1.release.hs_fs.tiimage
Sending sbl_prebuilt/am62x-sk/sbl_uart_uniflash_stage1.release.hs_fs.tiimage: 0%| | 0/248919 [00:00<?, ?bytes/s][ERROR] Serial port [/dev/ttyUSB0] not found or not accessible !!!
mni@mni:~/ti/mcu_plus_sdk_am62x_09_02_01_06/tools/boot$ python3 uart_uniflash.py -p /dev/ttyUSB0 --cfg=sbl_prebuilt/am62x-sk/default_sbl_ospi_linux_hs_fs.cfg
Parsing config file ...
Parsing config file ... SUCCESS. Found 9 command(s) !!!
Executing command 1 of 9 ...
Found flash writer ... sending sbl_prebuilt/am62x-sk/sbl_uart_uniflash_stage1.release.hs_fs.tiimage
Sent flashwriter sbl_prebuilt/am62x-sk/sbl_uart_uniflash_stage1.release.hs_fs.tiimage of size 248919 bytes in 24.26s.
Executing command 2 of 9 ...
Command arguments : --file=../../examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62x-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.release.appimage.hs_fs --operation=flash --flash-offset=0x0
Sending ../../examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62x-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.relesend error: error_count reached 10, aborting.
Sending ../../examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62x-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.rele
[ERROR] XMODEM send failed, no response OR incorrect response from EVM OR cancelled by user,
Power cycle EVM and run this script again !!!
mni@mni:~/ti/mcu_plus_sdk_am62x_09_02_01_06/tools/boot$
Regards,
Vikash
Hello,
Have you customized the SBL_UART_UNIFLASH example according to your custom board parts like DDR?
BR, Prashant
Hi Vikash,
mni@mni:~/ti/mcu_plus_sdk_am62x_09_02_01_06/tools/boot$ python3 uart_uniflash.py -p /dev/ttyUSB0 --cfg=sbl_prebuilt/am62x-sk/default_sbl_ospi_linux_hs_fs.cfg
Parsing config file ...
Parsing config file ... SUCCESS. Found 9 command(s) !!!Executing command 1 of 9 ...
Found flash writer ... sending sbl_prebuilt/am62x-sk/sbl_uart_uniflash_stage1.release.hs_fs.tiimage
Sending sbl_prebuilt/am62x-sk/sbl_uart_uniflash_stage1.release.hs_fs.tiimage: 0%| | 0/248919 [00:00<?, ?bytes/s][ERROR] Serial port [/dev/ttyUSB0] not found or not accessible !!!
Okay so this was not required for the log, as its just COM port access issue. Lets take a look at the further logs.
mni@mni:~/ti/mcu_plus_sdk_am62x_09_02_01_06/tools/boot$ python3 uart_uniflash.py -p /dev/ttyUSB0 --cfg=sbl_prebuilt/am62x-sk/default_sbl_ospi_linux_hs_fs.cfg
Parsing config file ...
Parsing config file ... SUCCESS. Found 9 command(s) !!!Executing command 1 of 9 ...
Found flash writer ... sending sbl_prebuilt/am62x-sk/sbl_uart_uniflash_stage1.release.hs_fs.tiimage
Sent flashwriter sbl_prebuilt/am62x-sk/sbl_uart_uniflash_stage1.release.hs_fs.tiimage of size 248919 bytes in 24.26s.Executing command 2 of 9 ...
Command arguments : --file=../../examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62x-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.release.appimage.hs_fs --operation=flash --flash-offset=0x0
Sending ../../examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62x-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.relesend error: error_count reached 10, aborting.
Sending ../../examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62x-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.rele
[ERROR] XMODEM send failed, no response OR incorrect response from EVM OR cancelled by user,
Power cycle EVM and run this script again !!!
For this I would suggest you reading through this: https://software-dl.ti.com/mcu-plus-sdk/esd/AM62X/10_00_00_14/exports/docs/api_guide_am62x/TOOLS_FLASH.html#TOOLS_FLASH_ERROR_MESSAGES
Let me know if this helps.
Regards,
Vaibhav