Hello every one..
i have created simple pwm in arduino and set the duty cycle using pot it works fine in flowcode 8 but when i try to compile or try to upload my arduino the compiler show me this error please guide me..
Target folder: C:\Users\Public\DOCUME~1\flowcode\arduino
Source name: C:\Users\Public\Documents\flowcode\arduino\PWM ARDUINO.fcfx
Title:
Description:
Device: ARD.ATMEGA.ATMEGA328P
Generated by: Flowcode v8.0.0.6
Date: Sunday, October 18, 2020 03:06:31
Users: 1
Registered to:
License key: *****
http://www.matrixtsl.com
Launching the compiler...
E:\Program Files (x86)\Flowcode\Compilers\avr\batchfiles\avra.bat atmega328p "C:\Users\Public\DOCUME~1\flowcode\arduino\PWM ARDUINO.elf" "C:\Users\Public\DOCUME~1\flowcode\arduino\PWM ARDUINO.c" "C:\Users\Public\DOCUME~1\flowcode\arduino\PWM ARDUINO.lst"
C:\Users\Public\DOCUME~1\flowcode\arduino>"E:\PROGRA~2\Flowcode\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atmega328p -Os -ffunction-sections -fdata-sections -funsigned-char -o "C:\Users\Public\DOCUME~1\flowcode\arduino\PWM ARDUINO.elf" "C:\Users\Public\DOCUME~1\flowcode\arduino\PWM ARDUINO.c" -lm -Wl,-gc-sections
In file included from C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\includes.c:484,
from C:\Users\Public\DOCUME~1\flowcode\arduino\PWM ARDUINO.c:214:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_PWM.c:106:4: error: #error "PWM channel selected is greater then available PWM Channel Count"
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_PWM.c:477:3: warning: #warning "Period control register not available on target device, period will default to 255 + 1"
In file included from C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\includes.c:484,
from C:\Users\Public\DOCUME~1\flowcode\arduino\PWM ARDUINO.c:214:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_PWM.c: In function 'FC_CAL_PWM_Enable_1':
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_PWM.c:503: error: 'MX_TCCR_X' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_PWM.c:503: error: (Each undeclared identifier is reported only once
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_PWM.c:503: error: for each function it appears in.)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_PWM.c:503: error: 'MX_PWM_COM0_X' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_PWM.c:508: error: 'MX_PWM_COM1_X' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_PWM.c: In function 'FC_CAL_PWM_Disable_1':
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_PWM.c:534: error: 'MX_TCCR_X' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_PWM.c:534: error: 'MX_PWM_COM1_X' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_PWM.c: In function 'FC_CAL_PWM_SetDuty8Bit_1':
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_PWM.c:554: error: 'MX_DUTY_REG_X' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_PWM.c: In function 'FC_CAL_PWM_SetDuty10Bit_1':
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_PWM.c:830: error: 'MX_DUTY_REG_X' undeclared (first use in this function)
Error returned from [avr-gcc.exe]
E:\Program Files (x86)\Flowcode\Compilers\avr\batchfiles\avra.bat reported error code 1
FINISHED
here is my attachment
compiling problem with arduino
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact: