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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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”
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.
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.
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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.
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
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.
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
Regards
Robert
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?
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