Hello, can Keil provide example for RL USB CDC (based on STM32F103) ?
Thanks in advance
Keil doesn't yet distribute CDC example for MCBSTR32
RL-USB provides common APIs for USB implementation across wide-range of USB MCUs. You may drag in CDC implementation from examples of other MCU
Start up from this Keil HID example of STM32F103 (MCBSTR32 board). C:\Keil\ARM\Boards\Keil\MCBSTM32\RL\USB\Device\HID
Replace a couple of files from a CDC example, C:\Keil\ARM\Boards\Keil\MCB1700\RL\USB\Device\CDC - Replace USBD_Demo.c and usb_config.c - Replace usbd_user_hid.c into usbd_user_cdc.c
These files should be touched to port to STM32F USBD_Demo.c - #include <LPC17xx.h> <--- <stm32f10x.h>
usbd_user_cdc.c These routines access to the UART hardware directly You have to port them for STM32F UART. - UART1_IntrCmd() - usbd_cdc_ser_openport() - usbd_cdc_ser_closeport() - usbd_cdc_ser_initport() - UART1_IRQHandler()
Tsuneo
Yes, i make this but not EndPoint IN not called from usb core library.