I have pushed code to community repo. Code has many places to cleanups and improvements.
Any way it works fine in my Gentoo Linux:
Code: Select all
[ 567.208067] usb 3-1: USB disconnect, device number 3
[ 587.420015] usb 3-1: new full-speed USB device number 4 using uhci_hcd
[ 587.595112] usb 3-1: New USB device found, idVendor=0483, idProduct=5740
[ 587.595115] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 587.595117] usb 3-1: Product: ChibiOS/RT Mass Storage Device
[ 587.595119] usb 3-1: Manufacturer: STMicroelectronics
[ 587.595121] usb 3-1: SerialNumber: AECCECCCC400
[ 587.599163] usb-storage 3-1:1.0: USB Mass Storage device detected
[ 587.600241] scsi host3: usb-storage 3-1:1.0
[ 588.644124] scsi 3:0:0:0: Direct-Access Chibios Mass Storage v4.0 PQ: 0 ANSI: 4
[ 588.651114] sd 3:0:0:0: [sdc] 700 512-byte logical blocks: (358 kB/350 KiB)
[ 588.654110] sd 3:0:0:0: [sdc] Write Protect is on
[ 588.654113] sd 3:0:0:0: [sdc] Mode Sense: 03 00 80 00
[ 588.657107] sd 3:0:0:0: [sdc] No Caching mode page found
[ 588.657110] sd 3:0:0:0: [sdc] Assuming drive cache: write through
[ 588.699113] sd 3:0:0:0: [sdc] Attached SCSI removable disk
[ 588.797104] romfs: Mounting image 'rom 57fca96e' through the block layer
But it windose it locks in debug trap
Code: Select all
osalDbgAssert(!usbGetTransmitStatusI(usbp, ep), "already transmitting");
in usbStartTransmitI() function. I have no ideas why but I did not do any investigations there.
I use NUCLEO-F767 board for development. I think code may run on any Nuclen-144 board.
Any suggestions/bugreports you can submit in this topic on directly on github.