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

    [DONE] porting FRAM SPI library for Fujitsu MB85RS64VPNF question

    Scheduled Pinned Locked Moved MicroPython
    spifram
    5 Posts 3 Posters 1.5k 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.
    • SmeedyS Offline
      Smeedy
      last edited by Smeedy

      Hi there,

      So I'm looking to store some data on a 8k of Fujitsu MB85RS64VPNF FRAM since I need to track a lot of events before I can send it up using LoRa. Also storing LoRa OTAA sequence numbers and keys would be nice since the internal flash is not suitable for so many writes I'm intending to do.

      I've got myself some Adafruit breakout board which performs nicely when running the ESP32 Arduino on the LoPy. I'm still inclined to do a Python port which I'll put on Github.

      Can someone point me to a nice library which also uses SPI I can use as a starting point / boilerplate? Any suggestions are welcome.

      Thanks,
      Martijn

      L 1 Reply Last reply Reply Quote 0
      • L Offline
        livius @Smeedy
        last edited by livius

        @smeedy
        only in C++
        https://github.com/adafruit/Adafruit_FRAM_SPI

        but it is not so long and should be simple to port
        i do not have this FRAM then can not try it self..

        just curious from where did you got this one?

        think about people first, then computers

        SmeedyS 1 Reply Last reply Reply Quote 0
        • SmeedyS Offline
          Smeedy @livius
          last edited by

          @livius This was indeed my starting point as I've used this particular library for an ESP32 Arduino setup on the same hardware: LoPy with an Adafruit SPI FRAM Breakout. I'm intending to port this exact library.

          I'm looking for an existing Python library which uses SPI I can use as a boilerplate or best practice.

          Thx

          1 Reply Last reply Reply Quote 0
          • SmeedyS Offline
            Smeedy
            last edited by Smeedy

            Done. I've ported a version of the Adafruit c++ library with all the member functions as-is. Included in the repository is also an example. I've only used the LoPy hardware SPI, but I do not see why a soft-pin SPI shouldn't work at these low speeds.

            https://github.com/Smeedy/python_mb85rs64vpnf_spi

            Enjoy

            1 Reply Last reply Reply Quote 3
            • sebS Offline
              seb
              last edited by

              Thanks for porting this over, great work!

              1 Reply Last reply Reply Quote 1

              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