This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

USBD write

Hi,

I read data from FDS and output it to nRF USB. The output is implemented by

app_usbd_cdc_acm_write(&m_app_cdc_acm, m_tx_buffer, (sizeof(m_tx_buffer));

But I only see the last item on the output. Please, what is the problem so that I can see

the whole list on the terminals. The output via NRF_LOG_HEXDUMP_INFO is OK.

Best regards

Regio

Parents Reply
  • Hi Dmitry,

    thank you for your response.

    if(new_usb_packet > 0 && usb_busy == false)
    	   {
    		   sprintf(&m_tx_buffer[12], "\r\n");
              
           app_usbd_cdc_acm_write(&m_app_cdc_acm,
                                     m_tx_buffer,      
                        (sizeof(read_data)*2)+2);      
     					
    		      if(ret == NRF_ERROR_BUSY)
    		      {
    		      NRF_LOG_INFO("usb_busy = true");
    		      usb_busy = true;
    		      }
    		      else if(ret != NRF_SUCCESS)
    		      {
    		      NRF_LOG_INFO("USB ret != NRF_SUCCESS");
    		      }
    		      else
    		      {
    		      new_usb_packet--;
              }
          }

    I've already done that and it didn't help to see the code

Children
Related