Wonder if someone could give me some pointers as to what's going on.
I have a program that runs on both an Atmega324pb and 328p
I'm having an issue where the same code behaves badly on the 328p as if I'm trampling on memory, but the 324pb is fine
stats on build
Program Memory Usage : 3664 bytes 11.2 % Full
Data Memory Usage : 535 bytes 26.1 % Full
EEPROM Memory Usage : 308 bytes 30.1 % Full
It occurs where I'm passing a 32 byte array to a function in a class (by reference) and I'm reading the contents into another array (only half of it)
The debugger shows random data being retrieved and my loop counter x is a large value even when initialised to 0. If I remove the array from the call, it's all it should be. In addition, some local variables seem to be missing in the Autos and Local windows.
Scratching my head here.