Avrflash doesnt store the code correctly in flash?

General discussion on mikroProg™ programmer and debugger and mikroProg Suite software as well.
Post Reply
Author
Message
franck
Posts: 8
Joined: 30 Nov 2016 18:31

Avrflash doesnt store the code correctly in flash?

#1 Post by franck » 08 Feb 2021 15:22

HI, I've contacted the support several months ago but without feedback.
today I must go further and understand why I can't program my ATmega2560 with AVRflash.
If I use AVRdude with FT232 all is working fine the bootloader works fine an this is what I get in code flash:
Image

and here the same flash dump when the same hex file is programmed with AVRFLASH
Image
why the bootloader is not at the right location?
so when the microcontroller jump at the bootloader address the microcontroller crash.

Look at this video.
I have only a 2560 connected as a target.
if i click erase > view the code > randomize > program then read, the content is different than the one sent just before! and thus a verify action find lots of errors ^ ^
http://thequark.free.fr/mikroe/avrflash.m4v
what's wrong?

franck
Posts: 8
Joined: 30 Nov 2016 18:31

Re: Avrflash doesnt store the code correctly in flash?

#2 Post by franck » 10 Feb 2021 16:02

there's something wrong with the hex file loading.
-> if I load the hex file with avrdude, program the target it works
-> If I load the same hex file and program it with Mikroe AVRflash it didn't work.
BUT -> If I program the target with avrdude (it works) read the target with Mikroe avrflash, save the file as hex. If I load this saved hex file with Mikroe avrflash and program the target with it, the target works!

User avatar
filip.grujcic
Posts: 822
Joined: 14 May 2018 08:34

Re: Avrflash doesnt store the code correctly in flash?

#3 Post by filip.grujcic » 12 Feb 2021 10:29

Hello,

I believe you have submitted a support ticket, therefore let us continue the correspondence there.

Regards,
Filip Grujcic

franck
Posts: 8
Joined: 30 Nov 2016 18:31

Re: Avrflash doesnt store the code correctly in flash?

#4 Post by franck » 12 Feb 2021 10:34

I have ordered an usbasp programmer from amazon for 8 euros and it works fine.
I think your programmer software has some issues.
after lot of tests I must write two times under avrflash to get the code programmed in the AVR and the programming speed doesn't change even if I change the microcontrolelr quartz frequency in the settings.
I've even tested with 74HC125 buffers added between your programmer and the target to get strong driving and to be sure it' was not caused by the DACs connected to the SPI bus on my board.^ ^

Post Reply

Return to “mikroProg™ programmer and debugger”