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

    Stable Firmware Release v1.18.2.r2

    Scheduled Pinned Locked Moved Announcements & News
    firmware
    9 Posts 2 Posters 1.1k Views 2 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.
    • I Offline
      iwahdan
      last edited by

      Hello everyone,

      New Stable release v1.18.2.r2 is released today, changes include:

      Improvements:

      • Added API do_handshake for performing handshake operation for ssl/tls non- blocking socket connections
      • Added Timeout option for ssl/tls handshake operation
      • Amended ESP-IDF Error Codes to Micropython QSTR
      • Updated sqnsupgrade script to v1.2.3

      Bug Fix

      • Fixed crash caused by UART I/O APIs called after UART.deinit

      you can download the sources from https://github.com/pycom/pycom-micropython-sigfox/tree/v1.18.2.r2
      or you can flash the firmware directly via Firmware Updater tool with latest stable firmware

      Wahdan

      1 Reply Last reply Reply Quote 1
      • P Offline
        panda
        last edited by

        Did something change with regard to 'P18' on GPy? I can't use this pin as an input under the 1.18.2 firmwares. It appears to be pulled low and can not be changed.

        Any of the 1.18.1.r version and earlier work fine.

        I 1 Reply Last reply Reply Quote 0
        • I Offline
          iwahdan @panda
          last edited by

          @panda No the functionality regarding GPIOs should be the same, just checked it and cannot reproduce that issue on my GPy with latest stable 1.18.2.r2.

          please describe more your setup, are you using an Exp.Board , Pytrack, external circuit, ..etc ? also can you share the piece of code you use to reproduce that Issue ?

          Thanks

          Wahdan

          1 Reply Last reply Reply Quote 0
          • P Offline
            panda
            last edited by

            Hi,

            What precipitated this is not being able to use SPI with an audio chipset (VLS1053B) on the newest firmware. Here is my config for that:

            spi = SPI(0, mode=SPI.MASTER, baudrate=2000000, firstbit=SPI.MSB, polarity=0, phase=0, pins=('P10','P21','P18'))

            When I scoped each line the only one that is not behaving the same as the older firmware is P18 which is MISO. The line is not toggling when doing a SPI read. When I detached MISO from the GPy the line from the slave does toggle as expected. So I suspected the pin was not floating.

            Setting SPI aside, When I configured P18 as a simple input with no pull it sure seemed like it had an internal pull down despite "pull=None" with the latest fw. So, I speculated something changed here.

            This is a custom board.

            1 Reply Last reply Reply Quote 0
            • P Offline
              panda
              last edited by

              More info...

              It is something to do with SPI. Now that I figured out how to decode with my scope, spi.write is sending garbage. No matter what data I send, the waveform is the same for each byte. From my perspective SPI is broken. Or the pin combination I am using is no longer valid.

              For example, as illustrated, below no matter what byte I write over SPI, the data is written as 0xAA.

              SPI setup:
              spi = SPI(0, mode=SPI.MASTER, baudrate=2000000, firstbit=SPI.MSB, polarity=0, phase=0, pins=('P10','P21','P18'))

              SPI Command
              spi.write(0xff)

              Results

              1.18.1.r7-
              0_1552504354038_7c35435c-08e5-4d75-8e98-4f2fd2c61c32-image.png

              1.18.2+
              0_1552504379114_8d8e4c94-e2ed-41a5-85cf-b6060cbe5986-image.png

              I 2 Replies Last reply Reply Quote 0
              • I Offline
                iwahdan @panda
                last edited by

                @panda Ok thanks for the screenshots , I will try to replicate on my side.

                Wahdan

                1 Reply Last reply Reply Quote 0
                • I Offline
                  iwahdan @panda
                  last edited by

                  @panda said in Stable Firmware Release v1.18.2.r2:

                  spi = SPI(0, mode=SPI.MASTER, baudrate=2000000, firstbit=SPI.MSB, polarity=0, phase=0, pins=('P10','P21','P18'))

                  I confirm the bug in SPI that is visible in your screenshots , this was an old issue fixed on the release-candidate branch but was not merged to stable, I just released a new Firmware v1.18.2.r3 to include that Fix, however I can't reproduce the problem always pulled-down you say you have with P18 .
                  Please let me know if the latest release does fix your issues.

                  Thanks

                  Wahdan

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    panda
                    last edited by

                    Thank you! I'll try to check this over the weekend.

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      panda
                      last edited by

                      That resolved all issues. Thanks.

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

                      Pycom on Twitter

                      Pycom