Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. General Discussion
  3. Atmega328p and flash memory

Atmega328p and flash memory

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 1.2k Views 3 Watching
  • 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.
  • alexsh1A Offline
    alexsh1A Offline
    alexsh1
    wrote on last edited by
    #1

    Hello all,

    I'm trying to combine several sketches and unfortunately with signing i am running out of flash memory. The code cannot be optimised further.
    I do like atmega328p and wonder if there is any chance to use a serial SPI flash (the library is here https://github.com/LowPowerLab/SPIFlash) to accommodate a larger sketch size? Or my only option is to switch to atmega1284?

    Thanks
    Alex

    YveauxY 1 Reply Last reply
    0
    • alexsh1A alexsh1

      Hello all,

      I'm trying to combine several sketches and unfortunately with signing i am running out of flash memory. The code cannot be optimised further.
      I do like atmega328p and wonder if there is any chance to use a serial SPI flash (the library is here https://github.com/LowPowerLab/SPIFlash) to accommodate a larger sketch size? Or my only option is to switch to atmega1284?

      Thanks
      Alex

      YveauxY Offline
      YveauxY Offline
      Yveaux
      Mod
      wrote on last edited by
      #2

      @alexsh1 atmega328 does not support running code from external flash, so you are out of luck. You could also consider switching to a different cpu architecture (esp, atsamd, stm32,... ) with more flash.

      http://yveaux.blogspot.nl

      alexsh1A 1 Reply Last reply
      1
      • YveauxY Yveaux

        @alexsh1 atmega328 does not support running code from external flash, so you are out of luck. You could also consider switching to a different cpu architecture (esp, atsamd, stm32,... ) with more flash.

        alexsh1A Offline
        alexsh1A Offline
        alexsh1
        wrote on last edited by
        #3

        @Yveaux Thanks. This is a battery run multisensor so ESP8266 is not an option. ESP32 is an overkill. I'm not that much familiar with other platforms so I suppose my only option is atmega1284 :((

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        25

        Online

        11.7k

        Users

        11.2k

        Topics

        113.1k

        Posts


        Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • MySensors
        • OpenHardware.io
        • Categories
        • Recent
        • Tags
        • Popular