🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Memory related issue

    Scheduled Pinned Locked Moved FAQS
    4 Posts 3 Posters 13.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.
    • R Offline
      remeshck
      last edited by

      I am using M5Stack-Core_esp32 . compiler arduino.
      when i compile my program it is showing that "sketch uses 1460566 bytes (111%) of program storage maximum is 1310720.
      I have used OTA code , BLE and uart. How can i increase program memory. It is suppose to be 2MB.
      It is showing only 1.25MB.

      JJJ 1 Reply Last reply Reply Quote 0
      • JJJ Offline
        JJ @remeshck
        last edited by

        @remeshck Hi Remeshck,

        Check the discussion at the link below... hope it helps.

        http://forum.m5stack.com/topic/132/m5stack-ble-client-for-owon-b35t-multimeter/3

        1 Reply Last reply Reply Quote 1
        • reaper7R Offline
          reaper7
          last edited by reaper7

          from http://desire.giesecke.tk/index.php/2018/01/30/change-partition-size/

          inside ..esp32\tools\partitions add new file for e.g. bigapp.csv with content:

          # Name,   Type, SubType, Offset,  Size, Flags
          nvs,      data, nvs,     0x9000,  0x5000,
          otadata,  data, ota,     0xe000,  0x2000,
          app0,     app,  ota_0,   0x10000, 0x1E0000,
          app1,     app,  ota_1,   0x1F0000,0x1E0000,
          eeprom,   data, 0x99,    0x3F0000,0x1000,
          spiffs,   data, spiffs,  0x3F1000,0xF000,
          

          and inside esp32\boards.txt add new(copy) board like:

          ##############################################################
          
          m5stack_bigapp.name=M5Stack_bigapp
          
          m5stack_bigapp.upload.tool=esptool
          m5stack_bigapp.upload.maximum_size=1966080
          m5stack_bigapp.upload.maximum_data_size=294912
          m5stack_bigapp.upload.wait_for_upload_port=true
          
          m5stack_bigapp.serial.disableDTR=true
          m5stack_bigapp.serial.disableRTS=true
          
          m5stack_bigapp.build.mcu=esp32
          m5stack_bigapp.build.core=esp32
          m5stack_bigapp.build.variant=esp32
          m5stack_bigapp.build.board=M5Stack_bigapp
          
          m5stack_bigapp.build.f_cpu=240000000L
          m5stack_bigapp.build.flash_size=4MB
          m5stack_bigapp.build.flash_mode=dio
          m5stack_bigapp.build.boot=dio
          m5stack_bigapp.build.partitions=bigapp
          
          m5stack_bigapp.menu.FlashMode.qio=QIO
          m5stack_bigapp.menu.FlashMode.qio.build.flash_mode=dio
          m5stack_bigapp.menu.FlashMode.qio.build.boot=qio
          m5stack_bigapp.menu.FlashMode.dio=DIO
          m5stack_bigapp.menu.FlashMode.dio.build.flash_mode=dio
          m5stack_bigapp.menu.FlashMode.dio.build.boot=dio
          m5stack_bigapp.menu.FlashMode.qout=QOUT
          m5stack_bigapp.menu.FlashMode.qout.build.flash_mode=dout
          m5stack_bigapp.menu.FlashMode.qout.build.boot=qout
          m5stack_bigapp.menu.FlashMode.dout=DOUT
          m5stack_bigapp.menu.FlashMode.dout.build.flash_mode=dout
          m5stack_bigapp.menu.FlashMode.dout.build.boot=dout
          
          m5stack_bigapp.menu.FlashFreq.80=80MHz
          m5stack_bigapp.menu.FlashFreq.80.build.flash_freq=80m
          m5stack_bigapp.menu.FlashFreq.40=40MHz
          m5stack_bigapp.menu.FlashFreq.40.build.flash_freq=40m
          
          m5stack_bigapp.menu.UploadSpeed.921600=921600
          m5stack_bigapp.menu.UploadSpeed.921600.upload.speed=921600
          m5stack_bigapp.menu.UploadSpeed.115200=115200
          m5stack_bigapp.menu.UploadSpeed.115200.upload.speed=115200
          m5stack_bigapp.menu.UploadSpeed.256000.windows=256000
          m5stack_bigapp.menu.UploadSpeed.256000.upload.speed=256000
          m5stack_bigapp.menu.UploadSpeed.230400.windows.upload.speed=256000
          m5stack_bigapp.menu.UploadSpeed.230400=230400
          m5stack_bigapp.menu.UploadSpeed.230400.upload.speed=230400
          m5stack_bigapp.menu.UploadSpeed.460800.linux=460800
          m5stack_bigapp.menu.UploadSpeed.460800.macosx=460800
          m5stack_bigapp.menu.UploadSpeed.460800.upload.speed=460800
          m5stack_bigapp.menu.UploadSpeed.512000.windows=512000
          m5stack_bigapp.menu.UploadSpeed.512000.upload.speed=512000
          
          m5stack_bigapp.menu.DebugLevel.none=None
          m5stack_bigapp.menu.DebugLevel.none.build.code_debug=0
          m5stack_bigapp.menu.DebugLevel.error=Error
          m5stack_bigapp.menu.DebugLevel.error.build.code_debug=1
          m5stack_bigapp.menu.DebugLevel.warn=Warn
          m5stack_bigapp.menu.DebugLevel.warn.build.code_debug=2
          m5stack_bigapp.menu.DebugLevel.info=Info
          m5stack_bigapp.menu.DebugLevel.info.build.code_debug=3
          m5stack_bigapp.menu.DebugLevel.debug=Debug
          m5stack_bigapp.menu.DebugLevel.debug.build.code_debug=4
          m5stack_bigapp.menu.DebugLevel.verbose=Verbose
          m5stack_bigapp.menu.DebugLevel.verbose.build.code_debug=5
          
          ##############################################################
          

          then for your big apps you can select this board

          MY GITHUB: https://github.com/reaper7/

          JJJ 1 Reply Last reply Reply Quote 1
          • JJJ Offline
            JJ @reaper7
            last edited by

            @reaper7 Hi Reaper7,

            thanks for adding that helpful example.

            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
            • First post
              Last post