Serial,print()

Hi!

I have lost Serial funcionality!
It only works with numbers
Serial,print(data);

but it doesn’t work with strings!!!
Serial.print(“Hello”);

Any idea???

(I’m also using Wire devices…)

thanks

ops I have also added some libraries for Wire devices...

How haveI destroyed that funcionality??????

Can you post your whole sketch?

If you're using a lot of strings and other variables, you may have run out of RAM. Try commenting out some of the strings (if possible) and run the reduced sketch. Does that work?

Can you post your whole sketch?

If you're using a lot of strings and other variables, you may have run out of RAM. Try commenting out some of the strings (if possible) and run the reduced sketch. Does that work?

Great! Yes I had used "several" strings for debugging! And deleting them solves the problem! THANK YOU VERY MUCH!

Uau! I have optimized from 9750 to 9100 8974 bytes just deleting my debugging strings! With the pointers in my class contructors for sure that I get out of RAM! the upper limit 14336, isn't?

thanks again!

There’s only 1k of RAM. There is 16k (14 usable after the Arduino bootloader) of Flash, which is where your program lives.

You see a difference in the code size when deleting strings because the strings live in flash, but are copied to RAM when the program starts running.

-j