Menu

No USB device visable after programming Arduino Leonardo

2023-10-12
2024-04-12
  • Bernard Mentink

    Bernard Mentink - 2023-10-12

    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

     
  • Bernard Mentink

    Bernard Mentink - 2023-10-12

    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
  • Mikael Nordman

    Mikael Nordman - 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.

     
  • Bernard Mentink

    Bernard Mentink - 2023-10-13

    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
  • Bernard Mentink

    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
  • Mikael Nordman

    Mikael Nordman - 2023-10-14

    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
    • Bernard Mentink

      Bernard Mentink - 2023-10-16
      Nothing shows on /var/log/system or dmesg etc when plugging in ..
      
       
  • Bernard Mentink

    Bernard Mentink - 2023-10-18

    Any other suggestions to get this going?

     
    • Mikael Nordman

      Mikael Nordman - 2023-10-18
      • Google for OSX USB serial drivers and how they work.
      • Send me a MAC
      • ...
       
  • Bernard Mentink

    Bernard Mentink - 2023-10-20

    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
  • Bernard Mentink

    Bernard Mentink - 2023-10-23

    @oh2aun Weird thing is, the board shows up as a PPP modem under Network, but nothing as a USB port. See screenshot ..

     
    • Mikael Nordman

      Mikael Nordman - 2023-10-24

      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 ?

       
      • Bernard Mentink

        Bernard Mentink - 2023-10-24

        Does PPP networking reserve the USB serial interface and prevent using it for a serial terminal ? Is there a need to disable PPP networking ?

        Not sure how to disable PPP on Macos

        What details does the USB device tree show for FF ? It should be visible under Hardware/USB.

        Like I said previously, nothing shows up at all ...

        How does the ESP32-S2 work ? Can a terminal be connected to it ?

        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
  • Mikael Nordman

    Mikael Nordman - 2024-04-12

    The Atmega 32U4 USB should now be working also on OSX. It was fixed by Taylor Yu on github.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.