Problem syncing

  • I am using the pymakr plugin and created the conf file

    "address": "/dev/cu.usbserial-DQ008Q9M",
    "username": "micro",
    "password": "python",
    "sync_folder": "scripts"

    I cannot see a "sync" button as mentioned in the docuementation but a upload button is there. Unfortunately it fails on the first file,

    0_1510330073384_Screen Shot 2017-11-10 at 17.07.34.png is empty at this point and the file contains a hyper sinple program that changes the led color.

    Any ideas?

  • There was a known issue with the previous version of the firmware that caused this issue. Please try updating your module to the latest firmware (released yesterday) and check if that works any better. If the issue persists please let us know.

  • You don't need to init UART unless you need different settings.
    It is already done in, which is called before

    The second init call was one of the big problems in the 1.10.0 firmware. Sadly the init exist in a lot of example files when you browse for boot and main files.

    I suggest to try it simply again. Sometimes it fails on my LoPy too. If multiple tries will not help, erasing the whole flash partition seems to be the common solution for such problems.

    You can give secure boot a try, which does not execute and This may help if you have a faulty UART configuration. If you have not switched off WiFi, you can upload and via FTP.

  • @hansamann Hi, Don't keep blank.

    use this code, it will help to initialize the UART

    from machine import UART
    import machine
    import os
    uart = UART(0, baudrate=115200)

Log in to reply

Pycom on Twitter