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: load_dmsc_hsfs.js Issue for AM2434 HS-FS Device

Part Number: AM2434

Hi 

   Customers are trying to write some PRU test program on LP-AM243x which use HS-FS device. It requires to set device in NO BOOT mode and use java script to load DMSC firmware so we can use CCS to connect to PRU cores in AM2434 device.

on GP device, we use load_dmsc.js in <SDK 8.5>/tools/ccs_load/am243x. We can see this javascript load sysfw into M3 core and run so that we can connect to PRU later.

js:> loadJSFile "/home/andre/ti/mcu_plus_sdk_am243x_08_05_00_24/tools/ccs_load/am243x/load_dmsc.js"
Connecting to DMSC_Cortex_M3_0!
Fill R5F ATCM memory...
Writing While(1) for R5F
Loading DMSC Firmware ... /home/andre/ti/mcu_plus_sdk_am243x_08_05_00_24/source/drivers/sciclient/soc/am64x_am243x/sysfw.bin
DMSC Firmware Load Done...
DMSC Firmware run starting now...
Connecting to MCU Cortex_R5_0!
Main Boot Mode is 120
Running the board configuration initialization from R5!
Happy Debugging!!

js:>

However, if we use load_dmsc_hsfs.js for AM2434 HS-FS device, we will get error message from console as below:

MAIN_Cortex_R5_0_0: Error: (Error -1141 @ 0x1FE) Device is not responding to the request. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.2.0.00002)
MAIN_Cortex_R5_0_0: Trouble Halting Target CPU: (Error -2062 @ 0x136) Unable to halt device. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.2.0.00002)

DMSC firmware doesn't run and we can't connect to PRU core.

I compare the script used for GP and HS-FS device. It looks like load_dmsc_hsfs.js doesn't load sysfw to DMSC. 

Most customers already got new LP-AM263x which use HS-FS device. We need load_dmschsfs.js Can you please help to fix this issue?

Regards

Andre 

  • Hi ,

    Please follow the migration from GP to HS-FS devices - https://software-dl.ti.com/mcu-plus-sdk/esd/AM243X/latest/exports/docs/api_guide_am243x/HSFS_MIGRATION_GUIDE.html

    It mentions that the device should be in DEV_BOOT_MODE. For LP device of AM243x, the NO_BOOT_MODE and DEV_BOOT_MODE settings are same. 

    Refer this part -

    This will help you initialize the device (in dev boot mode with initializations done via CCS/sciclient_ccs_init).

    Hope this helps.

    Best Regards,
    Aakash

  • Aakash,

       Device is set to no-boot/dev boot mode already. I review the document you provide, I don't see any different steps. The processes follow the step:

    In case of HS-FS device, the flow is almost the same:

    • Set the board in DEV-BOOT mode (mandatory)
    • Power ON the EVM/board
    • Launch the CCS target configuration file
    • Run the load_dmsc_hs_fs.js script from the scripting console.

    MAIN_Cortex_R5_0_0: Error: (Error -1141 @ 0x1FE) Device is not responding to the request. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.2.0.00002)
    MAIN_Cortex_R5_0_0: Trouble Halting Target CPU: (Error -2062 @ 0x136) Unable to halt device. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.2.0.00002)

    Would you please to check if load_dmsc_hsfs.js on HS-FS device?

    Regards

    Andre

  • Hi ,

    Would you please to check if load_dmsc_hsfs.js on HS-FS device?

    Yes, this is standard and very well tested flow.

    It looks like there are some problems with target configuration. Are you loading any GEL scripts in your target configuration ?

    Best Regards,
    Aakash

  • Aakash,

       Target configuration is set to AM243x_LAUNCHPAD. I use default configuration.

    Target configuration file is  attached lp-am243x_xds110.ccxml

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/908/lp_2D00_am243x_5F00_xds110.ccxml

    Regards

    Andre

  • Aakash,

        Can you please provide target configuration file you used which can success load dmsc firmware on HS-FS device?

    If it possible, please also provide the log from ccs console and js window for reference. Thanks.

    Regards

    Andre

     

         

  • Hi ,

    The load_dmsc_hsfs.js loads the sciclient example which loads the system firmware -

    MCU_PLUS_SDK/examples/drivers/sciclient/sciclient_ccs_init/am243x-evm/r5fss0-0_nortos/main.c

    In your target configurations, please make sure none of the GEL files are loaded -

    Hope it helps.

    Best Regards,
    Aakash

  • Aakash.

       In \target configurations, none of the GEL files are loaded - The suggestion doesn't help.

     https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/908/lp_2D00_am243x_5F00_hsfs_5F00_dmsc_5F00_xds110.ccxml

    sci client can't run correctly on HS-FS device.

    Regards

    Andre

  • Hi ,

    Can you share the logs of your scripting console as well ? Are you sure the boot mode is correctly set ?

    Best Regards,
    Aakash

  • Aakash,

       The log is as:

    MAIN_Cortex_R5_0_0: Error: (Error -1141 @ 0x1FE) Device is not responding to the request. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.2.0.00002)
    MAIN_Cortex_R5_0_0: Trouble Halting Target CPU: (Error -2062 @ 0x136) Unable to halt device. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.2.0.00002)

    Even with this error, R5F0_0 core still can load program and execute it. However, other cure like ICSSG_0_PRU_0 are always in RESET, can't be connect nor load program.

    One more thing. I also notice emulation package 9.1.xxxx may not show error , but ICSSG_0_PRU0 and rest of code can't be connected not load program.

    Can you please help to confirm does current load_dmsc_hsfs.jc  for HS-FS device enable all cores debugging or just R5F0-0 only??

     

    Regards

    Andre

  • Hi ,

    The load_dmsc_hsfs.js is similar to SBL NULL. It only enables the Application cores like M4F and R5F. The PRU cores are released by Application cores based on the applications.

    The initialization can also be done via GEL scripts which can also enable the PRU cores via debugger. After the CPUs are enabled, you can use the PRU Init GEL scripts to initialize the PRU subsystem and load the PRU firmware.

    Best Regards,
    Aakash

  • Aakash,

       Thanks for your information. Just wondering why load_dmsc.js has different behavior comparing to load_dmsc_hsfs.js.

    load_dmsc.js can connect to PRU in no boot mode on GP device. In the future, we only ship HS-FS device. Provide PRU code development by using NO BOOT mode will be helpful. Is it possible to to change load_dmsc_hsfs.js behavior?

    Regards

    Andre 

  • Hi ,

    The GEL scripts are only designed for GP devices. We are porting the scripts to also work for HS-FS devices. The load_dmsc.js might also be enabling the clocks for various other peripherals.

    Is it possible to to change load_dmsc_hsfs.js behavior

    Yes.. please check this example -- <MCU_PLUS_SDK>/examples/drivers/sciclient/sciclient_ccs_init/am243x-evm/r5fss0-0_nortos

    In this example, before calling the Bootloader_bootSelfCpu, you can call PRUICSS_resetCorePRUICSS_enableCore for all the PRU cores and this will enable the cores for PRU to load the firmware via CCS.

    Hope this helps.

    Best Regards,
    Aakash