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: AM2434 HS-FS Device Questions.

Part Number: AM2434
Other Parts Discussed in Thread: UNIFLASH

Hi expert,

    My customer just got HS-FS device. They are trying to program it on their board.  They are using following configuration file to program it. 

Basically, just replace prebuilt GP images to prebuilt HS-FS images for flash writer, sbl_ospi.

The hs-fs image for hello world is recompiled from CCS and generate automatically by default makefile_ccs_bootimage_gen.

ospi_sbl_app.cfg

You can see they can program device successfully.  However, reboot device, the device doesn't work and they can't get anything output from UART.

The same situation when they change to program sbl_null. Device can be programmed but boot fail.

Field FAE doesn't have HS-FS EVM, can you please help? Anything missing in their steps?

Regards

Andre

  • Hi ,

    As per the logs, it seems like the device is indeed HS-FS device because the SBL_UART_UNIFLASH seem to work perfectly fine. Let's try to debug this with SBL-NULL -

    Can the customer try to connect to R5_0 CPU and check where the program counter is ? Is the boot mode correctly selected as xSPI to see this result right ?

    Best Regards,
    Aakash

  • Aakash, 

        There is no output from sbl_null. They can't connect JTAG. Can you please help to check anything different in between RBL and SBL? Any pin that SBL has pull up, but RBL doesn't? 

    Regards

    Andre 

  • Hi ,

    Is this a custom EVM or a TI-EVM ?

    Best Regards,
    Aakash

  • Aakash,

     It's custom board. If images and processes they are using to program FLASH is correct, we will ask them review HW first. And please provide if there is pad setting difference between RBL and SBL, that will help.

    Regards

    Andre

  • Hi ,

    I will check the HW from the experts. Another approach that can be done is using uart_bootloader.py / UART BOOT MODE.

    More details - https://software-dl.ti.com/mcu-plus-sdk/esd/AM243X/latest/exports/docs/api_guide_am243x/BOOTFLOW_GUIDE.html#autotoc_md302
    https://software-dl.ti.com/mcu-plus-sdk/esd/AM243X/latest/exports/docs/api_guide_am243x/TOOLS_BOOT.html#UART_BOOTLOADER_PYTHON_SCRIPT

    This will rule out if there is a problem with flash HW or not.

    Also my suggestion is to first start with a simple Hello World and then try the OSPI_IO example to confirm if the HW is functional or not -
    https://software-dl.ti.com/mcu-plus-sdk/esd/AM243X/latest/exports/docs/api_guide_am243x/EXAMPLES_DRIVERS_OSPI_FLASH_IO.html

    Hope it helps with more information.

    Best Regards,
    Aakash

  • Customer use the same OSPI flash as our EVM.

    They can pass OSPI_IO test, and also OSPI_DMA_Transfer test.  Please refer to log from these test as.

    // ============================================================
    //
    // [CCS Scripting Console] : Launch target configuration
    //
    js:> loadJSFile "C:/ti/mcu_plus_sdk_am243x_08_05_00_24/tools/ccs_load/am243x/load_dmsc_hsfs.js"
    Connecting to MCU Cortex_R5_0!
    Writing While(1) for R5F
    Running the board configuration initialization from R5!
    
    
    
    // ============================================================
    //
    // [CCS Console] : Start project debug
    //
    **** Build of configuration Debug for project ospi_flash_io_am243x-lp_r5fss0-0_nortos_ti-arm-clang ****
    
    MAIN_Cortex_R5_0_0: GEL Output: CPU reset (soft reset) has been issued through GEL.
    
    [MAIN_Cortex_R5_0_0] All tests have passed!!

    // ============================================================
    //
    // [CCS Scripting Console] : Launch target configuration
    //
    js:> loadJSFile "C:/ti/mcu_plus_sdk_am243x_08_05_00_24/tools/ccs_load/am243x/load_dmsc_hsfs.js"
    Connecting to MCU Cortex_R5_0!
    Writing While(1) for R5F
    Running the board configuration initialization from R5!
    
    
    
    // ============================================================
    //
    // [CCS Console] : Start project debug
    //
    **** Build of configuration Debug for project ospi_flash_dma_am243x-lp_r5fss0-0_nortos_ti-arm-clang ****
    
    MAIN_Cortex_R5_0_0: GEL Output: CPU reset (soft reset) has been issued through GEL.
    
    [MAIN_Cortex_R5_0_0] [OSPI] DMA low latency example started...
    OSPI Write 32 bytes in 466157 ns
    OSPI Read 32 bytes in 1857 ns
    OSPI Read 32 bytes in 1848 ns
    OSPI Read 32 bytes in 1810 ns
    OSPI Read 32 bytes in 1710 ns
    OSPI Read 32 bytes in 1713 ns
    OSPI Read 32 bytes in 1710 ns
    OSPI Read 32 bytes in 1710 ns
    OSPI Read 32 bytes in 1713 ns
    OSPI Read 32 bytes in 1710 ns
    OSPI Read 32 bytes in 1710 ns
    Average time for OSPI Read 32 bytes in 1748 ns
    All tests have passed !!!

    I don't think their HW has problem.

    They also can use uart to flash HS-FS device without any error.

    C:\ti\mcu_plus_sdk_am243x_08_05_00_24\tools\boot>dir
     磁碟區 C 中的磁碟是 Windows
     磁碟區序號:  0632-1F2D
    
     C:\ti\mcu_plus_sdk_am243x_08_05_00_24\tools\boot 的目錄
    
    2023/03/31  上午 08:52    <DIR>          .
    2023/03/31  上午 08:52    <DIR>          ..
    2023/03/31  上午 08:52    <DIR>          linuxAppimageGen
    2023/03/31  上午 08:53    <DIR>          multicoreImageGen
    2023/03/31  上午 08:51    <DIR>          out2rprc
    2023/03/31  上午 08:46    <DIR>          sbl_prebuilt
    2023/03/31  上午 08:52    <DIR>          signing
    2023/03/31  上午 08:52    <DIR>          socid_parser
    2022/12/22  上午 11:28             6,992 uart_bootloader.py
    2022/12/22  上午 11:28             9,300 uart_bootloader_bufio.py
    2022/12/22  上午 11:28            29,327 uart_uniflash.py
    2022/12/22  上午 11:28            45,402 uart_uniflash_gui.py
    2023/03/31  上午 08:53    <DIR>          xipGen
                   4 個檔案          91,021 位元組
                   9 個目錄  49,319,665,664 位元組可用
    
    C:\ti\mcu_plus_sdk_am243x_08_05_00_24\tools\boot>python uart_uniflash.py -p COM13  --cfg=sbl_prebuilt/am243x-lp/default_sbl_ospi_hs_fs.cfg
    
    Parsing config file ...
    Parsing config file ... SUCCESS. Found 4 command(s) !!!
    
    Executing command 1 of 4 ...
    Found flash writer ... sending sbl_prebuilt/am243x-lp/sbl_uart_uniflash.release.hs_fs.tiimage
    Sent flashwriter sbl_prebuilt/am243x-lp/sbl_uart_uniflash.release.hs_fs.tiimage of size 296586 bytes in 26.62s.
    
    Executing command 2 of 4 ...
    Command arguments : --operation=flash-phy-tuning-data
    Sent flash phy tuning data in 1.6s.
    [STATUS] SUCCESS !!!
    
    Executing command 3 of 4 ...
    Command arguments : --file=sbl_prebuilt/am243x-lp/sbl_ospi.release.hs_fs.tiimage --operation=flash --flash-offset=0x0
    Sent sbl_prebuilt/am243x-lp/sbl_ospi.release.hs_fs.tiimage of size 301482 bytes in 29.78s.
    [STATUS] SUCCESS !!!
    
    Executing command 4 of 4 ...
    Command arguments : --file=../../examples/drivers/ipc/ipc_notify_echo/am243x-lp/system_freertos_nortos/ipc_notify_echo_system.release.appimage.hs_fs --operation=flash --flash-offset=0x80000
    Sending ../../examples/drivers/ipc/ipc_notify_echo/am243x-lp/system_freertos_nortos/ipc_notify_echo_system.release.appimage.hs_fs: 119364bytes [00:1Sending ../../examples/drivers/ipc/ipc_notify_echo/am243x-lp/system_freertos_nortos/ipc_notify_echo_system.release.appimage.hs_fs: 119364bytes [00:1Sending ../../examples/drivers/ipc/ipc_notify_echo/am243x-lp/system_freertos_nortos/ipc_notify_echo_system.release.appimage.hs_fs: 120393bytes [00:1Sending ../../examples/drivers/ipc/ipc_notify_echo/am243x-lp/system_freertos_nortos/ipc_notify_echo_system.release.appimage.hs_fs: 120394bytes [00:1Sending ../../examples/drivers/ipc/ipc_notify_echo/am243x-lp/system_freertos_nortos/ipc_notify_echo_system.release.appimage.hs_fs: 120395bytes [00:1Sending ../../examples/drivers/ipc/ipc_notify_echo/am243x-lp/system_freertos_nortos/ipc_notify_echo_system.release.appimage.hs_fs: 120396bytes [00:1Sending ../../examples/drivers/ipc/ipc_notify_echo/am243x-lp/system_freertos_nortos/ipc_notify_echo_system.release.appimage.hs_fs: 120397bytes [00:1                                                                                                                                                    Sent ../../examples/drivers/ipc/ipc_notify_echo/am243x-lp/system_freertos_nortos/ipc_notify_echo_system.release.appimage.hs_fs of size 118936 bytes in 13.61s.
    [STATUS] SUCCESS !!!
    
    All commands from config file are executed !!!
    
    C:\ti\mcu_plus_sdk_am243x_08_05_00_24\tools\boot>

    HOWEVER, the device can't boot. There is no message from UART.  Any suggestion?

    Regards

    Andre

  • Hi ,

    Everything seems okay to me. Can we schedule a call to debug this issue ?

    Best Regards,
    Aakash

  •   Aakash, 

            Customer confirm this issue happens on both GP & HS-FS device with SDK8.5. 

    After changing QE bit enable type from "0" to "5" in syscfg, this problem can be solved. Thanks for your help.

    Regards

    Andre