AnsweredAssumed Answered

issue with USB CDC

Question asked by ml.michal on Oct 4, 2013
Hi All,

i'm using STM32F407, USB Device library V1.1.0 / 19-March-2012,
i'm able to receive from PC to STM bytes using CDC, but i'm unable to send to PC from STM :-(
i modified function like this :
static uint16_t VCP_DataTx (uint8_t* Buf, uint32_t Len)
  for( uint16_t i = 0; i < Len; i++)
    APP_Rx_Buffer[APP_Rx_ptr_in] = CDCdebug_tx_buf[ i ];

    /* To avoid buffer overflow */
    if(APP_Rx_ptr_in == APP_RX_DATA_SIZE)
      APP_Rx_ptr_in = 0;


  return USBD_OK;

most of lines was taken from CDC template from Library,

thanks for all replies,
Kind regards,

UPDATE: i forgot to call that function ... it's not called by any Handler as i thought,
please remove topic ...