Skip to content
  • Paul Molloy's avatar
    Mostly handling first request from the host to get device descriptor. · da3c3a73
    Paul Molloy authored
    Couldn't figure out why the second IN packet wasn't getting sent.
    The host requests 16KBytes worth of data when it makes it's first get
    device descriptor request.  HOWEVER, it sends a STATUS packet immediately
    after receiving the first IN stage.  The stm32 ref manual recommends
    STALLing all xfrs in the opposite direction of current transfer.  But that
    breaks things preventing the host from telling the device to stop talking.
    So still need to add that fix but everything looks good for the first data
    stage when using logic analyzer.
    
    Current build added support for devices which require external xtals for
    USB via define statements.  Also setting flash/sram size to 32KB/6KB to
    support smaller devices.  Adding include files for other devices, guess
    030 is pretty worthless considering it doesn't have USB...
    
    Added "make program" support to make file.  ST-LINK_CLI.exe must be in
    path variable, only works on windows for now..
    da3c3a73