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

    Atom difficulties

    Scheduled Pinned Locked Moved Firmware
    2 Posts 2 Posters 106 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.
    • K Offline
      kjm
      last edited by

      Having problems with Atom & my GPYs again. Only thing I can think of as a possible cause was a recent obligatory Windows10 update?

      1. After I run a program from Atom I have to Disconnect then reconnect the Pymakr package. If I don't attempting to run a program produces output like this
      >>> Running C:\Users\Kris\Google Drive\My Documents\Pycom\main\flash\boot.py
      
      >>>
      >>>
      �ets Jun  8 2016 00:22:57
      
      rst:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
      configsip: 0, SPIWP:0xee
      clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
      mode:DIO, clock div:1
      load:0x3fff8020,len:8
      load:0x3fff8028,len:2136
      load:0x4009fa00,len:19944
      entry 0x400a05e8
      Pycom MicroPython 1.20.1.r1 [15b6d69] on 2019-11-02; GPy with ESP32
      Type "help()" for more information.
      >>> red); return 0,0,0                                                                              # multi returns can't have Nones
      Traceback (most recent call last):
        File "<stdin>", line 1
      SyntaxError: invalid syntax
      >>>
      >>> sah=_nvs_get('sah')                                  # sah sample and hold
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      NameError: name '_nvs_get' isn't defined
      >>> print(); print(' pressure probe off'); probepwr=Pin('P8', Pin.OPEN_DRAIN); probepwr.value(1)                                  # probe OFFd at each powerup in case _pwrup_reason does deepsleep
      
       pressure probe off
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      NameError: name 'Pin' isn't defined
      >>> def _getdepth():
      ...       try:
      ...             global sah
      ...                 print (' pressure probe on', end=2L for a 2m dia tank
      ...                     if dt>4*3600: NetFlow=0                                                  # dot every 4 hr, 20mm/4h=5mm/h (~16L/h) min detectable flow
      ...                         if d>dh>19 and t2>t1>999999: print(' store', t2, h2); NetFlow=int(3600*dv/dt); pycom.nvs_set('epoch', t2); pycom.nvs_set('depth', h2)             # depth>depth>difference, valid epochs
      ...                             res='t' if d>dh>19 else 'f'; print('', d, h2-h1, res, end='  '); res='t' if t2>t1>999 else 'f'; print(t2, t1, res)
      ...                                 if dh>sah and cycle>2: sah=dh; pycom.nvs_set('sah', dh); msg=' level change '+str(h2-h1); print(msg); _mkpyld(0, msg)
      
      1. Since Disconnecting from the GPY then convincing the Pymakr plugin to work generally takes several attempts I thought it might be quicker to upload programs rather than try to run then from Atom. In this case I get
      Uploading project (flash)...
      Not safe booting, disabled in settings
      
      Reading file status
      Failed to read project status, uploading all files
      Creating dir lib
      [1/2] Writing file boot.py (73kb)
      Failed to write file, trying again...
      Failed to write file, trying again...
      Failed to write file: name 'f' isn't defined
      >>>
      [2/2] Writing file lib/onewire.py (8kb)
      Failed to write file, trying again...
      Failed to write file, trying again...
      Upload failed: Failed to write file: invalid sy. Please reboot your device manually.
      import machine
      >>> machine.reset()
      ets Jun  8 2016 00:22:57
      

      Having to make several attempts to reload Pymakr after each code improvement is misery, it's like swimming through molasses! Does anyone have any suggestions? I'm running pymakr 1.4.16 on Atom 1.40.1

      1 Reply Last reply Reply Quote 0
      • stephen.ugwuanyiS Offline
        stephen.ugwuanyi
        last edited by stephen.ugwuanyi

        I am having the same issue and error messages with Fipy and Gpy.

        Upload done, resetting board...
        OKets Jun 8 2016 00:22:57

        rst:0x7 (TG0WDT_SYS_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
        configsip: 0, SPIWP:0xee
        clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
        mode:DIO, clock div:1
        load:0x3fff9028,len:8
        load:0x3fff9030,len:1060
        load:0x4009fa00,len:0
        ho 12 tail 0 room 4
        load:0x4009fa00,len:14084
        entry 0x400a05d4
        Start program? (y/n)

        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