• AVR Freaks

Hot!24FJ1024GB610 Host CDC works with Library but not with Code configurator?

Author
Rickyz
New Member
  • Total Posts : 22
  • Reward points : 0
  • Joined: 2013/10/18 04:52:48
  • Location: 0
  • Status: offline
2019/05/13 11:03:38 (permalink)
0

24FJ1024GB610 Host CDC works with Library but not with Code configurator?

I have been able to get the CDC Host working on a 24FJ1024Gb610 with the library (v2018_11_26) receiving and transmitting but can not get it to work using MCC v3.75 USB Framework lite V 1.26.1
 
There is not much to configure, I have traced through the code and It looks like the USB_SUPPORT_BULK_TRANSFERS (usb_host.c) is not defined so _USB_InitWrite is either setting pEndpoint->transferState            = TSTATE_BULK_WRITE; wrong or something else is wrong.  Can not find any comments (hope I have not missed anything).
 
Has anyone else had this problem?
 
Thanks
 
 
 
 
 
#1

3 Replies Related Threads

    Rickyz
    New Member
    • Total Posts : 22
    • Reward points : 0
    • Joined: 2013/10/18 04:52:48
    • Location: 0
    • Status: offline
    Re: 24FJ1024GB610 Host CDC works with Library but not with Code configurator? 2019/08/01 23:54:21 (permalink)
    0
    I have produced a pre production PCB using the 24FL1024GB606 hoping that I could have another stab at using the MLA USB Host Lite framework.  Again I can detect a connection using
     
    USBHostCDC_ApiDeviceDetect();
     
    However 
     
    USBHostCDC_Api_Send_OUT_Data(5,stringToSend)
     
    Is not working, I have tried to debug it but its a rabbit warren.
    Has anyone else managed to get the Host CDC working?
     
    Thanks
     
    #2
    Rickyz
    New Member
    • Total Posts : 22
    • Reward points : 0
    • Joined: 2013/10/18 04:52:48
    • Location: 0
    • Status: offline
    Re: 24FJ1024GB610 Host CDC works with Library but not with Code configurator? 2019/08/02 01:17:44 (permalink)
    0
    Just to add that USBHostCDC_Api_Send_OUT_Data(5,stringToSend)
    does not fail, it just does not do anything.
     
    #3
    jazzychad
    New Member
    • Total Posts : 1
    • Reward points : 0
    • Joined: 2020/03/02 15:37:28
    • Location: 0
    • Status: offline
    Re: 24FJ1024GB610 Host CDC works with Library but not with Code configurator? 2021/01/06 01:21:39 (permalink)
    0
    Hi Rickyz,
     
    I just started a project with the PIC24FJ64GB002 and I have the exact same problem. Did you ever figure out a solution? I call USBHostCDC_Api_Send_OUT_Data(...) successfully and then calling USBHostCDC_ApiTransferIsComplete always returns false with no error and 0 bytes sent!
    #4
    Jump to:
    © 2021 APG vNext Commercial Version 4.5