This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

In Stm32, Is that possible to use CMSIS USB driver(common access struct) for developing CDC device class application without any CMSIS RTOS ?

Hi,

I have the following question based on CMSIS USB Middleware driver:

1) In Stm32, Is that possible to  use CMSIS USB driver(common access struct) for developing CDC  device class application without any  CMSIS RTOS (neither with CMSIS keil RTX, Keil RTX5 or FreeRtos) nor with any OSthreading?

2) My main requirement is to use the same CMSIS USB driver software developed for Stm32 with CDC (Communication Device Class) device should be portable (re-use) the same code to other microcontrollers from atmel or texas instruments arm based MCU and MPUs.

Kindly let me know the possibilities.

Thanks,

Gokul.

Parents
  • Could you go into more detail about your concerns of an RTOS? USB is a very transactional, and time specific protocol, so by the time you would have implemented timers and semaphore like behavior, you would have almost re-implemented an RTOS.

    If you use the RTOS with the USB examples, you could run all of your code from a main thread - if you want to avoid anything RTOS related. 

    The CMSIS-RTOS is just a standard. it should work for any Cortex-M device. Find USB device CMSIS-driver might be more of a porting roadblock that the RTOS. http://www.keil.com/support/docs/3707.htm

    ======

    Another option for portability is to using the Freertos variant of the CMSIS-RTOS - since that is a 3rd party RTOS:

    http://www.keil.com/pr/article/1280.htm

Reply
  • Could you go into more detail about your concerns of an RTOS? USB is a very transactional, and time specific protocol, so by the time you would have implemented timers and semaphore like behavior, you would have almost re-implemented an RTOS.

    If you use the RTOS with the USB examples, you could run all of your code from a main thread - if you want to avoid anything RTOS related. 

    The CMSIS-RTOS is just a standard. it should work for any Cortex-M device. Find USB device CMSIS-driver might be more of a porting roadblock that the RTOS. http://www.keil.com/support/docs/3707.htm

    ======

    Another option for portability is to using the Freertos variant of the CMSIS-RTOS - since that is a 3rd party RTOS:

    http://www.keil.com/pr/article/1280.htm

Children
No data