OTA update problem

Questions and discussion about The WiPy 1.0 board and CC3200 boards.
Target audience: Users with a WiPy 1.0 or CC3200 board.
torwag
Posts: 220
Joined: Fri Dec 13, 2013 9:25 am

OTA update problem

Post by torwag » Thu Oct 22, 2015 4:08 pm

Hi,

I tried to update my wipy board to release 1.1
First downloaded the binary.zip file form the release page
https://github.com/wipy/wipy/releases/tag/v1.1.0
Unpacked it and moved mcuimg.bin to /flash/sys/ via an ftp client (filezilla to keep things in sync with the doc).
First of all, the file is visible as long as you do not change the folder. However, that could be a caching thing of the ftp-client. Switching to another folder and back... its gone as described in the doc.
Resetting the wipy board and checking for the current version via a telenet connection
>> import os
>> os.uname()
I still end up with release 1.0.0.
That was to be expected since micropython welcome message refer to v1.4.6 where it should be 1.5 according to the release notes.

I tried to compile my own version from the source, however I noticed the source code zip-package from the release page does not contain the micropython source code.
Using my local git repro I could build the wipy firmware but it did not work either.

Any ideas what is going wrong?

Two side notes:
It seems my boot.py is not read during boot-up. I added to code to access the REPL via UART but it did not work. If I enter the code manually it works.


Within the docs for the UART-REPLY Echo there is a small type in the code part... os..... damn cancel that it was fixed as I was writing this... ;)

User avatar
danicampora
Posts: 342
Joined: Tue Sep 30, 2014 7:20 am
Contact:

Re: OTA update problem

Post by danicampora » Thu Oct 22, 2015 4:16 pm

Seems like your WiPy is always safe booting. Do you have anything connected to GP28? If not, check the soldering, maybe there's a short...

torwag
Posts: 220
Joined: Fri Dec 13, 2013 9:25 am

Re: OTA update problem

Post by torwag » Thu Oct 22, 2015 9:30 pm

Thanks for the quick reply.
Yep, that seems to be the problem. I just recognized the different blinking periods during boot.
The problem seems to be Pin 28. Reading it on REPL it is high. Albeit nothing is connected to the expansion board or wipy itself.
I tried to set it to low but it did not work. I could not see any short by naked eye. I would need to check for shorts with a meter tomorrow.
However, I even bridged Pin 28 and GND to pull it low. But even then it seems not to work (still safe booting after reset).
I frighten the wipy board is kind of defect.

Thanks for your help!.

BTW. I would like to congrats you and your team for the achievement to get the wipy-boards out. Its great to see a successful project like this.
.

User avatar
danicampora
Posts: 342
Joined: Tue Sep 30, 2014 7:20 am
Contact:

Re: OTA update problem

Post by danicampora » Thu Oct 22, 2015 9:48 pm

Hi torwag!

Thanks :-), and sorry to hear you are having those issues. It's really strange, because after flashing every WiPy we run this test:

https://github.com/micropython/micropyt ... s/smoke.py

Which also checks for short circuits.

Please try to see once more what could be the problem, and if it persists, just let me know and we'll ship another WiPy to you.

Cheers,
Daniel

torwag
Posts: 220
Joined: Fri Dec 13, 2013 9:25 am

Re: OTA update problem

Post by torwag » Mon Oct 26, 2015 1:33 pm

Hey Daniel,
seems I face the same problem as some others here. I am not aware that I displaced the wipy board. But the symtoms are very much the same as those who added the Vin to the Safeboot pin.
Since I gave the board to some of my students to tinker with it for a day, I cannot say for sure that the failure lays not on our side and might be a PEBKAC.
Any way to rescue the board?

Anyhow I assume that this could become a bigger problem. The wipy and the extension board are not protected against accidentally wrong assembly. Esp. bad luck that it hits the safeboot pin. Maybe for a second generation it might be good to make sure that Vin can't destroy anything in case of wrong assembly.

All the best

Torsten

User avatar
andrew
Posts: 22
Joined: Sun Aug 10, 2014 9:22 am

Re: OTA update problem

Post by andrew » Mon Oct 26, 2015 1:47 pm

I wondered about some kind of physical keying that stops you plugging them together wrongly. Or maybe just an outline of the WiPy on the expansion board to show how it goes.

Andrew

User avatar
danicampora
Posts: 342
Joined: Tue Sep 30, 2014 7:20 am
Contact:

Re: OTA update problem

Post by danicampora » Mon Oct 26, 2015 1:54 pm

Hi Torsten,

If you are lucky your board will recover itself as some others have experienced. Well, it is indeed back luck that the safe boot pin ends up in the 5V position and hence that one it is destroyed when you plug it upside down. I think the only way to really protect against it is by making the board asymmetric so that it can only be plugged in in one way, but then again people can still make mistakes when wiring their own components or when having the WiPy in a breadboard. The expansion board has labels that must match the pin numbers on the WiPy, and that should be enough to indicate the correct orientation, however, it seems that this is not enough.

Still, point taken to make the next revision more robust against incorrect wiring (which is not easy).

Cheers,
Daniel

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: OTA update problem

Post by Roberthh » Mon Oct 26, 2015 2:31 pm

Simply printing the outline of the WiPY board on the expansion board could help to attach WiPy in the proper orientation.

Sebastian
Posts: 18
Joined: Sat Oct 24, 2015 8:09 pm

Re: OTA update problem

Post by Sebastian » Mon Oct 26, 2015 4:19 pm

Is it perhaps possible to change the SafeBoot Pin to another GPIO?

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: OTA update problem

Post by pythoncoder » Tue Oct 27, 2015 7:43 am

+1 for @roberthh's solution. I reckon that would fix the problem.
Peter Hinch
Index to my micropython libraries.

Post Reply