Why isn't the printf working on PIC32 like with PIC18?
For example this code works fine on PIC18, but not on PIC32,
printf("%lu",value);
With C32 compiler there is not output message, what did I miss?
Why isn't the printf working on PIC32 like with PIC18?
For example this code works fine on PIC18, but not on PIC32,
printf("%lu",value);
With C32 compiler there is not output message, what did I miss?
The sizeof(unsigned) on a PIC18 is 2
The sizeof(unsigned) on a PIC32 is 4
I suspect
value
is notlong unsigned
and so you have UB inIf so, insure the format specifier matches the variable type.