USB cdc enum Ok but no works
hello, i starting a project in STM32F103C8T6 bluepill.
it's my first project on STM32.
configure my hight resonator, usb + cdc + debug, like all the video on youtube.
but for my not works.
my hardware is correct R10=1.5KO, enumeration was good. COM29.
but i cannot write and read.
no breakpoint in CDC_Receive_FS()
if i calling CDC_Transmit_FS on main , return BUSY.
increase heap 0x800 KO
increase stack 0x800 KO
set line CODING KO
/* USER CODE BEGIN PRIVATE_DEFINES */
/* Define size for the receive and transmit buffer over CDC */
/* It's up to user to redefine and/or remove those define */
#define APP_RX_DATA_SIZE 64
#define APP_TX_DATA_SIZE 64
case CDC_SET_LINE_CODING:
LineCoding.bitrate = (uint32_t) (pbuf[0] | (pbuf[1] << 8) |
(pbuf[2] << 16) | (pbuf[3] << 24));
LineCoding.format = pbuf[4];
LineCoding.paritytype = pbuf[5];
LineCoding.datatype = pbuf[6];
/* Set the new configuration */
//ComPort_Config();
break;
case CDC_GET_LINE_CODING:
pbuf[0] = (uint8_t) (LineCoding.bitrate);
pbuf[1] = (uint8_t) (LineCoding.bitrate >> 8);
pbuf[2] = (uint8_t) (LineCoding.bitrate >> 16);
pbuf[3] = (uint8_t) (LineCoding.bitrate >> 24);
pbuf[4] = LineCoding.format;
pbuf[5] = LineCoding.paritytype;
pbuf[6] = LineCoding.datatype;
break;i 'm continuing my search but if you want help me?
i'm crazy!
thanks
