Firmware Update Fails
-
@szatmari60 Even with the manual updater, have you installed the wire between GND and GP23, and Reset after that?
-
Hello Robert!
YES! And I managed to upgrade my another WiPy 2.0 two or three weaks ago. On original firmware I do not get working ADC.
Upgraded one booting:
""
PORT OPEN 115200Communication with MCU..Got answer! Communication with MCU established.
AutoDetect firmware...Can't autodetect firmware, because proper answer not received (may be unknown firmware).
Please, reset module or continue.
Jun 8 2016 00:22:57rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:QIO, clock div:2
load:0x3fff9010,len:8
load:0x3fff9018,len:248
load:0x40078000,len:4056
load:0x4009fc00,len:920
entry 0x4009fde4
I (1515) wifi: wifi firmware version: 90b1b8b
I (1516) wifi: config NVS flash: disabled
I (1516) wifi: config nano formating: disabled
I (1531) wifi: Init dynamic tx buffer num: 32
I (1532) wifi: wifi driver task: 3ffbd714, prio:23, stack:3584
I (1532) wifi: Init static rx buffer num: 10
I (1534) wifi: Init dynamic rx buffer num: 0
I (1538) wifi: Init rx ampdu len mblock:7
I (1542) wifi: Init lldesc rx ampdu entry mblock:4
I (1546) wifi: wifi power manager task: 0x3ffd99a8 prio: 21 stack: 2560
I (1553) wifi: sleep disable
I (2542) wifi: wifi timer task: 3ffdaa3c, prio:22, stack:3584
I (2559) wifi: Init ampdu: 0
I (2559) wifi: mode : softAP (24:0a:c4:00:68:b1)
MicroPython v1.8.6-504-gff1098f6 on 2017-03-13; WiPy with ESP32
Type "help()" for more information.
import os
os.uname().release'1.6.8.b1'
"""
-
You should not be getting those messages if you really have GND and G23 connected.
When you have GND+G23 the board goes into a special loader mode. In this mode if you use a terminal program on that port (at 115200) you'll see:
rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2)) waiting for downloadMake sure your connections are OK, maybe even replace the jumper cable to make sure there is a connection.
Also make sure there is nothing else connected to the other pins on the board.
-
Hello jmarcelino !
I checked and rechecked and rechecked with may two board, I folloed the regulations, no cure in may case until now. -
@szatmari60
Are you sure the jumper cable connecting G23 and GND is working? Can you check continuity or try another one. I had a broken jumper cable last week in prototype - it was a nightmare.I'm just saying that if you do have G23 and GND connected and nothing else it's nearly impossible that you are getting those regular boot messages. It's a really low level feature of the chip.
-
@szatmari60
What "terminal program" can I us to detect if the P 23 is actually "DOWN" ?
I change the wires, also the bredboard... -
@szatmari60 You can use any USB or WiFi terminal which gives you a REPL prompt, like screen, minicom, picocom, telnet, putty,...
Once you have that prompt, enter:from machine import Pin g23 = Pin("G23", mode=Pin.IN, pull=Pin.PULL_UP) g23.value()It should tell you the level of the Port. If it is not 0, when connected to GND, then something is wrong.
-
thank you for conversation
I figured out
from machine import Pin
p_in = Pin('P23', mode=Pin.IN)
p_in()0
-
@szatmari60
Can you follow the example @robert-hh posted please, it's more reliable in case the wire is broken because his example sets the pin as PULL_UP. -
@szatmari60 P23 is not G23. Actuall you have to connect GPIO0 and GND.

-
Thanks a lot!
I am an IDIOT!
I mismatched G23 with P23Is OK!!! '1.6.9.b1'
-
@szatmari60 To be honest, I 've fallen in that trap too once. The numbering scheme of Pycom is VERY CONFUSING!
-
Thank you very much for your patience again!!
Have a nice day! -
@bucknall
Still no change (tried on a separate machine the other day), plan on attending the meetup on Thurdsay - hopefully there will be someone there with a laptop and a working updater! Not fussed if there isn't, should be an interesting evening - I hope.Mike T.
-
@mike632t Sure! I'll be there to help you out! Interested in chatting about your experience and where you want to take your project!
See you on Thursday!
Cheers
-
@bucknall Found this post https://forum.pycom.io/post/5716
I assume it will work for upgrades as well as downgrades..?
-
@bucknall
Thanks for your help the other evening - I'm up and running now, though I'm no closer to being able to update the firmware myself.For linux users I have a (useful?) bash script that beings up a console window and then waits up to 15s for me to plugin the device (that way I see any boot messages). I don't know if this will work on OSX as I don't have a Mac.
I need to update my blog post as I've recently modified the script to allows me to select the which serial device to connect to and baud rate to use.
Mike T.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login