Compiling Error of AVR-V4 FlowCode files in V5
Posted: Mon Jul 09, 2012 3:56 pm
Hi all,
first of all, V5 is a great improvement to V4 and it really helps saving programming time!!
Trying to compile an AVR V4-File into V5 I had some problems with local varibles within some c-code routines.
To make it clear, I compiled a simple FC-File with one global variable: GlobalTest
and a macro called Test with a local variable: LocalTest
V4 was compiling locals this way: *************************************
//Variable declarations
volatile char FCV_GLOBALTEST;
//Macro implementations
void FCM_Test()
{
//Local variable definitions
char FCL_LOCALTEST;
//Calculation
//Calculation:
// Test.LocalTest = GlobalTest
FCL_LOCALTEST = FCV_GLOBALTEST;
}
V5 is compiling locals this way: ***********************************
//Variable declarations
volatile MX_UINT8 FCV_GLOBALTEST;
//Macro implementations
void FCM_test()
{
//Local variable definitions
MX_UINT8 FCL_TEST_LOCALTEST;
//Calculation
//Calculation:
// .LocalTest = GlobalTest
FCL_TEST_LOCALTEST = FCV_GLOBALTEST;
}
****************
Now it seems that the locals have changed from "FCL_LOCALTEST" to "FCL_TEST_LOCALTEST" (now including the name of the macro).
That is quite a big problem changing all occurrences manually to get the implemented c-code working with V5.
I'd really appreciate all suggestion solving this problem!!
Many thanks,
Niro
first of all, V5 is a great improvement to V4 and it really helps saving programming time!!
Trying to compile an AVR V4-File into V5 I had some problems with local varibles within some c-code routines.
To make it clear, I compiled a simple FC-File with one global variable: GlobalTest
and a macro called Test with a local variable: LocalTest
V4 was compiling locals this way: *************************************
//Variable declarations
volatile char FCV_GLOBALTEST;
//Macro implementations
void FCM_Test()
{
//Local variable definitions
char FCL_LOCALTEST;
//Calculation
//Calculation:
// Test.LocalTest = GlobalTest
FCL_LOCALTEST = FCV_GLOBALTEST;
}
V5 is compiling locals this way: ***********************************
//Variable declarations
volatile MX_UINT8 FCV_GLOBALTEST;
//Macro implementations
void FCM_test()
{
//Local variable definitions
MX_UINT8 FCL_TEST_LOCALTEST;
//Calculation
//Calculation:
// .LocalTest = GlobalTest
FCL_TEST_LOCALTEST = FCV_GLOBALTEST;
}
****************
Now it seems that the locals have changed from "FCL_LOCALTEST" to "FCL_TEST_LOCALTEST" (now including the name of the macro).
That is quite a big problem changing all occurrences manually to get the implemented c-code working with V5.
I'd really appreciate all suggestion solving this problem!!
Many thanks,
Niro