Fuse bits are not set correctly

General discussion on mikroBasic PRO for AVR.
Post Reply
Author
Message
weedogt
Posts: 10
Joined: 10 Oct 2006 20:21

Fuse bits are not set correctly

#1 Post by weedogt » 09 Mar 2015 07:46

I have reported this bug several times already. Each time I have been told that "we will ask the developers to fix it" but nothing has happened. I actually reported the problem the first time in 2011. This is a mail from support dated 13th of October 2011.
Indeed, there are discrepancies between the fuse bit settings in the compiler and AVRFlahs software.
I apologize for this inconvenience, I will inform our developers regarding this issue.

Regards,
---

Filip Jankovic
mikroElektronika [Support Department]

Ticket Details
===================
Ticket ID: MJC-876167
Department: Support Department
Priority: Normal
Status: Closed
I use microBasic Pro v6.0.1 and AVRFLASH v2.14 on a Windows 7 machine.

The problem is that the settings of the programming fuses is tranferred incorrectly to AVRFLASH

Image

Image

Please fix this issue.

User avatar
darko.minic
Posts: 747
Joined: 01 Dec 2014 11:10

Re: Fuse bits are not set correctly

#2 Post by darko.minic » 09 Mar 2015 15:57

Hi,

Thank you for reporting bug. Indeed bug still exists.
I will report this behavior again to our Developers.
We are very sorry for inconvenience.

Regards,
Darko

weedogt
Posts: 10
Joined: 10 Oct 2006 20:21

Re: Fuse bits are not set correctly

#3 Post by weedogt » 12 May 2015 16:57

I just downloaded 6.1.0. Guess what? the bug is still there. How long does it take to fix a bug? It has been almost 4 years now...

User avatar
darko.minic
Posts: 747
Joined: 01 Dec 2014 11:10

Re: Fuse bits are not set correctly

#4 Post by darko.minic » 13 May 2015 14:54

Hi,

I will forward this bug again to our Development Team with a remark that bug is reported before almost 4 years.

We are very sorry for any inconvenience you have.

Regards,
Darko

weedogt
Posts: 10
Joined: 10 Oct 2006 20:21

Re: Fuse bits are not set correctly

#5 Post by weedogt » 19 Aug 2015 15:37

And today I downloaded ver 6.1.1. The bug is still there.

I don't understand how you guys think. Don't you fix known (since 4 years) bugs? I mean, either you say this product is end of life. That's fine, products don't live forever. Or you say it's active. And if a product is active you fix bugs, right?

User avatar
Aleksandar.Mitrovic
mikroElektronika team
Posts: 1697
Joined: 11 Mar 2015 12:48

Re: Fuse bits are not set correctly

#6 Post by Aleksandar.Mitrovic » 20 Aug 2015 16:00

Dear weedogt,

We are aware of this problem with wrong fuse bits in AVRFlash.

Unfortunately this is well known problem which is still on our to do list.

Best regards,
Aleksandar

Hayato_U
Posts: 29
Joined: 28 Aug 2018 12:31

Re: Fuse bits are not set correctly

#7 Post by Hayato_U » 23 Oct 2018 16:46

I downloaded mikroC PRO for AVR Ver 7.0.2 and AVRFlash Ver.2.2
The bug is still there.

When are you fixing bugs?
Attachments
mikroc_bug2.jpg
mikroc_bug2.jpg (139.82 KiB) Viewed 6470 times
mikroc_bug.jpg
mikroc_bug.jpg (174.86 KiB) Viewed 6470 times

Johnny Janssens
Posts: 3
Joined: 02 Feb 2020 14:56

Re: Fuse bits are not set correctly

#8 Post by Johnny Janssens » 02 Feb 2020 15:24

Hello to all,
Dear Darko and/or Aleksandar,

