element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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 PI race condition prevents startup
  • 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
  • State Suggested Answer
  • Replies 22 replies
  • Answers 11 answers
  • Subscribers 664 subscribers
  • Views 3772 views
  • Users 0 members are here
  • raspberry_pi
Related

PI race condition prevents startup

colporteur
colporteur over 6 years ago

G'Day,

I have a Pi 3B+ connected to an interface board developed in this RoadTest Review New Year's Grab Bag RoadTest - Review The interface board has its own 3VDC and 5VDC power supplies. If the interface board is powered up before the Pi, the Pi will refuse to start. It starts but I never get network capabilities.  If the Pi is powered up first, bothe the Pi and the interface board operate as designed.

 

The caveat is, I have one Pi that works without the needed the power sequence and another that will only function if the power is applied in the sequence. I have another half dozen Pi's I can try to see what happens but before that I thought it be nice to white board the issue.

 

I am "napkin developing" a strategy for investigating and was hoping for some community insight and experiences. COmmentary in the past has enabled me to solve other problems I have posted relatively fast.  I'm thinking this might be a power issue. The Pi power supply is being loaded by the interface board on power up causing it to fail boot. How could I see this on the Pi?  I'm in the infancy of testing at the moment so what to look for and where to look would be of value.

 

Mother's Day supper is starting so I will have to sign-off. I'm hoping I provided sufficient information to start the discussion.

Sean

  • Sign in to reply
  • Cancel
Parents
  • shabaz
    0 shabaz over 6 years ago

    Hi Sean,

     

    This kind of behavior sometimes happens if some (say) GPIO pin is accidentally being fed with a voltage when the processor card (Pi in this case) is unpowered. What happens is that there could be a couple of protection diodes on the I/O pad inside the chip, for some small bit of ESD or overload protection, and one diode goes to the positive supply for the chip, and the other goes to ground. Ordinarily the diodes do not conduct, but if the processor is unpowered so that the supply rail is at a low voltage, then the diode will conduct if there is a positive voltage on the I/O pin, causing the supply rail to be pulled up and either fully starting the processor, or causing awkwardness with its reset or partial startup. I can't be sure if this is occurring with the Pi (I don't know what the I/O pins look like internally), but other processors do have such diodes, and would do this.

    So, it is worth checking, with the Pi disconnected, are any of the pins high when just the interface board is powered up? And if so, can that pin source any significant current? (use something like a 100 ohm resistor on that pin to ground, and see if the voltage remains high). If that's the case, then that part of the interface board circuit needs examining (it could be some chip-enable or direction pin to a chip is not pulled via a resistor to the disabled or input state).

    If this is the thing causing the issue, then the explanation why one Pi works, is that either the chip-enable or direction pin happens to float in the right direction, or the protection diode could be damaged.

     

    Another thing that sometimes causes such weird behavior, (again not sure with the Pi, since I'm not so familiar with this hardware in detail) is if some pins on the header serve a double-purpose as boot selection pins. In that case, the processor wants those pins in a certain level to boot correctly. Any different logic levels there during startup could cause the processor not to start up. This too can be resolved in the same way as mentioned above, i.e. scan for any pins high with the Pi disconnected.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • colporteur
    0 colporteur over 6 years ago in reply to shabaz

    G'Day,

    Much appreciate you sharing your insight.

     

    I'm not sure if my circuit design suffers from the weakness you suggest. I haven't done field samples only napkin research. The GPIO outputs are each connected to a Bi-directional level converter. I have included a schematic but I am not sure if this is the actual silicon or not. I purchased 8 channel modules from a distributor. https://www.banggood.com/8-Channel-Logic-Level-Translator-Converter-Bi-Directional-Module-p-1023173.html?gmcCountry=CA&c…   No schematic provided so I culled this from the internet. Examining the PCB's the circuit looks very similar.

    image

    The DC power for the module does not come from the Pi but rather from buck boost boards connected to a 12VDC source.  If I follow your train of thinking, yes the pin (TX_LV) connected to a GPIO point would be high as soon as the buck boost modules provide power to the interface board.

     

    Do you have any suggestions on how to isolate the interface power from the Pi? I'm thinking maybe my design is flawed and the LV supply should actually come from the Pi? I had rather hoped to not use any Pi resources to enable the interface board.

     

    Sean

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • colporteur
    0 colporteur over 6 years ago in reply to shabaz

    G'Day,

    Much appreciate you sharing your insight.

     

    I'm not sure if my circuit design suffers from the weakness you suggest. I haven't done field samples only napkin research. The GPIO outputs are each connected to a Bi-directional level converter. I have included a schematic but I am not sure if this is the actual silicon or not. I purchased 8 channel modules from a distributor. https://www.banggood.com/8-Channel-Logic-Level-Translator-Converter-Bi-Directional-Module-p-1023173.html?gmcCountry=CA&c…   No schematic provided so I culled this from the internet. Examining the PCB's the circuit looks very similar.

    image

    The DC power for the module does not come from the Pi but rather from buck boost boards connected to a 12VDC source.  If I follow your train of thinking, yes the pin (TX_LV) connected to a GPIO point would be high as soon as the buck boost modules provide power to the interface board.

     

    Do you have any suggestions on how to isolate the interface power from the Pi? I'm thinking maybe my design is flawed and the LV supply should actually come from the Pi? I had rather hoped to not use any Pi resources to enable the interface board.

     

    Sean

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • shabaz
    0 shabaz over 6 years ago in reply to colporteur

    Hi Sean,

     

    It could be those, although each TX_LV (assuming it is connected that way around, and not accidentally the TX_HV pin) in theory would only be providing a fraction of a milliamp perhaps, there are lots of them, so it all adds up.

    It could be easy to test, by unplugging all of those modules, and trying to start up the Pi. If that works, slowly add the modules and see if it fails on a particular one, or on a particular quantity.

    Once that is determined, if it is the case, then yes powering from the Pi's 3.3V supply would solve it.

    It may be something else though, so it's worth temporarily unplugging them and trying adding them one at a time or  swapping them, to see if the problem goes away at some quantity or some particular module or some position of the module on the board.

    Regarding isolation, currently it is level conversion that is still only separated by the pins of the MOSFET. For true isolation, then that needs a separate supply (could be derived from an isolated DC-DC converter) but also something like a digital isolator IC (several manufacturers make these). There's nothing wrong with level conversion, it depends on the use-case if that is sufficient. Regarding isolated interface power, if you do want it isolated (although as mentioned this is only partial, since the I/O pins are not isolated, just level translated) then the easiest way is to use an isolated DC-DC converter module.

    I've just been working on an isolated circuit, I used a DC-DC converter. In my case it was REE-0505SREE-0505S, which gives me an isolated 5V supply (I didn't need 3.3V for my use-case), it internally has a transformer.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • 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