When I try to parse an array of chars over to a particular function, they always default to a char array of chars with hex value 0xFF, no matter what I parse to it. I also parse over 2 integers, and they go over fine.
I have run simulations on AVR Studio and the char arrays parse over fine, except when I load it onto my atmega644p, no matter what I parse over to the function, it always reads the char array I parsed to it as all chars of hex value 0xFF.
It used to work fine when I was running it on a atmega8.
Does anyone have any ideas?
Below is the function prototype and also the line I used to call it.
void lcd_write (char *to_print, u8 length, u8 position)
In summary, I am trying to parse an array of char's to a function, and when the other function reads what it was parsed, the contents have changed from what I parsed it, to an array of 0xFF char's.