Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

[Windows 10 IoT Core] Raspberry PI 3 Model B - OS Shutdown does not put device into right state #36

Closed
alexiordan opened this issue Nov 20, 2017 · 1 comment

Comments

@alexiordan
Copy link

alexiordan commented Nov 20, 2017

I want to be able to turn on and off the Raspberry PI Model B running Windows 10 IoT Core version 10.0.16299.19 from the same button. After performing some research I end up connecting the button to GPIO3 and GND, in order to be able to start it up after shutting it down through software.
It didn't work.
Investigating this issue it turned out that the Shutdown command seems to not put the device into the right state. After shutting it down I receive 7 ACT Led blinks again and again instead of 10 ACT Led blinks once.

  1. Is there any progress on rightly shutting down the Raspberry PI?
  2. If point above is not an option, how else can I resolve my issue?

For reference I'll put here two other threads I collect my information from citing the most relevant post in each

Our Windows IoT development team built a Windows BSP for Raspberry Pi pretty much from scratch a couple of years ago. It was the first device we supported with Windows IoT Core. We took some shortcuts, particularly in areas where we couldn't find documentation or something just didn't work. We do not completely shutdown the Raspberry Pi device as each of you reported. We had trouble accessing the power rail firmware and settled on putting the device in a sleep state.

On raspbian sudo halt results in 63 being written to the reset controller register and a watchdog reset being triggered. When bootcode.bin launches it checks for 63 in reset controller and enters a low powered halt state (before LAN, PLLs, clocks and power domains are enabled on the chip).
It will flash the ACT LED ten times at this point, it will go to sleep and only a GPIO event will allow it to continue (or a chip reset through RUN pin).
If you are not seeing ten flashes on the ACT LED then we aren't entering this low powered halt state.
Perhaps you should compare behaviour (and if it wakes up correctly) with raspbian.
If Windows 10 IoT does not enter the low powered halt state then you will need to ask the question there - modifying the firmware won't help.

Initially I thought there is one bootcode.bin per distro, in order to better listen to GPIO3 short to GND in boot process, but guys on raspberrypi firmware said:

There is only one sequence of firmware releases (containing one bootcode.bin and the four start.elf variants), so Windows 10 IoT has to use them.

@saraclay
Copy link
Contributor

This may have been resolved due to recent updates. If this is not the case, please file an issue in our documentation repo: https://github.com/MicrosoftDocs/windows-iotcore-docs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants