Hi everyone. There is a problem with compiling the program with the PWM element. Returns lines:
D:\Projects\TRIMMI~1>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atmega328p -Os -ffunction-sections -fdata-sections -funsigned-char -o "D:\Projects\TRIMMI~1\Flowcode1.elf" "D:\Projects\TRIMMI~1\Flowcode1.c" -lm -Wl,-gc-sections
In file included from C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\includes.c:561,
from D:\Projects\TRIMMI~1\Flowcode1.c:249:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_PWM.c:110:5: warning: #warning "PWM Channel Uses Resource Timer 0"
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_PWM.c:495:3: warning: #warning "Period control register not available on target device, period will default to 255 + 1"
What is wrong ?
I use chip ATMega 328p (Arduino UNO and Arduino nano). However, as I read in the file CAL_AVR_PWM this chip is not used in it, but only XMEGA and Tiny. Could that be a problem?
Pwm not work
Moderator: Benj
Pwm not work
- Attachments
-
- Flowcode1.msg.txt
- (2.32 KiB) Downloaded 359 times
-
- Flowcode1.fcfx
- (10.66 KiB) Downloaded 328 times
-
- Flowcode1.c
- (28.37 KiB) Downloaded 348 times
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times