bouffalo_sdk icon indicating copy to clipboard operation
bouffalo_sdk copied to clipboard

BL702 usb device not working

Open andryblack opened this issue 2 years ago • 9 comments

usb cdc example freeze after request device descriptor

andryblack avatar Jan 29 '23 00:01 andryblack

Works good, no problem.

sakumisu avatar Jan 30 '23 11:01 sakumisu

Crash is there: https://github.com/bouffalolab/bl_mcu_sdk/blob/master/drivers/lhal/src/bflb_usb_v1.c#L548

andryblack avatar Jan 30 '23 12:01 andryblack

host is MacOS, presumably endpoint control data readed as out data.

andryblack avatar Jan 30 '23 12:01 andryblack

No other information i cannot help you.

sakumisu avatar Jan 30 '23 14:01 sakumisu

@andryblack it seems that macOS have some weird issue with USB CDC generally. I was forced to reduce CDC buffer sizes to get anything to work at all during ISP omde.

gamelaster avatar Jan 30 '23 16:01 gamelaster

It is not cdc issue, crash occur on early, enumeration stage after request first descriptor. CDC on Mac OS works perfectly with correct code, for example with stm32 chips. I can produce minimal example.

andryblack avatar Jan 30 '23 18:01 andryblack

@andryblack it seems that macOS have some weird issue with USB CDC generally. I was forced to reduce CDC buffer sizes to get anything to work at all during ISP omde.

I'm having the same problem on macos, can't upgrade via BLDevCude, how did you reduce the cdc buffer sizes to get the ISP to work, can you share? thanks

LynnL4 avatar Apr 12 '23 01:04 LynnL4

@LynnL4 I used my flashing tool "blisp"

gamelaster avatar Apr 12 '23 04:04 gamelaster

I am experiencing the same issue. SOC: BL702 Board:RV-Debugger Plus. I think it may relevant to clock or host os. I 'm less occur this issue on linux.

However, I found the old sdk which sipeed used to develop RV-Debugger Plus are very stable. https://github.com/sipeed/bl_mcu_sdk/tree/1cf3d1455b3baf66a9e3237365fcdfd69d821487 Demo project which easy to build: https://github.com/metro94/RV-DAP-Plus

luyi1888 avatar Apr 01 '24 14:04 luyi1888