Menu

Error compiling for board running out of space

2023-09-04
2023-09-14
  • Geziel Thuler

    Geziel Thuler - 2023-09-04

    Sirs,

    I'm starting with this project without soldering and when I go to compile the error message appears due to lack of space on the board. I don't understand since the programming is for the Arduino nano, so it should compile without the problem in question. I leave the error message below:
    Sketch uses 15472 bytes (107%) of program storage space. Maximum is 14336 bytes.
    Global variables use 392 bytes (38%) of dynamic memory, leaving 632 bytes for local variables. Maximum is 1024 bytes.
    Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it.
    text section exceeds available space in board

    Compilation error: text section exceeds available space in board

    I am hoping that you can help me on how to solve this small problem.

    Thank you very much in advance!!!

    myFP2F_DRV8825_SOLDERLESS_328

     

    Last edit: Geziel Thuler 2023-09-04
  • brownrb

    brownrb - 2023-09-04

    This is what you get
    Sketch uses 15472 bytes (107%) of program storage space. Maximum is 14336 bytes.
    Global variables use 392 bytes (38%) of dynamic memory, leaving 632 bytes for local variables. Maximum is 1024 bytes.

    This is what I get
    Sketch uses 15472 bytes (50%) of program storage space. Maximum is 30720 bytes.
    Global variables use 392 bytes (19%) of dynamic memory, leaving 1656 bytes for local variables. Maximum is 2048 bytes.

    I would check to make sure that your cpu target is set correctly.
    Did you purchase the 128P Nano instead of the 328 version: its written on the chip - look using a magnifying glass
    If it says ATMega 128 then its the wrong one, PDF pg 49
    The controller uses the “Mini USB Nano V3.0 ATmega328 16M 5V Micro-controller CH340G board for Arduino”

     

    Last edit: brownrb 2023-09-04
  • Geziel Thuler

    Geziel Thuler - 2023-09-05

    I went to check with the magnifying glass but I couldn't see it because it's too dark. I sent the attachment of what I bought. I believe it is correct.

     
  • brownrb

    brownrb - 2023-09-05

    It is not the firmware.

    Check these settings for Arduino IDE
    Under Tools - Processor it should read ATmega328P (Old bootloader)
    it might be set incorrectly to 128

     

    Last edit: brownrb 2023-09-05
  • Geziel Thuler

    Geziel Thuler - 2023-09-10

    Hello,

    That really was the problem. Due to my little experience on the subject, I hadn't modified it for the ATmega328 and so I was short on space. Now almost everything works, only the display that didn't work remains off. Any guidance so I can check? I'm using a display like the one in the photo.

     
  • brownrb

    brownrb - 2023-09-11

    Hi Geziel
    USE the I2cScanner program to see if it can find the display.
    (in test folder)

    If it cannot find the display -
    Check your display wiring SDA-SDA, SCL-SCL, VCC-5V GND-GND

    If it finds the display it will the hex address of the module,
    it should be 0x3C

    The address is stored in myDefines.h line 93 as

    #define OLED_ADDR 0x3C         
    // some OLED displays maybe at 0x3F, use I2Cscanner to find the correct address
    

    Regards
    Robert

     
  • Geziel Thuler

    Geziel Thuler - 2023-09-12

    Brown,

    I hadn't removed the comment in //#define OLEDDISPLAY 1 and that's why it wasn't working. I'm just in doubt about how it works because the display flashes information every 2 seconds. This is normal?

     
  • brownrb

    brownrb - 2023-09-14

    Hi Geziel
    You can change the refresh rate as well as what pages you want displayed.
    pdf page 119

    Windows app
    Display tab
    or shortcut key ALT + D
    Page Time
    The time in seconds that a display screen is displayed for can be adjusted using this menu option,
    from 2s-10s delay. If I want the pages to show for 3 seconds, I would select 3 from the dropdown list and click the SET button.

    Page Option
    This option provides a means of enabling or disabling each display page. The text box accepts a
    string of binary digits 0 or 1. If the bit=1 the page is shown; if the bit=0 the page is not displayed.
    Pages are numbered from 1 to n.

    regards
    Robert

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.