Search found 97 matches

by iain wilkie
Sat Nov 24, 2018 9:57 am
Forum: Flowcode V8
Topic: Another Interrupt Problem .. This time ATTiny26 !
Replies: 2
Views: 2479

Another Interrupt Problem .. This time ATTiny26 !

Having had the interrupt problem fixed for the ATTiny13, I now find I have the same type of problem this time with the ATTiny26 !!
No Interrupt vector is created and various errors appear ... see attached.
ATTiny26 Interrupt Problem.jpg
ATTiny26 Interrupt Problem.jpg (54.38 KiB) Viewed 2479 times
by iain wilkie
Fri Nov 23, 2018 8:28 pm
Forum: Flowcode V8
Topic: Stack Overflow Protection
Replies: 2
Views: 1967

Re: Stack Overflow Protection

Benj,

Thanks for the reply but I don't see or understand how this info allows an informed assessment of stack overflow ???

Iain
by iain wilkie
Fri Nov 23, 2018 2:05 pm
Forum: Flowcode V8
Topic: Stack Overflow Protection
Replies: 2
Views: 1967

Stack Overflow Protection

So after discovering that an older program I had in V4 would not run in an ATTiny13 in FC8 due to the stack overflowing, I am wondering what measures FC8 could take to flag this up as an error or a warning, this should be I would have though be a fairly important check given that the programmer may ...
by iain wilkie
Fri Nov 23, 2018 12:08 pm
Forum: Flowcode V8
Topic: Just Bought FC8 Pro ... Now cannot use !
Replies: 5
Views: 3214

Re: Just Bought FC8 Pro ... Now cannot use !

Thanks Benj.

Did you get my PM ??

Iain
by iain wilkie
Fri Nov 23, 2018 11:55 am
Forum: Flowcode V8
Topic: Just Bought FC8 Pro ... Now cannot use !
Replies: 5
Views: 3214

Re: Just Bought FC8 Pro ... Now cannot use !

Hi Steve,

Thanks ... what I did was uninstall and reinstall the AVR compiler and now its fine. Mind you it looks like I'm still running the 30 day free trial as
it says at the bottom of the screen that I have 18 days left and all the modules are available ???

Iain
by iain wilkie
Fri Nov 23, 2018 11:25 am
Forum: Flowcode V8
Topic: Just Bought FC8 Pro ... Now cannot use !
Replies: 5
Views: 3214

Just Bought FC8 Pro ... Now cannot use !

Having evaluated the 30 day free version, I decided to take advantage of the black friday offer. I have bought a Pro licence + AVR chip pack + Basic I/O Went through the licencing procedure but now I cannot compile with an error saying the AVR toolchain is not installed. After a bit of faffing aroun...
by iain wilkie
Thu Nov 22, 2018 8:10 pm
Forum: Flowcode V8
Topic: Possible Stack Overflow ???
Replies: 28
Views: 14736

Re: Possible Stack Overflow ???

Ok ... all confirmed, using an ATTiny25 solves the problem. So stack overflow was the reason and the fact that ATTINY13 is ok in V4 and not in V8 is because V4 uses much less stack especially when calling an interrupt. Which raises the question ..... Should we not be receiving an error and warning m...
by iain wilkie
Wed Nov 21, 2018 10:09 pm
Forum: Flowcode V8
Topic: Possible Stack Overflow ???
Replies: 28
Views: 14736

Re: Possible Stack Overflow ???

Martin, I totally agree with you. Looking at the .lst outputs from V4 and V8 it is clear the V8 output used much more stack than the V4. A stack problem would definitely explain every scenario experienced. I have ordered up a ATTiny25 which is basically exactly the same as the 13 but has twice as mu...
by iain wilkie
Wed Nov 21, 2018 5:53 pm
Forum: Flowcode V8
Topic: Possible Stack Overflow ???
Replies: 28
Views: 14736

Re: Possible Stack Overflow ???

Hi Martin, I understand about the small ram area ... however its the same chip we are using when trying this with V4 and remember it works fine. Anyway I think I have made a bit of progress ...... if I change the Divisor from an INT to a BYTE although this screws a time setting, the program now work...
by iain wilkie
Wed Nov 21, 2018 2:17 pm
Forum: Flowcode V8
Topic: Possible Stack Overflow ???
Replies: 28
Views: 14736

Re: Possible Stack Overflow ???

Hi Martin, I will have a look at your suggestions to see if any help, however please note that these would not explain why removing a call and placing its code in-line would suddenly make things work. Also note everything else is fine .... PWM/Interrupt/delays all work perfectly, its just if I put t...
by iain wilkie
Tue Nov 20, 2018 6:53 pm
Forum: Flowcode V8
Topic: Possible Stack Overflow ???
Replies: 28
Views: 14736

Re: Possible Stack Overflow ???

Hi Benj, Thanks for replying. Yes I did check the ADC values and they do appear to be exactly the same in V8 as in V4. Also I can confirm that the interrupt time is as per the comments ..... this has been checked using a scope on the target hardware. As requested I have attached the V4 edition of th...
by iain wilkie
Tue Nov 20, 2018 3:42 pm
Forum: Bug Reports
Topic: Import old projects
Replies: 5
Views: 4787

Re: Import old projects

