Interrupt Problem

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

Moderator: Benj

iain wilkie
Posts: 89
Joined: Tue Jul 14, 2009 4:37 pm
Has thanked: 10 times
Been thanked: 8 times
Contact:

Interrupt Problem

Postby iain wilkie » Wed Nov 14, 2018 8:19 pm

After a great deal of faffing around with code from V4 imported into V8 and not working I seem to have found the problem but how to fix it ??

I have attached the code. If you compile this and look at the .lst file you will see that no TIMER0 Overflow vector is generated and indeed no interrupt code generated either !!

If I run this through V4 these elements of the program are there and indeed the program works !

How can we fix this !!!

Regards

Iain
Attachments
Inflation REV4A_v7.fcfx
(26.14 KiB) Downloaded 32 times

iain wilkie
Posts: 89
Joined: Tue Jul 14, 2009 4:37 pm
Has thanked: 10 times
Been thanked: 8 times
Contact:

Re: Interrupt Problem

Postby iain wilkie » Thu Nov 15, 2018 9:37 am

Taking this problem forward. I have attached a program for ATTiny13 with simply an enabled Timer0 interrupt and the interrupt routine toggling an output line.
This simulates ok BUT will not run on hardware. When you look at the .lst file it produces you will see there is no timer overflow vector created and indeed no interrupt code !! hence the reason it doesnt work.

If this is replicated in V4 it is absolutely fine !

By the way I also note that no .asm file exists !!

This is driving me nuts ......

Regards

Iain
Attachments
Flowcode1 TEST.fcfx
(7.94 KiB) Downloaded 43 times

User avatar
LeighM
Matrix Staff
Posts: 1919
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 461 times
Been thanked: 649 times
Contact:

Re: Interrupt Problem

Postby LeighM » Thu Nov 15, 2018 9:46 am

Hi,
Thanks for spotting the bug.
Please try the attached updated file, to go into directory
C:\ProgramData\MatrixTSL\FlowcodeV8\FCD\AVR
Then reload your project
Attachments
ATTINY13.fcdx
(6.48 KiB) Downloaded 41 times
These users thanked the author LeighM for the post:
iain wilkie (Thu Nov 15, 2018 10:27 am)
Rating: 5.26%
 

iain wilkie
Posts: 89
Joined: Tue Jul 14, 2009 4:37 pm
Has thanked: 10 times
Been thanked: 8 times
Contact:

Re: Interrupt Problem

Postby iain wilkie » Thu Nov 15, 2018 10:27 am

Bingo !!!!

All working great now, thanks for the fast update, can hopefully get on with my evaluation of Flowcode8 now

Cheers

Iain
These users thanked the author iain wilkie for the post:
LeighM (Thu Nov 15, 2018 10:33 am)
Rating: 5.26%