You should single step in ASM through that switch/case and see what happens exactly.
Giovanni
STM32F103 LibUsb
- Giovanni
- Site Admin
- Posts: 14892
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: STM32F103 LibUsb
Ok so to fix the problem, the following line of code was changed to directly use the LLD
to
Code: Select all
/* Initiate next receive */
usbPrepareReceive(usbp, EP_OUT, receiveBuf, 62);
chSysLockFromIsr();
usbStartReceiveI(usbp, EP_OUT);
chSysUnlockFromIsr();to
Code: Select all
usb_lld_read_packet_buffer(usbp, ep, receiveBuf, 62);
usb_lld_start_out(usbp, ep);- Giovanni
- Site Admin
- Posts: 14892
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: STM32F103 LibUsb
Hi,
That looks more like a workaround than a solution, low level functions are not meant to be called directly. It is possible that some error condition prevents the high level functions to call the low level but you should address the reason not just bypass the check.
Giovanni
That looks more like a workaround than a solution, low level functions are not meant to be called directly. It is possible that some error condition prevents the high level functions to call the low level but you should address the reason not just bypass the check.
Giovanni