Bug in ARM PWM Component Macro
Posted: Sun Nov 22, 2015 6:07 pm
Hello,
After I had plug in a PWM component in my system I got the following compiler error:
(The error occurs also when I open an empty project and add a PWM component to the System window, without any PWM program code.)
___________ Compiler Message ______________
Device: ARM.AT91SAM7S.AT91SAM7S512_64
Start des Compilers...
C:\Program Files\Flowcode 6\compilers\arm\batchfiles\arm7comp.bat "Mill Control - Test_3" "D:\release\ELECTR~1\DIGITA~1\Flowcode\AT91SA~1\MILLCO~1\"
Launching compiler...
In file included from C:\Program Files\Flowcode 6\CAL\includes.c:232,
from Mill Control - Test_3.c:345:
C:\Program Files\Flowcode 6\CAL\/ARM\ARM_CAL_PWM.c:61:5: error: #error "This chip does not have PWM channel 1 defined"
In file included from C:\Program Files\Flowcode 6\CAL\includes.c:232,
from Mill Control - Test_3.c:345:
C:\Program Files\Flowcode 6\CAL\/ARM\ARM_CAL_PWM.c: In function 'FC_CAL_PWM_Enable_1':
C:\Program Files\Flowcode 6\CAL\/ARM\ARM_CAL_PWM.c:63: warning: implicit declaration of function 'MX_PWM_1_PORT_out'
C:\Program Files\Flowcode 6\CAL\/ARM\ARM_CAL_PWM.c:63: error: 'MX_PWM_1_PIN' undeclared (first use in this function)
C:\Program Files\Flowcode 6\CAL\/ARM\ARM_CAL_PWM.c:63: error: (Each undeclared identifier is reported only once
C:\Program Files\Flowcode 6\CAL\/ARM\ARM_CAL_PWM.c:63: error: for each function it appears in.)
Mill Control - Test_3.c: In function 'FCD_0ba71_PWM_Digital__PrintNumber':
Mill Control - Test_3.c:424: warning: pointer targets in passing argument 2 of 'FCI_TOSTRING' differ in signedness
Mill Control - Test_3.c: In function 'FCD_0ba71_PWM_Digital__Print':
Mill Control - Test_3.c:703: warning: pointer targets in passing argument 1 of 'FCI_GETLENGTH' differ in signedness
Mill Control - Test_3.c: In function 'FCD_047b1_RS232__SendString':
Mill Control - Test_3.c
warning: pointer targets in passing argument 1 of 'FCI_GETLENGTH' differ in signedness
Error returned from [arm-elf-gcc.exe]
Completed compilation, return = 1
C:\Program Files\Flowcode 6\compilers\arm\batchfiles\arm7comp.bat Hat den Fehlercode 1 gemeldet
BEENDET
greetings
ARM
After I had plug in a PWM component in my system I got the following compiler error:
(The error occurs also when I open an empty project and add a PWM component to the System window, without any PWM program code.)
___________ Compiler Message ______________
Device: ARM.AT91SAM7S.AT91SAM7S512_64
Start des Compilers...
C:\Program Files\Flowcode 6\compilers\arm\batchfiles\arm7comp.bat "Mill Control - Test_3" "D:\release\ELECTR~1\DIGITA~1\Flowcode\AT91SA~1\MILLCO~1\"
Launching compiler...
In file included from C:\Program Files\Flowcode 6\CAL\includes.c:232,
from Mill Control - Test_3.c:345:
C:\Program Files\Flowcode 6\CAL\/ARM\ARM_CAL_PWM.c:61:5: error: #error "This chip does not have PWM channel 1 defined"
In file included from C:\Program Files\Flowcode 6\CAL\includes.c:232,
from Mill Control - Test_3.c:345:
C:\Program Files\Flowcode 6\CAL\/ARM\ARM_CAL_PWM.c: In function 'FC_CAL_PWM_Enable_1':
C:\Program Files\Flowcode 6\CAL\/ARM\ARM_CAL_PWM.c:63: warning: implicit declaration of function 'MX_PWM_1_PORT_out'
C:\Program Files\Flowcode 6\CAL\/ARM\ARM_CAL_PWM.c:63: error: 'MX_PWM_1_PIN' undeclared (first use in this function)
C:\Program Files\Flowcode 6\CAL\/ARM\ARM_CAL_PWM.c:63: error: (Each undeclared identifier is reported only once
C:\Program Files\Flowcode 6\CAL\/ARM\ARM_CAL_PWM.c:63: error: for each function it appears in.)
Mill Control - Test_3.c: In function 'FCD_0ba71_PWM_Digital__PrintNumber':
Mill Control - Test_3.c:424: warning: pointer targets in passing argument 2 of 'FCI_TOSTRING' differ in signedness
Mill Control - Test_3.c: In function 'FCD_0ba71_PWM_Digital__Print':
Mill Control - Test_3.c:703: warning: pointer targets in passing argument 1 of 'FCI_GETLENGTH' differ in signedness
Mill Control - Test_3.c: In function 'FCD_047b1_RS232__SendString':
Mill Control - Test_3.c
Error returned from [arm-elf-gcc.exe]
Completed compilation, return = 1
C:\Program Files\Flowcode 6\compilers\arm\batchfiles\arm7comp.bat Hat den Fehlercode 1 gemeldet
BEENDET
greetings
ARM