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

    deepsleep & memory

    Scheduled Pinned Locked Moved GPy
    rtc memorygpydeepsleepflash
    3 Posts 2 Posters 636 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.
    • K Offline
      kjm
      last edited by kjm

      I've got a gpy program that wakes up pulls a cycle counter out of flash, sends some data on lte, increments the cycle counter by one, writes it back to flash then deepsleeps for 6 minutes, rinse & repeat. Can flash take 240 read-writes/day indefinitely? Is there a better way to do this? I read somewhere that there is some RTC memory preserved during deepsleep, is that accessible in the user space?

      I don't really understand what RTC memory is for? I have to resync the RTC after each awakening from deepsleep so why does it need memory?

      K 1 Reply Last reply Reply Quote 0
      • K Offline
        kjm @kjm
        last edited by kjm

        @kjm Tried nvram as an alternative to flash.
        write

        pycom.nv_set('testlocn', 1234)
        

        read

        pycom.nv_get('testlocn')
        

        and clear

        pycom.nv_erase('testlocn')
        

        all work. But what happens if a location gets orphaned, say you forget it's name or some errant iterative code writes to a wrong name. Is there a cmd that erases ALL of the nvram? If not is there a way to see all of the contents of nvram, something like pycom.nv_dir()? Otherwise we risk an accumulation of nvram keys that can't be removed because they are unknown.

        rcolisteteR 1 Reply Last reply Reply Quote 0
        • rcolisteteR Offline
          rcolistete @kjm
          last edited by rcolistete

          From the pycom module documentation :
          "pycom.nvs_erase_all()
          Erase the entire NVRAM memory area."

          AFAIK, there is no way to see all of the contents of nvram on ESP32/Pycom boards.

          My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).

          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