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.

AM2434: Flash Program

Part Number: AM2434
Other Parts Discussed in Thread: UNIFLASH

Hi,

I have developed a custom CAN communication using the AM243x-LP and MCU+SDK v11.01.00.19. I want that the board saves the program so everytime that i plugged onto the bus it starts running. Therefore, I have tried to flash the application to the OSPI Flash.

The issue: When I try to run the uart_uniflash.py script using a configuration file, despite outputing as success, when i check in with putty i have the following:
"

DMSC Firmware Version 11.0.7--v11.00.07 (Fancy Rat)
DMSC Firmware revision 0xb
DMSC ABI revision 4.0

Some tests have failed!! "

Can anyone help me with this? 

  • Hi,

    The issue: When I try to run the uart_uniflash.py script using a configuration file, despite outputing as success, when i check in with putty i have the following:

    Please share the flashing logs for this.

    Best Regards,

    Meet.

  • Hi, 

    Thank you for answering. 

    I have been able to solve this issue. By noticing that on build, despite success I had an error related to python not being found for creating security measurements, as in my pc python was recognized as 'py' while in makefile_ccs_bootimage_gen it looks for python or python 3. Solving this i had the following flash log:

    Parsing config file ...
    Parsing config file ... SUCCESS. Found 3 command(s) !!!

    Executing command 1 of 3 ...
    Found flash writer ... sending C:/ti/mcu_plus_sdk_am243x_11_01_00_19/tools/boot/sbl_prebuilt/am243x-lp/sbl_uart_uniflash.release.hs_fs.tiimage

    Sent flashwriter C:/ti/mcu_plus_sdk_am243x_11_01_00_19/tools/boot/sbl_prebuilt/am243x-lp/sbl_uart_uniflash.release.hs_fs.tiimage of size 309190 bytes in 28.1s.

    Executing command 2 of 3 ...
    Command arguments : --file=C:/ti/mcu_plus_sdk_am243x_11_01_00_19/tools/boot/sbl_prebuilt/am243x-lp/sbl_ospi.release.hs_fs.tiimage --operation=flash --flash-offset=0x0
    Sent C:/ti/mcu_plus_sdk_am243x_11_01_00_19/tools/boot/sbl_prebuilt/am243x-lp/sbl_ospi.release.hs_fs.tiimage of size 311174 bytes in 29.1s.
    [STATUS] SUCCESS !!!

    Executing command 3 of 3 ...
    Command arguments : --file=C:/Users/W11P/Documents/GitHub/AM243x_AM64x/AM243x_full_Config_(ID_BR)/Debug/AM243x_full_Config_(ID_BR).appimage.hs_fs --operation=flash --flash-offset=0x80000
    Sent C:/Users/W11P/Documents/GitHub/AM243x_AM64x/AM243x_full_Config_(ID_BR)/Debug/AM243x_full_Config_(ID_BR).appimage.hs_fs of size 133790 bytes in 14.88s.
    [STATUS] SUCCESS !!!

    All commands from config file are executed !!!

    and switching to OSPI mode:

    DMSC ABI revision 4.0

    KPI_DATA: [BOOTLOADER_PROFILE] CPU Clock : 800.000 MHz
    KPI_DATA: [BOOTLOADER_PROFILE] Boot Media : NOR SPI FLASH
    KPI_DATA: [BOOTLOADER_PROFILE] Boot Media Clock : 100.000 MHz
    KPI_DATA: [BOOTLOADER_PROFILE] Boot Image Size : 128 KB
    KPI_DATA: [BOOTLOADER_PROFILE] Cores present :
    r5f0-0
    KPI_DATA: [BOOTLOADER PROFILE] SYSFW init : 11125us
    KPI_DATA: [BOOTLOADER PROFILE] System_init : 11332us
    KPI_DATA: [BOOTLOADER PROFILE] Drivers_open : 1645us
    KPI_DATA: [BOOTLOADER PROFILE] Board_driversOpen : 535811us
    KPI_DATA: [BOOTLOADER PROFILE] Sciclient Get Version : 9845us
    KPI_DATA: [BOOTLOADER PROFILE] CPU load : 41287us
    KPI_DATA: [BOOTLOADER PROFILE] SBL End : 2us
    KPI_DATA: [BOOTLOADER_PROFILE] SBL Total Time Taken : 611049us

    Image loading done, switching to application ...
    Hello 2
    bitTimes:
    Prescaler:3
    TSEG1:15
    TSEG2:4

    Thank you Smiley