To answer this, part of the question will be to remember just how much work I did with Hydra and where I left my USB shenanigans in that context. I thought that I could answer the question by seeing if Hydra had a nice print and my bare metal did not, but I have printf ready to go either way.
cd Hydra make clean make make flashAfter this, we see the following on the console. I did this with no USB cable attached.
Up and running mainline code USB test running - VCP DataTx 9 bytes: 1 h 1 hello - VCP DataTx 9 bytes: 2 h 2 hello ... ... ... - VCP DataTx 9 bytes: 8 h 8 hello USB test done Enter idle loopPlugging in a cable (without rebooting) yields a LOT of activity. Here is a part of it:
USBint = OUT Endpoint 0 xfer complete USBint - Rx level Endpoint 0, read packet 8 bytes from FIFO USBint - Rx level USBint = OUT Endpoint 0 setup done - EP 1 StartXfer 64 bytes - EP 0 StartXfer 0 bytes USBint = IN Endpoint 1 empty Tx Endpoint 1, write packet 64 bytes to FIFO: 1 h USBint = IN Endpoint 0 Xfer complete USBint - Rx levelThis all must be interrupt driven, as the processor is executing an idle loop.
This raises more questions than it answers. For example what is "VCP"?
Tom's Computer Info / tom@mmto.org