Pwm not work

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Locked
Serhii
Posts: 6
Joined: Sun Jan 20, 2019 7:51 am
Been thanked: 1 time

Pwm not work

Post by Serhii »

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?
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

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: Pwm not work

Post by medelec35 »

This topic is duplicated here.
Topic is locked to avoid confusion.
Martin

Locked