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.

66AK2G12: DSP software crash after update processor SDK RTOS

Part Number: 66AK2G12
Other Parts Discussed in Thread: SYSBIOS

Hi team,

My DSP software used to build with TI-RTOS with the following packages and running on 66AK2G12 processor in CCS 7.2.00013 without any issue.

bios_6_46_05_55

edma3_lld_2_12_05_29

pdk_k2g_1_0_7

processor_sdk_rtos_k2g_4_01_00_06

XDCtools xdctools_3_32_01_22_core

Compiler TI v8.1.3

ccsv7  7.2.00013

 

Recently, I updated TI processor sdk RTOS and CCS. The latest K2G processor SDK has the following packages

bios_6_76_03_01

edma3_lld_2_12_05_30E

pdk_k2g_1_0_16

processor_sdk_rtos_k2g_6_03_00_106

xdctools_3_55_02_22_core

Compiler TI v8.3.8

ccs1020  10.2.0.00009

 

After built the same DSP software with the latest TI packages (except edma3) I got the following error when I run my DSP software in ccs 10.2.0.00009:

"[C66xx] ti.sysbios.family.c64p.EventCombiner: line 105: assertion failure: A_invalidEventId: Invalid event Id specified

xdc.runtime.Error.raise: terminating execution"

 

Q1: Why I got this error after update TI package?

Q2: The latest sdk comes with component edma3_lld_2_12_05_30E. It is in my drive under C:\ti\edma3_lld_2_12_05_30E after installation. But I cannot see it in Discovered products in CCS under Menu bar -> Window -> Preference -> Code Composer Studio -> products. Why?

Thank you,

Sarah

  • Hi Sarah,

    Is the issue you are trying to solve is EDMA discovery or below issue?

    I assume below may be importance for you.

    "[C66xx] ti.sysbios.family.c64p.EventCombiner: line 105: assertion failure: A_invalidEventId: Invalid event Id specified

    Questions:

    1. Above is a run time error from Sys BIOS, so I assume you don't have EDMA dependency from the application you are building.

    2. The error should not be dependent on CCS 10.2 upgrade. You can double check this by loading the created executable and running it on earlier CCS (ccs v7)

    3. What is the application customer is running to notice the assertion issue? The event combiner is throwing the issue, because of invalid event ID. Note that only 128 system events can be mapped as an output from event combiner. There are only 4 groups of 32 events in the DSP, resulting in 4 event outputs. This seems like application is passing some event ID greater than 127. Please put a break point in the code (where you are registering the event) and see if there is some corruption on the event ID or some uninitialized event is getting passed to the lower layer.

    Thanks

  • Q2: The latest sdk comes with component edma3_lld_2_12_05_30E. It is in my drive under C:\ti\edma3_lld_2_12_05_30E after installation. But I cannot see it in Discovered products in CCS under Menu bar -> Window -> Preference -> Code Composer Studio -> products. Why?

    When you started CCS, did it prompt you to install the newer version of EDMA3? If you installed it, you should see it. You can also try to click "Refresh" under Window -> Preference -> Code Composer Studio -> products, and CCS will show you all the products it detected but not installed. You can choose and install any product from the list.

    Regards,

    Jianzhong

  • Thank you both for your replies!

    We tried to solve the DSP crash issue and DSP crash when it's running EDMA driver.

    Ans Q1: DSP has run time error from Sys/BIOS. But it has EDMA dependency since it is built including EDMA package. DSP does utilize EDMA in our application.

    Ans Q2: As expected, running the same .out in ccs v7 also got DSP crash.

    Ans Q3: The "assertion failure: A_invalidEventId" is gone after replacing our local file sample_cs.c from C:\ti\edma3_lld_2_12_05_29\packages\ti\sdo\edma3\drv\sample\src\sample_cs.c to C:\ti\edma3_lld_2_12_05_30E\packages\ti\sdo\edma3\drv\sample\src\sample_cs.c. The sample_cs.c calls Sys/BIOS function EventCombiner_disableEvent().

    But we have another DSP crash in running EDMA code.

    ti.sysbios.family.c64p.Exception: line 265: E_exceptionMax: pc = 0x40000608, sp = 0x0081fffc.

    xdc.runtime.Error.raise: terminating execution

     

    We installed processor_sdk_rtos_k2g_6_03_00_106 and it includes edma3_lld_2_12_05_30E.

    We did "Refresh" " under Window -> Preference -> Code Composer Studio -> products

    But the Discovered products for EDMA3 Low Level Driver only show "2.12.5 [C:/ti/edma3_lld_2_12_05_29]." There is no edma3_lld_2_12_05_30E. Any suggestions?

    Thanks,
    Sarah

  • Sarah,

    You can try one of the following:

    • click "Install..." under Window -> Preference -> Code Composer Studio -> Products and select folder "C:\ti\edma3_lld_2_12_05_30E".
    • reinstall edma3_lld_2_12_05_30E to a different folder and add that folder to Window -> Preference -> Code Composer Studio -> Products->Product discovery path. Then do "Refresh".

    Regards,

    Jianzhong

  • Hi Jianzhong,

    Nothing happens after I click “install…” and select folder "C:\ti\edma3_lld_2_12_05_30E".

    I copied "C:\ti\edma3_lld_2_12_05_30E" and rename it to "C:\ti\edma3_lld_2_12_06" and added that folder to Window -> Preference -> Code Composer Studio -> Products->Product discovery path. Then, do “Refresh” but edma3_lld_2_12_06 still doesn’t show in “Install Discovered Products” window.

    Thanks,
    Sarah

  • Sarah,

    I have the same version of CCS as yours and the installation works fine for me. Can you try to reinstall the Processor-SDK to a different folder and try again?

    Thanks,

    Jianzhong

  • Hi Sarah, 

    The issue is due to an known incompatibility between the versioning system these packages use and the CCS package discovery system:

    https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/691217/ccs-processor-sdk-amic110-ccs-8-0-0-00016-doesn-t-support-two-sdks-with-the-same-edma3-driver-down-to-the-first-3-parts-of-the-version-number-but-targeting-different-processors

    An enhancement request was filed to support the versioning system:

    https://sir.ext.ti.com/jira/browse/EXT_EP-8933

    However, it was declined as it was determined that the packages in question are not following the correct versioning system to be considered unique.

    Unfortunately, I don't have a nice workaround for you. You will need to uninstall the older EDMA package from CCS so that the newer one can be discovered and used.

    Thanks

    ki