Kevin Mehall's USB stack

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Has anyone got Kevin Mehall's USB stack working? It's based on the nonolith one I think.

 

https://github.com/kevinmehall/usb

 

I've imported it into Atmel Studio and set it up for a known-working 128A3U board, but it won't enumerate. Has anyone else tried it?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Have you tried contacting him via GitHub ?

 

Is this you, then: https://github.com/kevinmehall/usb/issues/7 ?

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, I asked there too.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

The secret sauce was -fno-jump-tables. I thought that was fixed in gcc now, but whatever... A basic set up comes out at 2082 bytes, meaning a 4k bootloader is now looking entirely doable.