MCUdude / MegaCore

Arduino hardware package for ATmega64, ATmega128, ATmega165, ATmega169, ATmega325, ATmega329, ATmega640, ATmega645, ATmega649, ATmega1280, ATmega1281, ATmega2560, ATmega2561, ATmega3250, ATmega3290, ATmega6450, ATmega6490, AT90CAN32, AT90CAN64 and AT90CAN128
Other
384 stars 118 forks source link

i have this error #167

Closed fadi0albaghdadi closed 3 years ago

fadi0albaghdadi commented 3 years ago

Low memory available, stability problems may occur. Does it affect the processor? atmega128

lshw commented 3 years ago

The stack length may be insufficient.

tomaskovacik commented 3 years ago

This is problem with your code not core. You must use micro with more ram or optimise yout code. Anyway we need more informations about your hw setup and your code

fadi0albaghdadi commented 3 years ago

The stack length may be insufficient.

Does this affect the operation of the processor?

fadi0albaghdadi commented 3 years ago

This is problem with your code not core. You must use micro with more ram or optimise yout code. Anyway we need more informations about your hw setup and your code

Does this affect the operation of the processor?

tomaskovacik commented 3 years ago

50:50 chance

fadi0albaghdadi commented 3 years ago

50:50 chance

  • try it
  • google warning message and read what was already witen elsewhere
  • we can help you only if you post your code here

The code is very private, it cannot be published and is too large

tomaskovacik commented 3 years ago

Then you must simply test it

MCUdude commented 3 years ago

Optimize your code to use less RAM, or choose a larger, pin compatible microcontroller with more RAM such as the Atmega1281 or ATmega2561.

fadi0albaghdadi commented 3 years ago

Does that mean I can replace the atmega128 processor with atmega1281

MCUdude commented 3 years ago

Yes, as long as your hardware setup doesn't depend on anything unique to the ATmega128.

lshw commented 3 years ago

use F(string) to put string into ROM.

Serial.println("hello"); // use 5 byte ram, Serial.println(F("hello")); // use 0 byte ram

F(string) can save a lot of ram.