Last week, January 2020, we where the victim of this bug, a batch of SMD controllers (soldered into the PCB) was destroyed by setting the wrong flags, although they where correctly set in the development software, they did not (correctly) transferred to the programmer software. :(
Since they became un-programmable, they must be replaced, what a shame...

Today I leaned, in this conversation, that this bug exits already since October 2011, that is now more than 8 years ago.
How is this possible? A bug of this kind should get fixed in shorter time!

I do not want to complain too much about this nice software, because it functions really very good.
But a bug like this should be fixed a lot faster!!!
Any idea in which "century" this will get fixed? :mrgreen:

Anyway, kind regards, Johnny

Johnny Janssens
Posts: 3
Joined: 02 Feb 2020 14:56

Re: Fuse bits are not set correctly

#9 Post by Johnny Janssens » 06 Feb 2020 01:01

Hello To All,

Not much replies to this problem here...

Since, apparently, this bug will not be fixed by MikroE, we tried to solve the problem in another way, noticing that one may create a configurable "tool" on the toolbar, we created an executable program that accepts the project's path, reads the source files of that project, and creates the correct command with all necessary parameters to start the AVRFlash programmer, this time with the correct settings for the fuses (as they should have been originally).
After this program was completed, tests showed that the programmer performs correctly with the given -FUSE: parameter (so the problem is situated into the compiler, that does not forward the correct fuses to the programmer).

Then we added our program to the tools bar (through the setup window), and also this functioned correctly...as long the compiler stays open...
Unfortunately, after closing the compiler and opening it again, the tools icon disappeared again, although the setup window still shows the correct settings for that tools icon, but the button stays hidden. :(
So now we bumped onto a second bug, that makes "our solution" to fix that first bug...useless, so back to square one...

Besides this, we also noticed before that the calculated configuration registers (Fuse bits) are incorrect in the configuration window for the ATTINY841 controller, also the values stored into the .cfg file are incorrect, and needs to be corrected manually.
Granted, this is a rather new controller, so this bug was probably not yet noticed.

So at the end we run into three bugs within only one project, none the less we are still impressed about this software.
We still hope that those bugs will be fixed within a reasonable time, it should not take more than 8 years...

Kind regards,
Johnny

Johnny Janssens
Posts: 3
Joined: 02 Feb 2020 14:56

Re: Fuse bits are not set correctly

#10 Post by Johnny Janssens » 10 Feb 2020 22:20

Hello,

Still no reply about these bugs after several days, is there no support at all for these (since long time known) bugs?
Did this software somehow became orphanware or abandonware? It seems so, very pity...
This lack of support makes the software rather unreliable and useless for future projects.

Regards.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Fuse bits are not set correctly

#11 Post by filip » 11 Feb 2020 09:17

Hi,

I apologize for the late reply.

I have been monitoring this topic since you wrote your first post, and have been in contact with our managers and development team regarding the issues your reported here.

Certainly the software is not abandoned or obsolete, we have put these issues on our to do list, I will inform you of the progress.

Regards,
Filip.

lemiceterrieux
Posts: 39
Joined: 12 Nov 2020 19:51

Re: Fuse bits are not set correctly

#12 Post by lemiceterrieux » 20 Apr 2022 05:37

I cannot understand why the "non transferring" of the clock frequency to the programmer's window should affect its function, at least at "reasonable" frequencies. The clock frequency is used by the compiler to calculate delays, baud rates, etc, but there is no fuse in the ATMega's (at least in those I use) related with it. And as far as I know it is not used by the programmer ... or is it ? For myself I use the programmer in conjunction with the (old ! ) STK200 board (4 MHz crystal) both with Mega162 and Mega8515 and had no issues with this, even if the frequency is set (in the compiler's options) to the 6 MHz used on my final application board : the processor's programming is OK, the verifying function shows no errors !
From France, SESSENHEIM

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Fuse bits are not set correctly

#13 Post by filip » 21 Apr 2022 14:58

Hi,

Frequency from the compiler is used to calculate delays, just as you said, it is not transferred to the programmer.

On the other hand, frequency set in the AVRFlash programming software is the speed of the serial programming, so if you choose some undesired oscillator (in fuse bits),
for example 128kHZ internal oscillator, the compiler will pass it to the AVRFlash which will pass it to the programmer and it will automatically use it for programming thus generating an issue.

Regards,
Filip.

lemiceterrieux
Posts: 39
Joined: 12 Nov 2020 19:51

Re: Fuse bits are not set correctly

#14 Post by lemiceterrieux » 07 May 2022 16:29

Another bug I noticed (but with Pascal, I don't know if it occurs with C, too) : if in a project using the Mega162 one sets (Edit) the BOD to 4.3 V and programs the processor directly from the "Build" menue (build and program), the BOD is set to 2.7 V, even if in the programmer's window the BOD was set to 4.3 V before ; but this seems less critical ...
From France, SESSENHEIM

Post Reply

Return to “mikroBasic PRO for AVR General”