AT90USB162 won't show up in windows, can't get it to work

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

I'm trying to program an AT90USB162 with Atmel FLIP, however I can't get it to work.
Here's the schematic:

I'm new to MCUs and I don't know what to do. The only thing I was able to verify is that the MCU is getting 5v.
Any ideas what should I do?

Last Edited: Thu. Aug 9, 2018 - 04:29 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Check the crystal datasheet to make sure those 10pF caps are the right value.

 

--Mike

 

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


This is what I found about the crystal I have, what capacitor should I use?

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

The 16MHz crystals I have require 22pF.  Your datasheet indicates between 16pF and 30pF.  If you have a scope, you can check whether the oscillator is actually toggling, and at what rate.

 

--Mike

 

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

03vmate wrote:
I'm new to MCUs 

then USB is a bit advanced to be starting with!

 

I would suggest that you'd be better starting with either an Arduino, or an XPlained Pro / Mini / Nano with onboard debugger:

 

https://www.avrfreaks.net/commen...

 

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

I've used arduinos before, I'm referring to "the hardware". I've never used anything else than a prebuilt dev board. Also, I really need USB for a project, so that's why I chose the AT90USB162

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

avr-mike wrote:

The 16MHz crystals I have require 22pF.  Your datasheet indicates between 16pF and 30pF.  If you have a scope, you can check whether the oscillator is actually toggling, and at what rate.

 

--Mike

 


I've swapped the 10pF caps for 20pF ones, still doesn't work.

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

The only other idea I have is you left RESET floating.  Check the datasheet for the way to hook it up properly.

 

--Mike

 

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

avr-mike wrote:

The only other idea I have is you left RESET floating.  Check the datasheet for the way to hook it up properly.

While many/most/all of us would indeed usually/always add circuitry to /RESET on AVR applications to ensure robust operation during a variety of real-world conditions, there is no reason why a "bench setup" otherwise benign would suffer the appearance of a dead AVR.  ~30k is indeed kind of a weak pullup -- but remember we all use such a weak internal pullup on our buttons/switches in production apps.

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

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

I've added a 1k pullup to the reset pin, didn't  work. Tried 0.3k and 10k with the same result

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

Also, tried with 2 other AT90USB162's, and the same thing is happening with those: nothing.

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

I would suggest an Arduino Pro-micro (M32U4, leonardo clone), looking at it's schematic, is not much different then your AT90, one diff is the M32U4 has a /HWB pin that is tied to gnd on the Leonardo.

Does the AT90 have a pin like that?

 

Jim

Edit: yes it does, suggesting it needs to be tied to gnd to enter bootloader (is one present?) upon power up.

 

 

Click Link: Get Free Stock: Retire early!

share.robinhood.com/jamesc3274

 

 

 

Last Edited: Thu. Aug 9, 2018 - 08:16 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I need the MCU to have USB host, so that's why I chose the AT90USB series. It does have a /HWB pin, I tried connecting it to ground or vcc but nothing happened.

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

1) Use an ohm meter to verify that the 22 ohm resistors are actually 22 ohms.

 

Here is the schematic for the Olimex board for the AT90USB162.

 

Note the bypass capacitors - 10uF and several 100nF caps.  These are necessary for proper operation.

 

Note the switch (BUT) connected to PD7.  PD7 should be grounded to enter bootloader mode.

 

Note that the above circuit uses an 8MHz crystal.

 

 

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

Chuck99 wrote:
Note that the above circuit uses an 8MHz crystal.

the pro-micro uses a 16MHz, but is using a different bootloader!

 

Click Link: Get Free Stock: Retire early!

share.robinhood.com/jamesc3274

 

 

 

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

03vmate wrote:
I need the MCU to have USB host, so that's why I chose the AT90USB series.

That is interesting  -- I'll wager a virtual cold one that that model does NOT have host capabilities.

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

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

Yeah, I *might* have overlooked something. Do you have any recommendation for a really low cost usb host capable MCU? 

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

03vmate wrote:
Do you have any recommendation for a really low cost usb host capable MCU?

 

The AT90USB647 and AT90USB1287 support USB Host Mode.

 

The 647 is around $7 and the 1287 is around $9.

 

 

Edit: Corrected typo.

 

Last Edited: Thu. Aug 9, 2018 - 10:19 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

theusch wrote:

While many/most/all of us would indeed usually/always add circuitry to /RESET on AVR applications to ensure robust operation during a variety of real-world conditions, there is no reason why a "bench setup" otherwise benign would suffer the appearance of a dead AVR.  ~30k is indeed kind of a weak pullup -- but remember we all use such a weak internal pullup on our buttons/switches in production apps.

 

Thanks - I did not know about the internal reset pullup resistor.  My only experience with custom AVR hardware is using the Ultimate Arduino Prototype Board which has external reset parts.  This is how I knew the 10pF caps were suspect.  BTW, I personally am a bit weak when it comes to pull ups as well.

 

Arduino Ultimate Prototype Board v2

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

Well, thanks everyone for the help, I think I'll look into the SAMD series for price reasons. 

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

03vmate wrote:
low cost usb host capable MCU? 

Here are some Host adaptors so that you can use an "ordinary" MCU: http://www.hobbytronics.co.uk/usb-host

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

I thought you had to assert HWB at power on for DFU to enumerate? Are you doing this?