Hi,
I'm having some VERY weird behavior on the C28 core of my Concerto F28M35H52C1 everything declared as "long double" are actually being created as pointers to long double.
for example:
void pwm_set(unsigned char index, long double value); in the debug window shows pwm_set(unsigned char, long double *)() at pwm_handler.c
and when I pause inside this code and stop the mouse cursor on top of 'value' it shows:
=> value | long double * | 0x00000AE
*(value) | long double | 0.0
also on long double exPID(struct exPID_struct *me, struct analogue_struct *PV, long double period)
I see on the debug window as long double * and in the Variables window shows the pointer to be in some register that get changed all the time and the values just jump up and down like crazy.
does anyone ever saw that before or have any idea how to fix? Some flag on the compiler maybe?
please, any help.
edit:
-----
and what happen with the code formatter to post stuff here in the forum???