element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum USB device connect resets 512M Raspberry Pi (most USB devices).
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 22 replies
  • Subscribers 677 subscribers
  • Views 4360 views
  • Users 0 members are here
Related

USB device connect resets 512M Raspberry Pi (most USB devices).

Former Member
Former Member over 13 years ago

Hi,

 

I got my batch of 3 brand-new 512M Raspberry Pi-s today (hardware revision "000f" according to /proc/cpuinfo). Every single one of them exhibits the same instability: They reset when I connect certain USB devices. If I have such an offending USB device connected on power-on and leave it in, it will work just fine. Which means that hot-plugging USB devices does not work - a critical bug.

 

I have a couple of USB devices that I can connect without resetting a running 512M Pi:

 

* A SanDisk Cruzer Micro 16 GB memory stick.

* A handful of non-descript memory sticks (give-away advertising gifts from various vendors).

* My USB keyboard.

 

But every single time that I plug any of the following devices into a 512M Pi it resets:

 

* D-Link N Nano Wi-Fi dongle DWA-131.

* Kingston Data Traveller II, 2 GB memory stick.

* An old IBM 64 MB memory stick.

* A pair of USB-powered loudspeakers (speakers with a mini-jack and an analog built-in amplifier powered by 5V USB).

 

I suspect that the USB power surge when an offending device is connected and powers up, is causing the Pi to reset. This did not happen on a previous revision of the Pi - I have three older 256M Pi's and they can all have all of the above USB devices hot-plugged without resetting (as you would expect).

 

The power rail on the 512M Pi's USB port is quite dirty. If I power my USB loudspeakers from a 512M Pi's USB port then I have just as much background noise as I have sound. The noise sounds like power supply switching noise, a 2-4 kHz steady tone with high-frequent chirps as soon as there is activity, e.g. the SD card is active. This leaves the audio output completely unusable. If I do the same setup on a 256M Pi there is still too much background noise for comfort but it is clearly less than on a 512M Pi. If I power the USB loudspeakers from elsewhere, e.g. my laptop, and connect the loudspeakers to the Pi's audio jack then the sound is fine - the noise level is at least low enough for casual listening.

 

I have two different types of 1000 mA 5V power supplies that I have tested with. There is no difference in behavior. I have even tried to buffer the on-board 5V by connecting a flat-ribbon cable to the P1 connector and then, via the ribbon cable wires, connect a 4700 uF capacitor across 5V and GND (pin 2 -> pin 6). No effect.

 

I have seen a report on thermal instability with the new 512M Pi's [1] but that issue is not seen here. I have left one of the 512M Pi's running for 3.5 hours straight without any problems - this one was idling and was not overclocked. I then overclocked it to max "Turbo" mode, re-booted, and started a python script that burns 100% CPU. The /sys/class/thermal/thermal_zone0/temp reported 45 degrees C (45000 raw number) when I started the script and stabilized at 53 degrees C after a minute or so. I left it running for more than 20 minutes straight - no problems.

 

[1] http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=22281&p=215444

 

There has also been a report on a bad USB controller connection [2]. We can rule that out. The issue occurs with specific USB devices and cannot be triggered by mechanically exciting the USB connector. Plus, it is the same pattern on all 3 boards.

 

[2] http://www.element14.com/community/message/64061

 

Unfortunately this sounds like an RMA on all three boards. Please advise me on how to proceed and when I can expect a new batch of 512M Pi's where the USB interface is stable again.

 

  Kind regards

-- Jan Holst Jensen

  • Sign in to reply
  • Cancel
