By the way, I used the ISCP header, with avrdude, to program the board, cause I presume you do not use the bootloader, the same as Arduino UNO?
I assume the usbserial.fs code is allready in the .hex file? Or do I need to connect in serial mode then compile the usb stuff ..? It is not clear in the docs, and the file above makes reference to doing that.
Last edit: Bernard Mentink 2023-10-13
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The -USB hex file works with USB serial without any additions. The -UART file also contains the USB serial functionality, but the command line is connected to the UART.
The usbserial.fs file is only needed if you compile a FF version without any USB support.
I have only tested the USB serial with linux and Windows and there it works fine. Are you using OSX ?
For the PIC versions I had to more strictly follow the USB standard for OSX to work with the FF USB implementations.
I would need a wireshark trace of USB protocol to maybe get a hint about what is wrong.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Windows earlier versions than 10 needs to install the https://sourceforge.net/p/flashforth/code/ci/master/tree/pic18/src/serialcdc.inf
file in order to recognize FF USB. Windows 10/11 does not need it.
I don't know about the OSX drivers.
Does the OSX kernel log or system log put out messages when you connect the Leonardo ?
Noticed that the SCAMP site does not mention about installing any driver for OSX. SCAMP is using FF for PIC24. The FF USB code should be about the same for AVR. https://udamonic.com/getting-started.html
Last edit: Mikael Nordman 2023-10-14
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Google for OSX USB serial drivers and how they work.
As far as I can tell the CDC driver is included in macos, it is just not picking up the board.
Googling shows people installing 3rd party or old drivers and running into issues, but I havn't done that.
Send me a MAC
Whish I could :)
Last edit: Bernard Mentink 2023-10-20
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I flashed the file 32u4-16MHz-USB, which was sucessful. But no device shows when I plug in the USB connector of the board.
Any ideas? Thanks
By the way, I used the ISCP header, with avrdude, to program the board, cause I presume you do not use the bootloader, the same as Arduino UNO?
I assume the usbserial.fs code is allready in the .hex file? Or do I need to connect in serial mode then compile the usb stuff ..? It is not clear in the docs, and the file above makes reference to doing that.
Last edit: Bernard Mentink 2023-10-13
Yes, you have to overwrite the bootloader.
The -USB hex file works with USB serial without any additions. The -UART file also contains the USB serial functionality, but the command line is connected to the UART.
The usbserial.fs file is only needed if you compile a FF version without any USB support.
I have only tested the USB serial with linux and Windows and there it works fine. Are you using OSX ?
For the PIC versions I had to more strictly follow the USB standard for OSX to work with the FF USB implementations.
I would need a wireshark trace of USB protocol to maybe get a hint about what is wrong.
Yes I am using OSX. I will try using some different USB-A Adapters (I only have USB-C on this laptop)
EDIT: Tried 3 adapters, none work ..
Last edit: Bernard Mentink 2023-10-13
Windows see's it as FF50, but can't find drivers. Which drivers are requird? Maybe OSX needs additional drivers as well?
Last edit: Bernard Mentink 2023-10-13
Windows earlier versions than 10 needs to install the
https://sourceforge.net/p/flashforth/code/ci/master/tree/pic18/src/serialcdc.inf
file in order to recognize FF USB. Windows 10/11 does not need it.
I don't know about the OSX drivers.
Does the OSX kernel log or system log put out messages when you connect the Leonardo ?
Noticed that the SCAMP site does not mention about installing any driver for OSX. SCAMP is using FF for PIC24. The FF USB code should be about the same for AVR.
https://udamonic.com/getting-started.html
Last edit: Mikael Nordman 2023-10-14
Any other suggestions to get this going?
As far as I can tell the CDC driver is included in macos, it is just not picking up the board.
Googling shows people installing 3rd party or old drivers and running into issues, but I havn't done that.
Whish I could :)
Last edit: Bernard Mentink 2023-10-20
@oh2aun Weird thing is, the board shows up as a PPP modem under Network, but nothing as a USB port. See screenshot ..
Does PPP networking reserve the USB serial interface and prevent using it for a serial terminal ? Is there a need to disable PPP networking ?
What details does the USB device tree show for FF ? It should be visible under Hardware/USB.
How does the ESP32-S2 work ? Can a terminal be connected to it ?
Not sure how to disable PPP on Macos
Like I said previously, nothing shows up at all ...
As far as I understand, works the same way using CDC ..
Remember, the 32u4 board shows up just fine on Windows using the windows CDC driver ..
I suspect it is some sort of device certification policy that MacOS has introduced recently
requiring signed drivers etc
Last edit: Bernard Mentink 2023-10-24
The Atmega 32U4 USB should now be working also on OSX. It was fixed by Taylor Yu on github.