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.

CC2540 USB CDC Interface in CodeSize Limited IAR Workbench possible?

Other Parts Discussed in Thread: CC2540

Hi there,

is it possible to implement a USB CDC interface in the USB Dongle without BLE&OSAL in the codesize limited IAR Workbench environment?

- Using the codesize limited evaluation verison of the IAR Embedded Workbench

- No BLE connection necessary

- Using USB CDC as a debug interface

In a first step, I want to use my hardware without Bluetooth - Bluetooth will be a nice to have feature. Since I am a hobbyist, I use the codesize limited version of the Embedded Workbench, so I am searching for an USB CDC example that is usable with the codesize limited version. Has anybody done this and can provide me an example code?

Thanks in advance & kind regards,

McTen

  • Hello McGen,

    Welcome to the Forum!

    The only thing I have come across for the USB is the HID examples that are found in Swrc088.zip.  Inside there you will find the code as well as the CC USB Software Examples User's Guide swru222.pdf.

    Thanks,

  • Hi Greenja,

    thank for your answer.

    These examples exceed the code-limit of 4096Byte, so I can't build them. I am searching for a simple, small and smart implementation of a CDC USB device in a CC2540. I don't need the Bluetooth driver at the moment, so I seach for an example that is buildable with code-size limited version of IAR. So, maybe has someone used the CC2540 without its main feature, too ;-)

    Best regards,

    McTen

  • Well, if those examples exceed the code limit, then I think you may be out of luck in using the code limited version.

     If you don't need the BLE library option, then you should theoretically be able to use any other 8051 compiler for your code.  You would then use SmartRFProgrammer to download the hex file to the device.

    Thanks,

  • So, I think, I have no chance to use the USB controller with a code-size limited version of IAR :-/