Parents
  • johnbeetem
    johnbeetem over 13 years ago

    Jan Holst Jensen wrote:

     

    I suspect that the USB power surge when an offending device is connected and powers up, is causing the Pi to reset. This did not happen on a previous revision of the Pi - I have three older 256M Pi's and they can all have all of the above USB devices hot-plugged without resetting (as you would expect).

     

    ...

     

    I have two different types of 1000 mA 5V power supplies that I have tested with. There is no difference in behavior. I have even tried to buffer the on-board 5V by connecting a flat-ribbon cable to the P1 connector and then, via the ribbon cable wires, connect a 4700 uF capacitor across 5V and GND (pin 2 -> pin 6). No effect.

     

    Here is my guess:

     

    The rev 1 RasPi had polyfuses F1 and F2 which filtered the +5.0V Vbus going to the USB devices.   F1 and F2 were changed to 0 Ohm jumpers for the last batches of rev 1 RasPis.  The rev 2 RasPi doesn't have F1 and F2 at all.  According to the schematic, the USB Vbus signals are directly connected to 5V0 so any noise is directly coupled and you can't play with F1 and F2 like you could with a rev 1 board.  So it may be a design flaw rather than a manufacturing error and if so, replacement boards won't work any better.

     

    The 4700 uF cap should have helped, especially with the audio.  However, a large cap may have too much inductance to filter sharp spikes.

     

    If you have a spare USB cable, you might hack the Vbus line and insert a 1-2 Ohm resistor to simulate the filtering effect of the polyfuse.  That would test my hypothesis.  An LC circuit would filter without a voltage drop.  An externally-powered hub should also work if it has good power filtering (many don't).

     

    Also, do check TP1-TP2 with a voltmeter.  It should be at least 4.8V, but many people are able to run RasPi with as little as 4.2V.  However, it's conceivable that you're right at the threshold of reliable operation and the current surge of plugging in a new device is enough to trigger misbehavior.  It's unlikely that this is the problem, but it's an easy test.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 13 years ago in reply to johnbeetem

    John Beetem wrote:

     

    Jan Holst Jensen wrote:

     

    I suspect that the USB power surge when an offending device is connected and powers up, is causing the Pi to reset. This did not happen on a previous revision of the Pi - I have three older 256M Pi's and they can all have all of the above USB devices hot-plugged without resetting (as you would expect).

     

    ...

     

    I have two different types of 1000 mA 5V power supplies that I have tested with. There is no difference in behavior. I have even tried to buffer the on-board 5V by connecting a flat-ribbon cable to the P1 connector and then, via the ribbon cable wires, connect a 4700 uF capacitor across 5V and GND (pin 2 -> pin 6). No effect.

     

    Here is my guess:

     

    The rev 1 RasPi had polyfuses F1 and F2 which filtered the +5.0V Vbus going to the USB devices.   F1 and F2 were changed to 0 Ohm jumpers for the last batches of rev 1 RasPis.  The rev 2 RasPi doesn't have F1 and F2 at all.  According to the schematic, the USB Vbus signals are directly connected to 5V0 so any noise is directly coupled and you can't play with F1 and F2 like you could with a rev 1 board.  So it may be a design flaw rather than a manufacturing error and if so, replacement boards won't work any better.

     

    The 4700 uF cap should have helped, especially with the audio.  However, a large cap may have too much inductance to filter sharp spikes.

     

    If you have a spare USB cable, you might hack the Vbus line and insert a 1-2 Ohm resistor to simulate the filtering effect of the polyfuse.  That would test my hypothesis.  An LC circuit would filter without a voltage drop.  An externally-powered hub should also work if it has good power filtering (many don't).

     

    Also, do check TP1-TP2 with a voltmeter.  It should be at least 4.8V, but many people are able to run RasPi with as little as 4.2V.  However, it's conceivable that you're right at the threshold of reliable operation and the current surge of plugging in a new device is enough to trigger misbehavior.  It's unlikely that this is the problem, but it's an easy test.

     

    I had begun to suspect the ommision of the USB fuses too, since they were a major design change in the later revisions. Your explanation makes perfect sense - unfortunately :-(.

     

    I can understand the reasons for removing the USB fuses - larger current draw possible for power-hungry USB devices, and the option of back-powering the Pi from a USB hub. But gaining that at the cost of making the Pi prone to a hard reset when you insert a USB memory stick, is definitely not worth it in my opinion.

     

    I think I may have a USB cable that I can hack to insert a small resistor and test the hypothesis. Will be back later today with the results...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 13 years ago in reply to Former Member

    Jan Holst Jensen wrote:

     

    John Beetem wrote:

     

    Jan Holst Jensen wrote:

     

    I suspect that the USB power surge when an offending device is connected and powers up, is causing the Pi to reset. This did not happen on a previous revision of the Pi - I have three older 256M Pi's and they can all have all of the above USB devices hot-plugged without resetting (as you would expect).

     

    ...

     

    I have two different types of 1000 mA 5V power supplies that I have tested with. There is no difference in behavior. I have even tried to buffer the on-board 5V by connecting a flat-ribbon cable to the P1 connector and then, via the ribbon cable wires, connect a 4700 uF capacitor across 5V and GND (pin 2 -> pin 6). No effect.

     

    Here is my guess:

     

    The rev 1 RasPi had polyfuses F1 and F2 which filtered the +5.0V Vbus going to the USB devices.   F1 and F2 were changed to 0 Ohm jumpers for the last batches of rev 1 RasPis.  The rev 2 RasPi doesn't have F1 and F2 at all.  According to the schematic, the USB Vbus signals are directly connected to 5V0 so any noise is directly coupled and you can't play with F1 and F2 like you could with a rev 1 board.  So it may be a design flaw rather than a manufacturing error and if so, replacement boards won't work any better.

     

    ...

     

    If you have a spare USB cable, you might hack the Vbus line and insert a 1-2 Ohm resistor to simulate the filtering effect of the polyfuse.  That would test my hypothesis.  An LC circuit would filter without a voltage drop.  An externally-powered hub should also work if it has good power filtering (many don't).


     

    I put together a USB extension cable and just having that extra wire between the USB ports and the devices does make a difference. My Wi-Fi dongle and the two previously-failing memory sticks can now be plugged into a running Pi - and it stays up. But, it is not enough to keep it going when I plug in my USB-powered speakers.

     

    I did not have a small-enough resistor at hand but I had an inductor so I inserted that small inductor in the +5V wire. It was not enough. I then added a 470 uF capacitor across +5V and GND, after the inductor, so the extension cable has an LC bridge. Not enough either, but then - I don't know how big that inductor is...

     

    Then I tried just having the capacitor across +5V and GND in the extension cable - a real dumb "dummy USB device": Charge a capacitor when plugged in, then do nothing. A 470 uF capacitor is enough to trigger a reset of the Pi - sometimes. And a 1000 uF capacitor does the job every time. The old 256M board stays alive in both cases.

     

    With regards to main board voltage: I checked TP1-TP2 and it hovers around 4.72 which is at the low end. One of my power supplies has adjustable voltage and I ramped it up to "6V" leaving me with 5.6V on the main board - should be plenty. It still resets when I plug in the Kingston memory stick.

     

    I will ask on the Raspberry Pi forum whether there are any plans for changing the design so we can get the fuses back in or some other form of current limitation. As it is, the USB ports are not at all user-friendly and the resets have now cost me data loss on two SD cards that I have had to re-image.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 13 years ago in reply to Former Member

    Jan Holst Jensen wrote:

     

    ...

     

    I will ask on the Raspberry Pi forum whether there are any plans for changing the design so we can get the fuses back in or some other form of current limitation. As it is, the USB ports are not at all user-friendly and the resets have now cost me data loss on two SD cards that I have had to re-image.

     

    No need to ask. They have already had a long discussion over it, and it sounds like a lot of people have had problems with the USB ports providing too little current:

     

    http://www.raspberrypi.org/phpBB3/viewtopic.php?f=24&t=5830&hilit=usb+reset

     

    So they decided to remove the USB port fuses. Which apparently makes a lot of people happy - just not me. I guess this is the way the Pi works until a major board revision is done :-(.

     

    Can anyone suggest good (more stable) alternatives to the Pi in the 100-150 EUR range ? I just want a small thing that runs Linux from an SD card and uses a USB power supply (since I now have a few of those :-) )...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 13 years ago in reply to Former Member

    Jan Holst Jensen wrote:

     

    ...

     

    I will ask on the Raspberry Pi forum whether there are any plans for changing the design so we can get the fuses back in or some other form of current limitation. As it is, the USB ports are not at all user-friendly and the resets have now cost me data loss on two SD cards that I have had to re-image.

     

    No need to ask. They have already had a long discussion over it, and it sounds like a lot of people have had problems with the USB ports providing too little current:

     

    http://www.raspberrypi.org/phpBB3/viewtopic.php?f=24&t=5830&hilit=usb+reset

     

    So they decided to remove the USB port fuses. Which apparently makes a lot of people happy - just not me. I guess this is the way the Pi works until a major board revision is done :-(.

     

    Can anyone suggest good (more stable) alternatives to the Pi in the 100-150 EUR range ? I just want a small thing that runs Linux from an SD card and uses a USB power supply (since I now have a few of those :-) )...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • johnbeetem
    johnbeetem over 13 years ago in reply to Former Member

    Jan Holst Jensen wrote:

     

    Can anyone suggest good (more stable) alternatives to the Pi in the 100-150 EUR range ? I just want a small thing that runs Linux from an SD card and uses a USB power supply (since I now have a few of those :-) )...

    Here are some good element14 threads.  We love talking about the latest offerings image

     

    Interesting "Competitors" for the Raspberry Pi

     

    New kid on the block - meet OLinuXino

     

    Wanted, help finding embedded linux board

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube