TDA4AH-Q1: TDA4A - CCS Setup and Example flash and debug using CCS

Part Number: TDA4AH-Q1

Hi Team , 
I am able to build the PDK file . Or Right Now i am using the CCS for further code development . 
i have few question related below listed --
1) Can i flash CSL file directly open in CCS and flash or debug in MCU cortex M0 . if yes what further changes i have to do .
I am trying to use UART CSL file but if i connect to debug first i am trying to connect CORTEX M4F0 and connect LPDDR4 Initialization but if i connect MCU coretx R5_0 and trying to load and debug but it is stucking in BOARD initialization i haven't see any output on XDS uart port .  

Can you please tell me if this approach is not good way please give the way how  can i do . 

Thanks 
Aryan vats 

  • Hi Aryan,

    Which example you want to debug from CCS?

    We need to have CCS initialisation script before loading and running any example from R5 core.

    Following link explains how to use CCS initialisation script, Please follow the steps given in the section 7.3 Debugging without HLOS running on A72 (RTOS-only / baremetal).

     software-dl.ti.com/.../ccs_setup_j784s4.html

    Regards,

    Anil

  • i am uisng CSL Uart test Example using that example i am building and after that i am connecting first cortex M_4F0 and some gel command is running after that i am initializing under script section 

     J7_LPDDR4_Config_Dual_DDR_Gran_128B_4266MTs 
     this lddR4 is running it is successful after that for MCU2 build i am flashing main cortex R_5_0_0 but nothing is printed on main Uart . can you please tell i am doing correct or not . 
    thanks
    aryan vats 
  • Hi Aryan,

    Steps to run example from CCS:

    1. Please make sure you have proper target configuration file defined for J784S4EVM.

    2. Add initialisation script file for CORTEX_M4F_0 as given in the above shared link.

    3. After successful launch of the launch.js file, Load and run the binary which gives O/P on the respected console (MCU).

    Note: You can build any UART example from PDK on mcu1_0 and observe the O/P message on the console.

    Build UART example by providing the following command from PDK_*version*/packages\ti\build/

    make -s UART_Baremetal_TestApp CORE=mcu1_0 BOARD=j784s4_evm

    Load and run the binary on MCU1_0 core to observe the log on console.

    Regards,

    Anil

  • Hi Anil , 
    After successful launch of the launch.js file, Load and run the binary which gives O/P on the respected console (MCU). - i am facing problem here 

    js:> loadJSFile("C:/ti/ti-processor-sdk-rtos-j784s4-evm-11_02_01_03/pdk
    _j784s4_11_02_01_08/packages/ti/drv/sciclient/tools/ccsLoadDmsc/j784s4/
    launch.js")
    Uncaught ReferenceError: loadJSFile is not defined
    js:>
    this error is showing only .
    please help me . is there any other way to do . 

  • i am using CSS thia (new version )  is this create any problem . 
    thanks 
    Aryan vats 

  • Hi Aryan,

    CCS Version 20.x will not support loading loadJS from CCS console.

    You can use CCS Version 12.8.1.

    Please refer the following E2E Thread that explains which CCS version to be used.

     [FAQ] TDA4VM: Is CCS 20.x or Theia supported on TDAx devices? 

    Regards,

    Anil

  • hi anil ,
    should i download again lower version or is there any way we can do it in this version only .

    thanks 
    Aryan 

  • Hi Aryan,

    It is recommended to use older CCS version to debug via CCS for J7 Processors. 

    But how you are connecting via CCS to load and run the application, Is the code is hanging from sciClient initialisation in Board_init API?

    We can also run UART example on MCU1_0 core from new CCS version as well, but with the following modification:

    - Need to comment the "Board_sysInit()" from Board_init API from board_init.c file

    - Need to add only "boardCfg = BOARD_INIT_PINMUX_CONFIG" in Board_initUART api (remove BOARD_INIT_MODULE_CLOCK)

    Build the board library and then UART application by giving following commands from packages/ti/build folder.

    gmake -s board CORE=mcu1_0 BOARD=j784s4_evm

    gmake -s UART_Baremetal_TestApp CORE=mcu1_0 BOARD=j784s4_evm

    You can connect to MCU1_0 core by following same steps as you mentioned in the previous reply.

    (Connecting to M4F_0 core, then run the script J7_LPDDR4_Config_Dual_DDR_Gran_128B_4266MTs. and after this you can connect to MCU1_0 core to load and run the binary)

    Regards,

    Anil 

  • i checked it with older version CSL_uart_Test example is working . tell me one thing if i want to run that example in mcu2_0,MAIN_Cortex_R5_0_0 what changes i have to do in code or what is the flow . first i have to connect MCU_0 and run and then jump to connect MAIN_Cortex_R5_0_0 and then flash the build code for MCU2_0 and then run . Can you please tell me .

    Thanks
    Aryan vats 

  • Hi Aryan,

    There is not support for MAIN_Cortex_R5_0_0 core(mcu2_0) for csl_uart_test_app in PDK.

    Can you try with driver example "UART_Baremetal_TestApp" which is supported on mcu2_0(MAIN_Cortex_R5_0_0) core.

    Steps to run the example:

    - Whatever the steps you followed for running csl_uart_test_app on MCU1_0 core is correct,( Launching the launch.js file and then run sciserver_testapp_main by clicking resume button from the ccs on MCU1_0 core after launching the launch.js file) 

    - Connect to MAIN_Cortex_R5_0_0 core and load the UART_Baremetal_TestApp binary built for MCU2_0 core.

    Regards,

    Anil 

  • Hi Anil , 
    Correct me if i am wrong 
    whenever i have to debug the any main cortex . MCU1_0 will be running state correct . 
    thanks 
    Aryan vats 

  • Hi Aryan,

    Yes, MCU1_0 should be in running state:

    After launching launch.js file successfully from CCS, Click on "Resume F8" button to run the SciServier application.

    Then connect to MAIN_Cortex_R5_0_0 core, load & run the binary.

    Regards,

    Anil

  • Hi Anil, 
    I am trying to flash and debug led_Blink_test for MCU2_0 but uart is working but LED is not blinking . Can you please tell me is there any changes i have to do for LED blink test or  should i use MCU1_0 test . 
    Also i want to implement RTOS application how is the flow for checking a example code for RTOS .

    Thanks and Regard 
    Aryan vats 

  • Hi Aryan,

    UART test is working on MCU2_0 without any modifications in CCS older vesrion?

    If yes, what logs you are getting while running LED application on MCU2_0?

    Regards,

    Anil

  • Hi Anil,

    For MCU2_0, I have made some changes to the UART peripheral and configured it to use the Main UART.

    I also have a question regarding running the LED application on MCU1_0. If we are using the User LED, I understand that the User LED is connected through an I2C expander. However, I could not find any code related to the I2C peripheral implementation.

    Could you please confirm how the User LED is expected to be controlled in the MCU1_0 LED application?

    Regards,
    Aryan

  • Hi Aryan,

    Can you please exaplin which example you are using for LED application on MCU1_0 core?

    Regards,

    Anil