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.

CC2538 CDC example porting from IAR to CCS

Other Parts Discussed in Thread: CC2538, CCSTUDIO

Hi,

i am trying to use the USB CDC ecample provided  with the "CC2538 Foundation Firmware". How can i use this example with CCS? It looks like the examples are ony avialable for IAR. Maybe the only problem is the "__packed" type descriptor wich is not recognized by CCS / the ARM compiler. How can i port this examples to CCS?

Regards

Ulf

  • Hi Ulf,

    I suppose a good first step would be to bring the code into CCS and go through the errors/differences in compiler commands.   Usually it is some of the pragma directives that are different.

    The users guides in the product folder typically contain a section on conversion.   Although you are not using an msp, the msp guide has one of the more helpful sections on converting code.

    http://www.ti.com/tool/ccstudio

    All the best.

    Best Regards,

    Lisa

  • Hi Lisa,

    using the CC2538 peripheral driver library i am facing another problem: as soon as a try to enable the external 23 KHz watch crystal, neither the Watchdog nor the Sleeptime work anymore.

    /* This works */

        SysCtrlClockSet(false,
                        false,
                        ui32SysDiv);

    /* This doesn't work */

        SysCtrlClockSet(true,
                        false,
                        ui32SysDiv);

    This is true for both our own hardware as well as fo the CC2538EM used on the SmartRF06 Board. You can easliy check with the "keys" example. As the debouncing is done using the Watchdog timer, the example doesn't work any more as soon as the external 32 kHz crystal is used.


    Regards

    Ulf

  • Hi,

    i guess i have the same issue as described here:

    http://e2e.ti.com/support/wireless_connectivity/f/155/p/300854/1048819.aspx#1048819

    Could you please comment on it?

  • Hi Ulf,

    I would post in that forum ... perhaps tweaking them might end in some responses.

    Best Regards,

    Lisa