EEVblog Electronics Community Forum

Products => Test Equipment => Topic started by: perdrix on April 01, 2020, 03:22:13 pm

Title: Problem programming BSide ESR02
Post by: perdrix on April 01, 2020, 03:22:13 pm
I'm probably getting this quite wrong but when I tried to ISP program my ESR02 I get a "Synchronization Error" reported by my Galep-4

I have connected as follows:


Galep-4 Pin  ESR02 J6 Pin
18 GND  -->  2
19 MOSI -->  6
20 VTG  -->  1
21 MISO -->  5
22 SCK  -->  4
23 RST  -->  2   


Any hints on what I've done wrong gratefully received ...

David

Title: Re: Problem programming BSide ESR02
Post by: perdrix on April 01, 2020, 08:47:40 pm
I understand the firmware in the unit as supplied is read protected (why?).  Would that stop me doing an Erase of the IC?

David
Title: Re: Problem programming BSide ESR02
Post by: perdrix on April 02, 2020, 09:50:49 am
Some progress - it really does help to tell the programmer to provide Vcc to the device!   Once I'd done that I was able to flash the device just fine!

The firmware I was loading is the hex file from the 8x15 folder in the firmware download in this post:

https://www.eevblog.com/forum/testgear/$20-lcr-esr-transistor-checker-project/msg1495258/#msg1495258 (https://www.eevblog.com/forum/testgear/$20-lcr-esr-transistor-checker-project/msg1495258/#msg1495258)

What's the eep file for BTW???

The fuses.png file in that folder looks like:

(https://www.eevblog.com/forum/testgear/problem-programming-bside-esr02/?action=dlattach;attach=961654;image)

So I set the fuses in the programmer dialog like this:

(https://www.eevblog.com/forum/testgear/problem-programming-bside-esr02/?action=dlattach;attach=961658;image)

And it appeared to programme OK, but when I powered it on, this is what I saw:

(https://www.eevblog.com/forum/testgear/problem-programming-bside-esr02/?action=dlattach;attach=961650;image)

Clearly I've set something incorrectly, but what?
Dave
Title: Re: Problem programming BSide ESR02
Post by: indman on April 02, 2020, 10:24:38 am
perdrix,read carefully the manual from the author of this firmware ttester.pdf, in which he explained everything in detail
https://www.mikrocontroller.net/svnbrowser/transistortester/Doku/trunk/pdftex/english/ (https://www.mikrocontroller.net/svnbrowser/transistortester/Doku/trunk/pdftex/english/)
Title: Re: Problem programming BSide ESR02
Post by: perdrix on April 03, 2020, 12:02:37 pm
Well I read the manual and wasn't much the wiser until I talked to another Galep-4 user who pointed me in the right direction to burn the EEPROM as well as the flash.

First of all I didn't have the fuse setting quite right.  It should have been like this:

(https://www.eevblog.com/forum/testgear/problem-programming-bside-esr02/?action=dlattach;attach=962392;image)

The next thing was to include the EEPROM image into the storage buffer for the programmer.

The Flash image was loaded at location zero in the programming software's buffer,  and the ATMega328P flash extends to 0x7fff.

So switched to the  File/Buffer Options screen and set the buffer start address to the start address of EEPROM which is 0x8000

(https://www.eevblog.com/forum/testgear/problem-programming-bside-esr02/?action=dlattach;attach=962396;image)

And then pressed "Load" to load the EEP file.  This populated the back end of the buffer (starting at location 0x8000) as you can see:

(https://www.eevblog.com/forum/testgear/problem-programming-bside-esr02/?action=dlattach;attach=962400;image)

I then had to switch to the Action Options settings dialogue and make sure the EEPROM check box was selected to ensure the programmer would burn the EEPROM image as well as the Flash:

(https://www.eevblog.com/forum/testgear/problem-programming-bside-esr02/?action=dlattach;attach=962378;image)

I could then programme the device and it worked fine:

(https://www.eevblog.com/forum/testgear/problem-programming-bside-esr02/?action=dlattach;attach=962382;image)

Cheers
David


Title: Re: Problem programming BSide ESR02
Post by: glicos on August 01, 2020, 02:31:57 am
Hope anyone can help me. I'm not yet familliar with AVR programming. I'm trying to program BSide ESR02 since i replaced the MEGA 328P Chip due to overheating. I have obtain the necessary files from this link: https://www.eevblog.com/forum/testgear/ (https://www.eevblog.com/forum/testgear/)$20-lcr-esr-transistor-checker-project/msg1495258/?PHPSESSID=8mhnoduc6ql71rog874qtvfrb3#msg1495258

I'm using a MiniPro TL866A with ICSP connector and check it support the ATMEGA 328P Chip but no idea what are the proper configuration bit and proper way to program it. Appreciate any help from expert user of TL866a..