Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I followed the instructions to update EEPROM and it bricked my Sense HAT #326

Closed
sisomm opened this issue Mar 14, 2016 · 18 comments
Closed

Comments

@sisomm
Copy link

sisomm commented Mar 14, 2016

Hi I followed the instructions from point "EEPROM Data" Writing here
https://www.raspberrypi.org/documentation/hardware/sense-hat/

And now it shows the rainbow colors permanently after bootup and no program can read or write to it. It seems completely bricked. What can I do???

skjermbilde 2016-03-14 kl 19 28 30

@XECDesign
Copy link
Contributor

Could you upload your sense.eep somewhere?

Does it start working again if you add dtoverlay=rpi-sense to config.txt and reboot?

@sisomm
Copy link
Author

sisomm commented Mar 14, 2016

Hi, here's my sense.eep: https://dl.dropboxusercontent.com/u/2830831/sense.eep

And yes, adding that line to config.txt did the trick. thank you!

@XECDesign
Copy link
Contributor

Looks okay at a glance. Did eepflash.sh give any errors?

Could you also follow the 'reading' steps and upload the resulting sense_read.eep?

@XECDesign
Copy link
Contributor

Also, added a warning in c6e59ff.

@sisomm
Copy link
Author

sisomm commented Mar 14, 2016

  1. AFAIK eepflash.sh did not give errors until it stopped responding (that is, until i Turned it off/on and made this post)
  2. I get an errror running the command now, while the shield works OK..

skjermbilde 2016-03-14 kl 23 45 45

@XECDesign
Copy link
Contributor

Interesting, thanks. Could you post the output of cat /proc/cpuinfo?

@sisomm
Copy link
Author

sisomm commented Mar 15, 2016

processor : 0
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 76.80
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 1
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 76.80
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 2
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 76.80
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 3
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 76.80
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

Hardware : BCM2709
Revision : a02082
Serial : 00000000f847f36d

@sisomm
Copy link
Author

sisomm commented Mar 15, 2016

We could skype & you could get keyboard control in an SSH session this afternoon if you want to peek around.

@lurch
Copy link
Contributor

lurch commented Mar 15, 2016

Revision : a02082

That indicates that you're using a Pi3B, and I recently read that i2c-0 (which is what you need to read / write the EEPROM on a HAT board) can't be safely accessed from within Linux on a Pi3. Perhaps an additional check for this could/should be added to the eepflash tool?

@sisomm
Copy link
Author

sisomm commented Mar 15, 2016

Sounds like a Good idea. Btw is my sense hat now lost beyond repair?
And - I had issues when a pi screen was connected AND I had another shield (arduberry) on the gpio pins. However the pi3 can also communicate with the display via the ribbon cable. The solution was unstable though, so on that pi3 (not this) I bought a native servo shield from adafruit

@sisomm
Copy link
Author

sisomm commented Mar 15, 2016

Alternatively, can I salvage it by writing to it from at PI2B? I have a few laying about...

@lurch
Copy link
Contributor

lurch commented Mar 15, 2016

Alternatively, can I salvage it by writing to it from at PI2B?

From what I understand, I believe that should work.

@XECDesign Perhaps https://www.raspberrypi.org/documentation/hardware/sense-hat/ should be updated to clarify why / when you'd want to manually update the EEPROM on your Sense HAT?

@sisomm
Copy link
Author

sisomm commented Mar 15, 2016

I like to keep the firmware on my devices updated, as it normally makes them more stable. If the info given on the official raspberry site is likely to brick lots of devices... Whoa! But let's not jump to any conclusions?

@sisomm
Copy link
Author

sisomm commented Mar 15, 2016

UPDATE to @XECDesign and @lurch: I moved the SenseHat to a PI2B and did follow all the steps.. It worked like a charm. The hat is now back on the PI3B and works fine with the python examples. The Eeprom read command doesn't work, though. You should be more specific in the warning and say that it doesn´t work with the PI3B...

@XECDesign
Copy link
Contributor

Clarified the warning in ecee854.

@lurch
Copy link
Contributor

lurch commented Mar 16, 2016

Clarified the warning in ecee854.

Shouldn't it also warn about the Pi 3B?

And IMHO "is are not be needed" doesn't make sense, the sentence would probably read better as "Please note that this operation is potentially dangerous and is not needed for the everyday user." ?

@XECDesign
Copy link
Contributor

Sorry, made the edit while busy with other things. Just an embarrassing editing errors. Thanks @lurch.

I was aware that the pi2 b rev1 used the i2c to talk to the SMPS, but that has since been done using another way. Just checked with the firmware/kernel folk and it turns out i2c0 is used for other things on the pi 3 b. Initially this was not a concern because it would either work or not touch the EEPROM at all, but on the pi 3, it seems that you can have i2c0 for a short while after booting, which is enough to be able to do minor damage.

Phil points out that is a bit-banged i2c interface that can be used instead which should get around all of this. I think I will test that and use it in the documentation instead. Thanks @sisomm for catching this problem.

@lurch lurch changed the title If followed the instructions to update AVR Firmware and it bricked my Sense HAT I followed the instructions to update EEPROM and it bricked my Sense HAT Mar 16, 2016
@LornaLynch
Copy link
Contributor

Closing this as it appears to be resolved?

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

No branches or pull requests

4 participants