ATMega328P Xplained Mini No Longer Recognized

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

hi

 

Previously, Atmel Studio and Windows Device Manager recognized my ATMega328P Xplained Mini board, as described here. i successfully programmed the board with Atmel Studio. 

 

But now the board is not recognized by Atmel Studio or by Windows Device Manager. When i plug the board in, it appears the LED blink code i previously uploaded to the board is running. However, AS and Device Manager don't see the board. 

 

i ran this USBDeview tool, recommended in this thread. I can see mEDBG listed in USBDeview, but USBDeview says "No" under connected-- even tho the board is connected. 

 

How to fix? Is re-installing Atmel Studio really the only option? This problem seems related to USB or drivers, not Atmel Studio. Update: I reinstalled AS, and still not detecting the board. 

 

I uninstalled the device with USBDeview. Now when i plug the board in, i don't see any messages about installing a new device. Nothing is listed in Device Manager under ports. 

 

Is this board just gone bad?

 

thx

Last Edited: Mon. Mar 12, 2018 - 05:15 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

johnyradio wrote:
Is this board just gone bad?
No, probably not bad.  You probably deleted the driver accidentally.

 

Follow these steps:

 

Disconnect the ATMega328P Xplained Mini board from the computer.

 

Completely remove AS7 from the computer.

 

Reboot the computer.

 

Install AS7.   Pay attention to the messages on the screen to see that the drivers get installed.

 

Reboot the computer again.

 

Connect the ATMega328P Xplained Mini board to the computer.  See if the driver gets loaded.  If yes great!

 

If not, open the device manager , click on View, Show hidden devices.  Do you see a greyed out EDBG Data Gateway listed?  Answer this question then we will continue.

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

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

larryvc wrote:
You probably deleted the driver accidentally.

that's hopeful. 

larryvc wrote:
Completely remove AS7 from the computer, Reboot the computer, Install AS7. Reboot the computer again.

ouch, would like to avoid a full reinstall, if possible. Trying just to re-install Atmel Kits and ASF. I uninstalled both in Extension Manager, but now when i try to re-install, i get a popup telling me to install the Microchip Extension Manager-- which i already did install. 

 

Ok, i tried to install the Microchip Extension Manager, and i get a VSIX error. 

 

Do i have to re-install all this stuff, or just AS? 

 

 

Update 1: I ran Atmel uninstaller, and got Repair option. Looks like it may be restoring all missing components, including ASF and Drivers. I'll report back...

 

Update 2: On reboot, after AS Repair, i got a Visual Studio JIT error (without starting AS-- just on Windows boot). Should i be concerned? I applied this fix. I'll report back...

 

Update 3: Xplained board still not recognized by Device Manager or AS. Next, i'll try re-install...

Last Edited: Wed. Mar 14, 2018 - 06:48 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

johnyradio wrote:
Update 3: Xplained board still not recognized by Device Manager or AS. Next, i'll try re-install...
Very good idea.

 

If you have problems after that we can then ping Microchip for more advice.

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

Last Edited: Wed. Mar 14, 2018 - 08:51 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

johnyradio wrote:
Update 3: Xplained board still not recognized by Device Manager or AS.

If it's not in DevMgr, then AS certainly won't see it.

 

Does your USB Dev View thingy see it?

 

http://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=ATMEGA328P-XMINI

 

I've had troubles with the USB connectors on other XPlained boards - so check the joints very carefully!

 

Does anything happen if you "wiggle" the connector ... ?

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

After a complete re-install of AS, AS is still not seeing the board, still not visible in Device Mgr. 

 

awneil wrote:
Does your USB Dev View thingy see it?  
 

 

nope

 

awneil wrote:
Does anything happen if you "wiggle" the connector ... ?

Funny you should ask. I noticed the LED on the board (which is still running a sketch i uploaded previously) goes off if i push the connector in a certain way. Presumably, the board is losing power connection. When not touching, the LED stays on. 

 

If the power connection is lost when the connector is pushed sideways, then possibly the data connection is bad even when not touched. 

 

Your troubles with the USB connectors on other XPlained boards supports this theory. 

Last Edited: Thu. Mar 15, 2018 - 11:48 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

johnyradio wrote:
Funny

I think "annoying" would be more appropriate ?

 

To be fair, this isn't confined to Atmel boards - the micro-USB connectors on some other manufacturer's devboards also seem, well - "fragile"

 

frown

 

I tend to just plug a cable in, and then leave it permanently connected to the board - so only the other end (the big end) gets the stress of plugging in & out.

 

 

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

awneil wrote:
plug a cable in, and then leave it permanently connected

Great idea, if it's not a portable :)

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

or: keep the cable permanently connected to the board, just disconnect cable from computer. But then must take care not to yank around board-end of cable in wrong directions. 

 

or: hold the USB connector on the board firmly when inserting/removing cable from board, to avoid stressing solder joints on the usb connector. 

 

i'm now trying a Nano clone, which has the beefier mini-B usb connector.