USB/SPI/I2C device mode, does it work?
Regards
Sorry, not implemented.
Is it hard to implement?
I believe it is hard, because I haven't seen any bare-metal project which supports USB device mode
I see, I can't find any. Thanks!
BTW, what is the pin toggle speed?
Sorry, I haven't measure it.
What about SPI and I2C? Do they work in slave mode?
I have only tested master mode for both SPI and I2C. RPi's hardware SPI does not support slave mode anyway.
I have only tested master mode for both SPI and I2C. RPi's hardware SPI does not support slave mode anyway.
https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2835/BCM2835-ARM-Peripherals.pdf
Page 4
SPI Slave is supported by hardware, but linux support has been added around v4.13. I wouldn't be surprised if nobody ever used it yet. It looks like the protocol isn't strict enough, so plenty incompatible implementations exist.
SPI Slave is supported by hardware, but linux support has been added around v4.13.
maybe it is referring BSC/SPI described in chapter 11, which I have not implemented. I only implemented SPI0, which cannot be used in slave mode. Also, I have read at somewhere that BSC/SPI slave does not work correctly