Page 1 of 1

Interrupt Problem

Posted: Wed Nov 14, 2018 8:19 pm
by iain wilkie
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

Re: Interrupt Problem

Posted: Thu Nov 15, 2018 9:37 am
by iain wilkie
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

Re: Interrupt Problem

Posted: Thu Nov 15, 2018 9:46 am
by LeighM
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

Re: Interrupt Problem

Posted: Thu Nov 15, 2018 10:27 am
by iain wilkie
Bingo !!!!

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

Cheers

Iain