Local variables - Compiler Error
Posted: Wed Mar 30, 2011 7:02 pm
Dear all,
I am experiencing big problems using local variables for macros in FC4 for AVR because they are sometimes (??) compiled completly wrong!
As I understood (pls. see the example below, bubble is showing c-code) a local variable "i" for the macro "ISR_TachoIN" should appear in the compiled C-Code as "FCV_ISR_TachoIN.i".
But as you can see at one time it is compiled as "FCL_I" and the next time as "ISR_TachoIN.i"!
No wonder my code doesn't work. Using global variables in the macro everything is fine, but mostly that is not an option.
Is there anybody having the same experience or maybe a solution?
Many thanks!
Niro
I am experiencing big problems using local variables for macros in FC4 for AVR because they are sometimes (??) compiled completly wrong!
As I understood (pls. see the example below, bubble is showing c-code) a local variable "i" for the macro "ISR_TachoIN" should appear in the compiled C-Code as "FCV_ISR_TachoIN.i".
But as you can see at one time it is compiled as "FCL_I" and the next time as "ISR_TachoIN.i"!
No wonder my code doesn't work. Using global variables in the macro everything is fine, but mostly that is not an option.
Is there anybody having the same experience or maybe a solution?
Many thanks!
Niro