hi
if the "Appstart" is constantly repeating in the logs does it means i have low memory left and app is always restarting?
i am using a Arduino uno with 3 stepper motors and an LED screen + bluetooth and it looks like all libraries enabled + some global variables does not leave enough memory for the board to oporate. can that be? what could be the solution? switching to arduino mega?
i need to mention that i have not even started with all the function i want to implement and i am not sure the mega will be also enough for it. i guess i am doing something completly wrong.
i have very small experience with working with bytes but i can see that JOINSTRING and converting everything to strings takes a lot memory but cannot figure out how to work with bytes to keep the memory low.
libraries i use:
logs:
if the "Appstart" is constantly repeating in the logs does it means i have low memory left and app is always restarting?
i am using a Arduino uno with 3 stepper motors and an LED screen + bluetooth and it looks like all libraries enabled + some global variables does not leave enough memory for the board to oporate. can that be? what could be the solution? switching to arduino mega?
i need to mention that i have not even started with all the function i want to implement and i am not sure the mega will be also enough for it. i guess i am doing something completly wrong.
i have very small experience with working with bytes but i can see that JOINSTRING and converting everything to strings takes a lot memory but cannot figure out how to work with bytes to keep the memory low.
libraries i use:
logs:
...Loading configuration...
Initializing packages...
Preparing boards...
Verifying...
...
Linking everything together...
"C:\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\wbm\\B4R\\Objects\\bin/src.ino.elf" "C:\\wbm\\B4R\\Objects\\bin\\sketch\\glcdfont.c.o" "C:\\wbm\\B4R\\Objects\\bin\\sketch\\Adafruit_GFX.cpp.o" "C:\\wbm\\B4R\\Objects\\bin\\sketch\\Adafruit_SSD1306.cpp.o" "C:\\wbm\\B4R\\Objects\\bin\\sketch\\AsyncStreams.cpp.o" "C:\\wbm\\B4R\\Objects\\bin\\sketch\\B4RArduino.cpp.o" "C:\\wbm\\B4R\\Objects\\bin\\sketch\\B4RCore.cpp.o" "C:\\wbm\\B4R\\Objects\\bin\\sketch\\B4RSerializator.cpp.o" "C:\\wbm\\B4R\\Objects\\bin\\sketch\\B4RStream.cpp.o" "C:\\wbm\\B4R\\Objects\\bin\\sketch\\ByteConverter.cpp.o" "C:\\wbm\\B4R\\Objects\\bin\\sketch\\RandomAccessFile.cpp.o" "C:\\wbm\\B4R\\Objects\\bin\\sketch\\Scheduler.cpp.o" "C:\\wbm\\B4R\\Objects\\bin\\sketch\\b4r_main.cpp.o" "C:\\wbm\\B4R\\Objects\\bin\\sketch\\rAdafruitGFX.cpp.o" "C:\\wbm\\B4R\\Objects\\bin\\sketch\\rAdafruitSSD1306.cpp.o" "C:\\wbm\\B4R\\Objects\\bin\\sketch\\rSoftwareSerial.cpp.o" "C:\\wbm\\B4R\\Objects\\bin\\sketch\\rStepper.cpp.o" "C:\\wbm\\B4R\\Objects\\bin\\sketch\\src.ino.cpp.o" "C:\\wbm\\B4R\\Objects\\bin\\libraries\\SoftwareSerial\\SoftwareSerial.cpp.o" "C:\\wbm\\B4R\\Objects\\bin\\libraries\\SPI\\SPI.cpp.o" "C:\\wbm\\B4R\\Objects\\bin\\libraries\\Stepper\\Stepper.cpp.o" "C:\\wbm\\B4R\\Objects\\bin\\libraries\\Wire\\Wire.cpp.o" "C:\\wbm\\B4R\\Objects\\bin\\libraries\\Wire\\utility\\twi.c.o" "C:\\wbm\\B4R\\Objects\\bin/core\\core.a" "-LC:\\wbm\\B4R\\Objects\\bin" -lm
"C:\\Arduino\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\wbm\\B4R\\Objects\\bin/src.ino.elf" "C:\\wbm\\B4R\\Objects\\bin/src.ino.eep"
"C:\\Arduino\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\\wbm\\B4R\\Objects\\bin/src.ino.elf" "C:\\wbm\\B4R\\Objects\\bin/src.ino.hex"
Using library SoftwareSerial at version 1.0 in folder: C:\Arduino\hardware\arduino\avr\libraries\SoftwareSerial
Using library SPI at version 1.0 in folder: C:\Arduino\hardware\arduino\avr\libraries\SPI
Using library Stepper at version 1.1.3 in folder: C:\Arduino\libraries\Stepper
Using library Wire at version 1.0 in folder: C:\Arduino\hardware\arduino\avr\libraries\Wire
"C:\\Arduino\\hardware\\tools\\avr/bin/avr-size" -A "C:\\wbm\\B4R\\Objects\\bin/src.ino.elf"
Sketch uses 21624 bytes (67%) of program storage space. Maximum is 32256 bytes.
Global variables use 1545 bytes (75%) of dynamic memory, leaving 503 bytes for local variables. Maximum is 2048 bytes.
Low memory available, stability problems may occur.
Uploading...
********************* PROGRAM STARTING ****************
AppStart
AppStart
AppStart
AppStart
AppStart
AppStart
AppStart
AppStart
AppStart
AppStart
AppStart
AppStart
AppStart
AppStart
AppStart
AppStart
AppStart
AppStart
AppStart
AppStart
AppStart
AppStart
AppStart
AppStart
AppStart