Timer component

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

Moderator: Benj

kennethnilsen69
Posts: 87
Joined: Tue Sep 01, 2015 9:37 pm
Been thanked: 14 times
Contact:

Timer component

Postby kennethnilsen69 » Wed Dec 18, 2019 11:09 am

Hi I have problems if I want to use more than 4 Timer components. I can not make the 5 Timer to work. In the Timer component, up to 9 Timers are available

Are there any restrictions or is this a bug?

I use:
FC7 and a EPIO40P16
Attachments
TimerTest.fcfx
(67.44 KiB) Downloaded 23 times

kennethnilsen69
Posts: 87
Joined: Tue Sep 01, 2015 9:37 pm
Been thanked: 14 times
Contact:

Re: Timer component

Postby kennethnilsen69 » Wed Dec 18, 2019 12:27 pm

for the Arduino Nano I can't use any Timer components.

just by adding a Timer component on a blank project to Nano I get this error message:


Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\avr\batchfiles\avra.bat atmega328p "C:\Users\Kenneth\DOCUME~1\Arduino\TimerTestNano.elf" "C:\Users\Kenneth\DOCUME~1\Arduino\TimerTestNano.c" "C:\Users\Kenneth\DOCUME~1\Arduino\TimerTestNano.lst"
Launching compiler...

C:\Users\Kenneth\DOCUME~1\Arduino>"C:\PROGRA~2\FLOWCO~2\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atmega328p -Os -ffunction-sections -fdata-sections -funsigned-char -o "C:\Users\Kenneth\DOCUME~1\Arduino\TimerTestNano.elf" "C:\Users\Kenneth\DOCUME~1\Arduino\TimerTestNano.c" -lm -Wl,-gc-sections
C:\Users\Kenneth\DOCUME~1\Arduino\TimerTestNano.c: In function 'FCD_026e1_Timer1__StartCounter':
C:\Users\Kenneth\DOCUME~1\Arduino\TimerTestNano.c:284: error: expected expression before '=' token
C:\Users\Kenneth\DOCUME~1\Arduino\TimerTestNano.c: In function 'FCD_026e1_Timer1__StopCounter':
C:\Users\Kenneth\DOCUME~1\Arduino\TimerTestNano.c:397: error: expected expression before ';' token
C:\Users\Kenneth\DOCUME~1\Arduino\TimerTestNano.c: In function 'FCD_026e1_Timer1__GetRawCount':
C:\Users\Kenneth\DOCUME~1\Arduino\TimerTestNano.c:475: error: expected expression before ';' token
C:\Users\Kenneth\DOCUME~1\Arduino\TimerTestNano.c:516: warning: left shift count >= width of type

Error returned from [avr-gcc.exe]
Completed compilation, return = 1

C:\Program Files (x86)\Flowcode 7\compilers\avr\batchfiles\avra.bat reported error code 1
Attachments
TimerTestNano.fcfx
(11.76 KiB) Downloaded 23 times

User avatar
Benj
Matrix Staff
Posts: 14671
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4655 times
Been thanked: 4281 times
Contact:

Re: Timer component

Postby Benj » Wed Dec 18, 2019 12:55 pm

Hello,

To make sure you are using the latest files please can you make sure you are running version 7.3 and also have applied the latest bug fixes available here. viewtopic.php?f=63&t=19743

Hopefully this will solve the problem but let us know if not.

kennethnilsen69
Posts: 87
Joined: Tue Sep 01, 2015 9:37 pm
Been thanked: 14 times
Contact:

Re: Timer component

Postby kennethnilsen69 » Wed Dec 18, 2019 1:48 pm

the latest update fixed the problem with Nano but not on the EPIO40P16