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.

CCSv5 project linked with SitaraWare libraries cross-compiled with CodeSourcery toolchain - a stumbling block

Other Parts Discussed in Thread: AM1808

The subject is a mouthful.  I've developed a custom AM1808 platform with USB and a SONAR coprocessor.  Here is the problem:

The SitaraWare USB library implements packed structures (typedef overlays on byte tables), however, apparently  the TMS470 ARM compiler does not support packing. :~#

So I learned how to use CodeSourcery ARM cross-compiler toolchain within CSS and have now successfully compiled all of the SitaraWare libraries (-mcpu=arm926ej-s).

Now this stumbling block has me stopped in my tracks...

- If my application is a CSS project (e.g. TMS470 tool-chain), then the TMS470 wchar_t type is incompatible with the CodeSourcery-compiled SitaraWare libs.

- If my application is plain C/C++ project using CodeSourcery tool-chain, then the TI debugger cannot run because the project is not device-specific (even if it were producing the output that the debugger needs).

Arggggggggg!!!!!  Am I taking the wrong approach to this?  Thought about re-writing the TI USB lib and at this point might have been quicker than the learning curve on all these tools.

Help!  Anyone?

 

 

  • Mark Latham said:
    - If my application is plain C/C++ project using CodeSourcery tool-chain, then the TI debugger cannot run because the project is not device-specific (even if it were producing the output that the debugger needs).

    For a plain C/C++ project you wouldn't be able to use the bug button to launch a debug session for the project.  However what you can do is create a target configuration for the AM1808 and launch the debugger and then load the program.  Open the Target Configuration View from the View menu.  Then click on the button to create a new target configuration.  Select your emulator and then the AM1808.  Once you save this file will show up in the view.  Right click on it and select to launch the selected configuration.  Once the debugger comes up click on the ARM9 in the debug view and click the connect button.  Once it has connected click on the load program button and select your program.

     

    I will see if someone from the compiler team can comment on packed structures.  I know we have that now for MSP430.

     

    John

  • John - 

    Thank you very much!  I had target config and gel files, but in Project Explorer view, right-clicking on target config doesn't have the launch option.  The Target Configurations view was the answer.  So far no luck emulating, but at least I'm one step closer.  Thanks again.

    Mark

     

  • JohnS said:
    I will see if someone from the compiler team can comment on packed structures.

    Packed structure support for ARM9 is not available yet.  That is planned for a release which will occur next year.  That same release will also offer an option to change wchar_t to a 32-bit type.  I realize that doesn't help now, but I thought I would mention it.

    I found some old posts which say ARM gcc has an option -fshort-wchar which changes wchar_t from a 32-bit type to a 16-bit type.  However, I am not able to find any current documentation which verifies that.  You could give it a try.  But I can't make any promises it will work.

    Thanks and regards,

    -George