Hi Benj, I fully understand that the jump from V4 to V8 is massive and appreciate that there is no doubt this would cause problems. As we have new projects coming up where I was going to use Flowcode it became apparent to me that we should upgrade to V8 and as part of the learning curve for V8 I obv...
by iain wilkie
Tue Nov 20, 2018 12:20 pm
Forum: Bug Reports
Topic: Import old projects
Replies: 5
Views: 4787

Re: Import old projects

ARRRG !!! So I updated to 8.1 (still evaluating for purchase) so this means I can no longer import my previous V4 programs !!! I realize there may be a bit of incompatibility that may need attention when doing this but a least you could move the bulk of a program over to V8 very easily. I also noted...
by iain wilkie
Tue Nov 20, 2018 11:08 am
Forum: Flowcode V8
Topic: Possible Stack Overflow ???
Replies: 28
Views: 14736

Re: Possible Stack Overflow ???

Hi Martin, Thanks for taking an interest in this. I have attached the offending program. You will see that in the MAIN section there is a group of icons that are "disabled" and just at the very start of that group is a macro called RAMPUP. That group of disabled icons are the exact program that is c...
by iain wilkie
Mon Nov 19, 2018 8:10 pm
Forum: Flowcode V8
Topic: Possible Stack Overflow ???
Replies: 28
Views: 14736

Possible Stack Overflow ???

I have been having a nightmare getting a program in V4 to run in V8. Programs simulate ok but when transferred to chip I have the problem After an update on the ATTiny13 from MM that was causing an interrupt problem, I have finally tracked down the source of another problem which seems to me to be s...
by iain wilkie
Mon Nov 19, 2018 9:39 am
Forum: Flowcode V8
Topic: Config Fuses for ATTiny13
Replies: 2
Views: 1892

Re: Config Fuses for ATTiny13

Woops sorry ....
Screenshot is here
ATTiny13 Config.jpg
ATTiny13 Config.jpg (17.96 KiB) Viewed 1883 times
by iain wilkie
Sun Nov 18, 2018 8:39 pm
Forum: Flowcode V8
Topic: Config Fuses for ATTiny13
Replies: 2
Views: 1892

Config Fuses for ATTiny13

See attached screenshot for the config fuses for a ATTiny13 as selected ..... This looks very strange !! If I load up V4 and look at the config fuses it reads 0x0,0xdf. Also after getting an update file from MM for the ATTiny13 which got the interrupt working, I find that the ADC inputs no longer wo...
by iain wilkie
Thu Nov 15, 2018 10:27 am
Forum: Flowcode V8
Topic: Interrupt Problem
Replies: 3
Views: 2702

Re: Interrupt Problem

Bingo !!!!

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

Cheers

Iain
by iain wilkie
Thu Nov 15, 2018 9:39 am
Forum: Flowcode V8
Topic: Trialing Flowcode 8 programmer problem
Replies: 9
Views: 4147

Re: Trialing Flowcode 8 programmer problem

Benj,
You can still view the assembler code by opening the .asm file in your project folder with a text editor.
There is no .asm file produced !! ... only a .lst file

Iain
by iain wilkie
Thu Nov 15, 2018 9:37 am
Forum: Flowcode V8
Topic: Interrupt Problem
Replies: 3
Views: 2702

Re: Interrupt Problem

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 cre...
by iain wilkie
Wed Nov 14, 2018 8:19 pm
Forum: Flowcode V8
Topic: Interrupt Problem
Replies: 3
Views: 2702

Interrupt Problem

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 ...
by iain wilkie
Wed Nov 14, 2018 6:47 pm
Forum: Flowcode V8
Topic: Trialing Flowcode 8 programmer problem
Replies: 9
Views: 4147

Re: Trialing Flowcode 8 programmer problem

Ok updating the driver worked for V8 but doesn't work on my V4 !!! What I mean is the programmer now works on V8 but not on V4 ... I have to revert back to the old driver to work on V4 It works fine downloading to chip in V4 but not downloading from V8 What I mean is the program runs good if progra...
by iain wilkie
Wed Nov 14, 2018 4:46 pm
Forum: Flowcode V8
Topic: Trialing Flowcode 8 programmer problem
Replies: 9
Views: 4147

Re: Trialing Flowcode 8 programmer problem

Hi Benj, The problem I seem to have is with TIMR0 overflow interrupt (on a ATTiny13) It works fine downloading to chip in V4 but not downloading from V8 It seems the interrupt screws things .... could it be too long in V8 ??? not sure. I note there is no "View ASM" in V8 ????? this would help me fin...
by iain wilkie
Wed Nov 14, 2018 3:16 pm
Forum: Flowcode V8
Topic: Trialing Flowcode 8 programmer problem
Replies: 9
Views: 4147

Re: Trialing Flowcode 8 programmer problem

Hi Benj, Ok updating the driver worked for V8 but doesn't work on my V4 !!! This is causing me problems as to upgrade to V8 I need my V4 programs to work under V8 and they don't and I'm not entirely sure why. I *think* it might have something to do with the PORT i/o writing or TMR0 interrupt ... has...
by iain wilkie
Wed Nov 14, 2018 12:26 pm
Forum: Flowcode V8
Topic: Trialing Flowcode 8 programmer problem
Replies: 9
Views: 4147

Re: Trialing Flowcode 8 programmer problem

Hi Benj,

Did that but now it doesn't seem to find the programmer on the USB !!!
Programmer is plugged in and does enumerate ..... also still works fine in the V4 Flowcode.

Any more ideas ???

Snapshot of error attached

Iain