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.

CODECOMPOSER: Theia AM263P4: Custom Initialization Script Path Not Resolved Correctly

Part Number: CODECOMPOSER
Other Parts Discussed in Thread: AM263P4

Tool/software:

Hello,

I'm trying to use Theia to debug AM263P4.

Problem 1:

My usual (CCS12.8.1) target configuration is active. The first problem is that when I hit  Start Debugging, something flashes up in red (an error) then quickly disappears. It's only because I captured this in the GIF below that I know what is says:

It's complaining that it can't find the initialization script. See #2.

Anyway, please ensure any errors can be seen so that they can be tackled.

Problem 2:

I use a custom Initialization Script version controlled in the project itself in a subfolder of the target configuration file.

The relative path above which worked in CCS12.8 does not work in Theia:

Only an absolute path for the custome GEL file works but this is not portable.

Please ensure that the CC12.8 behaviour is carried over to Theia.

  • Hello,

    I am reassigning your thread to the AM263x team. Feel free to ping the thread if you do not get a response within a couple of business days.

    Regards,

    Nick

  • The relative path above which worked in CCS12.8 does not work in Theia:

    I can't seem to reproduce the issue:

    Can you provide more details on your environment? The error message you sent is truncated. Can you provide the full message?

    Thanks

    ki

  • Hello Ki,

    Here's the folder and file arrangement:

    The target config is:

    system_project/targetConfigs/AM263Px(r5ss0-1_lockstep).ccxml

    It references:

    system_project/targetConfigs/CustomGelFiles/AM263Px(r5ss0-1_lockstep).gel

    In Eclipse, the following path from target config to GEL is as follows:

    The same in Theia gives the following error in the Debug Output log:

    So it's expecting my custom GEL file to be relative to the targetdb folder in the Theia installation.

  • I'll give this a try on my AM263P4 board when I am in the office tomorrow. Thanks.

  • The target config is:

    system_project/targetConfigs/AM263Px(r5ss0-1_lockstep).ccxml

    It references:

    system_project/targetConfigs/CustomGelFiles/AM263Px(r5ss0-1_lockstep).gel

    In Eclipse, the following path from target config to GEL is as follows:

    I confirmed that there is a difference in behavior between CCS Eclipse and CCS Theia.

    In CCS Eclipse: When using a relative path, CCS will first search the directory of ccxml file first. If it cannot find it there, it will then search in the default <CCS INSTALL DIR>\ccs\ccs_base\common\targetdb

    In CCS Theia: When using a relative path, CCS will  only search in the default <CCS INSTALL DIR>\ccs\ccs_base\common\targetdb

    Initially I assumed your CustomGELFiles was in <CCS INSTALL DIR>\ccs\ccs_base\common\targetdb. But after you clarified that it is in the same directory as the ccxml file then this explains it.

    I won't go into the details on why the change happened. But it was intentional to support some other feature.

  • I filed an ticket to bring this functionality back:

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

    I think it is important since it helps to make ccxml files more portable.

  • Many thanks Ki!

  • If possible, please also add a Browse button for the init script. It's missing in Theia.

  • I created another ticket for this on your behalf:

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