Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    WiPy 2.0 not working after firmware update.

    Scheduled Pinned Locked Moved WiPy 2&3
    wipy 2.0firmware updatebug
    25 Posts 3 Posters 8.9k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B Offline
      BluCode
      last edited by BluCode

      I just updated to the latest firmware (1.6.12.b1) with the firmware updater tool over serial. The tool said the update was successful, but when I reset the board after removing the update mode cable (P2 to GND) here is what i saw on the serial terminal after pressing the reset button:

      ets Jun  8 2016 00:22:57
      
      rst:0x10 (RTCWDT_RTC_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 (1571) wifi: wifi firmware version: 90b1b8b
      I (1572) wifi: config NVS flash: disabled
      I (1572) wifi: config nano formating: disabled
      I (1587) wifi: Init dynamic tx buffer num: 32
      I (1587) wifi: wifi driver task: 3ffd5558, prio:23, stack:3584
      I (1588) wifi: Init static rx buffer num: 10
      I (1590) wifi: Init dynamic rx buffer num: 0
      I (1594) wifi: Init rx ampdu len mblock:7
      I (1597) wifi: Init lldesc rx ampdu entry mblock:4
      I (1602) wifi: wifi power manager task: 0x3ffda914 prio: 21 stack: 2560
      I (1608) wifi: sleep disable
      I (2597) wifi: wifi timer task: 3ffdb990, prio:22, stack:3584
      ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
      

      The character you see at the bottom is the Unicode 'Medium Shade` chatacter U+2592, and it is constantly getting printed to the serial monitor (Putty in this case). I have repeated the update procedure multiple times, and I get the same result. In some cases when I press the reset button only a single medium shade character is printed, but this seems to happen at random.

      I have also tried the safe boot mode, to no avail. The orange LED flashes as usual, but the same thing is printed every time, no matter when I remove the cable. Any help would be appreciated.

      robert-hhR 2 Replies Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @BluCode
        last edited by

        @BluCode could you try again at low speed (high speed checkbox cleared)?

        1 Reply Last reply Reply Quote 0
        • robert-hhR Offline
          robert-hh @BluCode
          last edited by

          @BluCode The messages you show are the one sent when the device wait for the download, as if P2 is still tied to GND.

          1 Reply Last reply Reply Quote 0
          • B Offline
            BluCode
            last edited by

            I already tried that, again to no avail. Exact same issue. Also it seems i copy/pasted too much, I will edit my post to reflect what the actual output was (that was from testing if it would boot with P2 to ground). Also how do I earn the reputation needed to post more than once any 10 minutes? It is annoying to be forced to wait to reply.

            robert-hhR 2 Replies Last reply Reply Quote 2
            • robert-hhR Offline
              robert-hh @BluCode
              last edited by

              @BluCode People have to upvote your post.

              1 Reply Last reply Reply Quote 0
              • robert-hhR Offline
                robert-hh @BluCode
                last edited by

                @BluCode You could try to install an older version using the downgrade procedure https://forum.pycom.io/topic/517/downgrading-firmware-advanced-users/15.
                The images there are quite old, but ifyou look at the URLs of these images,you can easily guess for instance the name for image 1.6.9b1.
                But there no complaints like yours so far with version 1.6.12.

                1 Reply Last reply Reply Quote 0
                • B Offline
                  BluCode
                  last edited by

                  Downgrading to an older version worked perfectly, thank you!

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    BluCode
                    last edited by

                    I just built and tried to flash the latest firmware version, and got the same result as before. Do you have any ideas as to what could be causing the infinite loop?

                    robert-hhR 1 Reply Last reply Reply Quote 0
                    • robert-hhR Offline
                      robert-hh @BluCode
                      last edited by robert-hh

                      @BluCode Good to hear, that the board is fine. May I know which version worked, and which version you tried to build & upload? The 'most recent' version for own builds is here: https://github.com/pycom/pycom-micropython-sigfox
                      @daniel, @bucknalla : Have you any clue what is the for the problem?

                      B 1 Reply Last reply Reply Quote 0
                      • B Offline
                        BluCode @robert-hh
                        last edited by BluCode

                        @robert-hh The version that worked was 1.6.0.b1, and I have tried 1.6.12.b1 and whatever version I built from https://github.com/pycom/pycom-micropython-sigfox as of 4/20/2017, which seems to be 1.6.9.b1. Is there a place (github) I can find the code for the most recent version (1.6.12.b1) or at least a more recent one? Also where can I find past firmware versions, so I can test? Al well I am willing to test flashing binaries, if anyone can tell me where to get them or send me one to test.

                        robert-hhR 1 Reply Last reply Reply Quote 0
                        • robert-hhR Offline
                          robert-hh @BluCode
                          last edited by

                          @BluCode No, the most recent version of the code on github is 1.6.9b1, and I have that running here on an esp32 device (not WiPy, but Sparkfun esp32 thing, which is mostly compatible to WiPy), built from the sources.
                          I have a LoPy which runs the code too. I have no clue, about the difference between 1.6.0 and for instance 1.6.4 with respect to your devices behavior.
                          Are you sure, that when building your own image, you chose BOARD=WIPY and made both bootloader and app? That should not affect the automagic update, but the manual update does not check for the device type.

                          B 2 Replies Last reply Reply Quote 0
                          • B Offline
                            BluCode @robert-hh
                            last edited by

                            @robert-hh Yes I am sure I used BOARD=WIPY for both.

                            1 Reply Last reply Reply Quote 0
                            • B Offline
                              BluCode @robert-hh
                              last edited by

                              @robert-hh Is there a place I can get different versions of the firmware to test? All I can find is the old firmware from the downgrade page, the automatic upgrade tool, and the github.

                              robert-hhR 1 Reply Last reply Reply Quote 0
                              • robert-hhR Offline
                                robert-hh @BluCode
                                last edited by

                                @BluCode I guess that these are the places. The upgrade tools fetches the software versions from the downgrade page. If on the downgrade page you hover over one of these image links, you''ll get an URL, like https://software.pycom.io/downloads/WiPy-1.6.0.b1.tar.gz
                                for version 1.6.0. You can enter these URL manually in the brwoser and modify the version number, which gives you access to all the interim versions between 1.6.0 and 1.6.12.

                                B 1 Reply Last reply Reply Quote 0
                                • B Offline
                                  BluCode @robert-hh
                                  last edited by

                                  @robert-hh Oh awesome! Thanks! By the way, how did you figure that out?

                                  robert-hhR 1 Reply Last reply Reply Quote 0
                                  • robert-hhR Offline
                                    robert-hh @BluCode
                                    last edited by

                                    @BluCode I just looked at the various URLs behind the version links and gave it a try.

                                    1 Reply Last reply Reply Quote 0
                                    • B Offline
                                      BluCode
                                      last edited by

                                      Oh, I meant what the program used. Sorry for being unclear.

                                      1 Reply Last reply Reply Quote 0
                                      • B Offline
                                        BluCode
                                        last edited by

                                        I have done more testing, and I think I have narrowed down the issue. It works fine with versions before 1.6.4.b1, and 1.6.4.b1 and up all break in the same way. The boot messages of 1.6.3.b1 are:

                                        ets Jun  8 2016 00:22:57
                                        
                                        rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
                                        ets Jun  8 2016 00:22:57
                                        
                                        rst:0x10 (RTCWDT_RTC_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 (1611) wifi: frc2_timer_task_hdl:3ffd491c, prio:22, stack:2048
                                        I (1626) wifi: Init lldesc rx mblock:10
                                        I (1627) wifi: Init lldesc rx ampdu len mblock:7
                                        I (1627) wifi: Init lldesc rx ampdu entry mblock:4
                                        I (1628) wifi: pp_task_hdl : 3ffdba58, prio:23, stack:8192
                                        I (1633) wifi: sleep disable
                                        I (2622) wifi: mode : softAP (24:0a:c4:00:b0:43)
                                        

                                        and the boot messages of anything above that are:

                                        ets Jun  8 2016 00:22:57
                                        
                                        rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
                                        ets Jun  8 2016 00:22:57
                                        
                                        rst:0x10 (RTCWDT_RTC_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 (1564) wifi: wifi firmware version: 2a22b2d
                                        I (1579) wifi: pp_task_hdl : 3ffd64dc, prio:23, stack:8192
                                        I (1579) wifi: Init lldesc rx mblock:10
                                        I (1579) wifi: Init lldesc rx ampdu len mblock:7
                                        I (1581) wifi: Init lldesc rx ampdu entry mblock:4
                                        I (1586) wifi: sleep disable
                                        I (2575) wifi: frc2_timer_task_hdl:3ffdc52c, prio:22, stack:2048
                                        ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ etc...
                                        

                                        This leads me to believe the issue is cause when the pp_task_hdl and frc2_timer_task_hdl lines were swapped and slightly re-ordered. I can't find either of those lines in the pycom-micropython-sigfox repo, or the pycom-esp-idf repo, so I don't know what causes them, but maybe @daniel or @bucknall has a clue?

                                        B robert-hhR 2 Replies Last reply Reply Quote 0
                                        • B Offline
                                          bucknall @BluCode
                                          last edited by

                                          Hi @BluCode,

                                          We're aware of this issue and are looking into it.

                                          Cheers!

                                          Alex

                                          Developer Evangelist - Pycom

                                          B 1 Reply Last reply Reply Quote 0
                                          • B Offline
                                            BluCode @bucknall
                                            last edited by BluCode

                                            @bucknall I just built and tested with the latest update to the repo, and here are my boot messages:

                                            ets Jun  8 2016 00:22:57
                                            
                                            rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
                                            ets Jun  8 2016 00:22:57
                                            
                                            rst:0x10 (RTCWDT_RTC_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:4072
                                            load:0x4009fc00,len:940
                                            entry 0x4009fdec
                                            I (1550) wifi: wifi firmware version: 90b1b8b
                                            I (1551) wifi: config NVS flash: disabled
                                            I (1551) wifi: config nano formating: disabled
                                            I (1566) wifi: Init dynamic tx buffer num: 32
                                            I (1566) wifi: wifi driver task: 3ffd5608, prio:23, stack:3584
                                            I (1567) wifi: Init static rx buffer num: 10
                                            I (1569) wifi: Init dynamic rx buffer num: 0
                                            I (1573) wifi: Init rx ampdu len mblock:7
                                            I (1576) wifi: Init lldesc rx ampdu entry mblock:4
                                            I (1581) wifi: wifi power manager task: 0x3ffda9c4 prio: 21 stack: 2560
                                            I (1587) wifi: sleep disable
                                            I (2576) wifi: wifi timer task: 3ffdba40, prio:22, stack:3584
                                            ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
                                            
                                            1 Reply Last reply Reply Quote 0

                                            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
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            Pycom on Twitter

                                            Pycom