Announcement

Collapse
No announcement yet.

ESR meter upgrades

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Re: ESR meter upgrades

    Originally posted by stj View Post
    i dont know where you got the command for USBasp from,

    try this:


    and try these files:
    copied from eevblog stj just in case you havnt saw it
    I will try to program the chip based on what I have already read with an USBASP

    I got a question if anyone knows
    it is really necessary to use a 8 Mhz Crystal for program the chip with the USBASP? The only one I got now is the one on the component tester and I have to desolder that to be able to program the chip, then solder back again again to test and so on.

    Or I can desolder the Crystal and solder a 16 Mhz Crystal in the tester? I do have spare 16 Mhz Crystals.
    But from where I live there is no electronics shops open for the weekend so I will have to wait until next Monday or go through the soldering desodering procedure.

    Thanks
    Belen
    Last edited by vinceroger69; 07-23-2016, 06:58 AM.

    Comment


      Re: ESR meter upgrades

      to program an atmel, you must have all the power pins powered - there are more than 2,
      and you must have a clock running - it dont have to be 8MHz, it can be anything within range of the chip.
      so 1-20MHz - is fine.

      that's why it's best to program them in-circuit - all that is already taken care of.

      Comment


        Re: ESR meter upgrades

        btw, that tl866cs of yours, i think that can do in circuit programming using a cable from the connector on the end.

        if i remember, the CS has the connector - the non-cs does not, just a blanking plate.

        Comment


          Re: ESR meter upgrades

          my tl866 just has a blanking plate stj but has loads of adaptors in the box and bag
          as per your post above for the new member i was trying to find a picture of the header and the ic wiring maybe you have one you can upload as im on my phone at the minute.
          Last edited by vinceroger69; 07-23-2016, 08:05 AM.

          Comment


            Re: ESR meter upgrades

            you should upgrade your programmer.
            http://blackstufflabs.com/2013/11/18...l866a/?lang=en


            http://www.eevblog.com/forum/blog/ee...rammer-review/

            Comment


              Re: ESR meter upgrades

              Thanks stj yes i have saw that video already it looks a good tool and thanks for the link i might consider the upgrades at some points i need to collect some more projects too work on as have none at the minute (well one a psp needs a replacement shell fitting but the china one provided looks rubbish quility so been putting this job off)
              Last edited by vinceroger69; 07-23-2016, 07:37 AM.

              Comment


                Re: ESR meter upgrades

                Originally posted by vinceroger69 View Post
                I saw your post on eevblog are you programming the chip on the esr pcb? though a fitted header?
                Dear Vince thank you

                I removed the chip from the transistor tester and inserted it into a PCB

                I'm programing the chip using an USBASP and the procedure as described in here

                http://www.eevblog.com/forum/testgear/$20-lcr-esr-transistor-checker-project/msg810893/#msg810893

                I will retry now with the code provided by sjt and will right away post results
                Again many thanks to you for refering me here and sjt and other members helping me with this issue

                Belen

                Comment


                  Re: ESR meter upgrades

                  Dear guys

                  I got somehow a success

                  I was able to upload the firmware and now the display stays lit ans the led too but still nothing shows on the display just blank

                  This was my result o the programming
                  Code:
                  C:\AVR>avrdude -c USBasp -P usb -p m328p -U flash:w:Code.HEX \-U eeprom:w:Data.H
                  EX \-U lfuse:w:0xf7:m \-U hfuse:w:0xd9:m \-U efuse:w:0xfc:m
                  
                  avrdude: AVR device initialized and ready to accept instructions
                  
                  Reading | ################################################## | 100% 0.01s
                  
                  avrdude: Device signature = 0x1e950f
                  avrdude: NOTE: "flash" memory has been specified, an erase cycle will be perform
                  ed
                       To disable this feature, specify the -D option.
                  avrdude: erasing chip
                  avrdude: reading input file "Code.HEX"
                  avrdude: input file Code.HEX auto detected as Intel Hex
                  avrdude: writing flash (29702 bytes):
                  
                  Writing | ################################################## | 100% 18.81s
                  
                  avrdude: 29702 bytes of flash written
                  avrdude: verifying flash memory against Code.HEX:
                  avrdude: load data flash data from input file Code.HEX:
                  avrdude: input file Code.HEX auto detected as Intel Hex
                  avrdude: input file Code.HEX contains 29702 bytes
                  avrdude: reading on-chip flash data:
                  
                  Reading | ################################################## | 100% 11.40s
                  
                  avrdude: verifying ...
                  avrdude: 29702 bytes of flash verified
                  
                  avrdude: safemode: Fuses OK (E:01, H:DF, L:F7)
                  
                  avrdude done. Thank you.
                  and this is how it is now



                  I'm sorry for the clips on the side but those were the cables I soldered to be able to attach and detach the crystal I did not knew I could use a 16 mhz one until today and I had already took that one out.
                  Meanwhile I receive an answer I'm going to solder the crystal back onto the tester.

                  Thank you all again
                  Belen
                  Attached Files
                  Last edited by Per Hansson; 06-16-2022, 02:02 PM. Reason: Added CODE tags, uploaded offsite image

                  Comment


                    Re: ESR meter upgrades

                    go do it again - the fuses didnt get programmed.

                    copy & paste from this:
                    Attached Files

                    Comment


                      Re: ESR meter upgrades

                      Dear

                      I reflashed and now the display stays lit for about 4 seconds and then display and led turns off.

                      Keep in mind that my files ransistorTester.hex are from

                      https://www.mikrocontroller.net/svnb...28_st7565_kit/


                      Code:
                      C:\AVR>avrdude -c USBasp -P usb -p m328p -U flash:w:TransistorTester.hex \-U eep
                      rom:w:TransistorTester.eep \-U lfuse:w:0xf7:m \-U hfuse:w:0xd9:m \-U efuse:w:0xf
                      c:m
                      
                      avrdude: AVR device initialized and ready to accept instructions
                      
                      Reading | ################################################## | 100% 0.01s
                      
                      avrdude: Device signature = 0x1e950f
                      avrdude: NOTE: "flash" memory has been specified, an erase cycle will be perform
                      ed
                           To disable this feature, specify the -D option.
                      avrdude: erasing chip
                      avrdude: reading input file "TransistorTester.hex"
                      avrdude: input file TransistorTester.hex auto detected as Intel Hex
                      avrdude: writing flash (29952 bytes):
                      
                      Writing | ################################################## | 100% 19.04s
                      
                      avrdude: 29952 bytes of flash written
                      avrdude: verifying flash memory against TransistorTester.hex:
                      avrdude: load data flash data from input file TransistorTester.hex:
                      avrdude: input file TransistorTester.hex auto detected as Intel Hex
                      avrdude: input file TransistorTester.hex contains 29952 bytes
                      avrdude: reading on-chip flash data:
                      
                      Reading | ################################################## | 100% 10.39s
                      
                      avrdude: verifying ...
                      avrdude: 29952 bytes of flash verified
                      
                      avrdude: safemode: Fuses OK (E:01, H:DF, L:F7)
                      
                      avrdude done. Thank you.
                      Last edited by Per Hansson; 07-23-2016, 12:49 PM. Reason: Added CODE tags

                      Comment


                        Re: ESR meter upgrades

                        it's not programming your H & E fuses.

                        Comment


                          Re: ESR meter upgrades

                          try just typing these individually:

                          avrdude -c USBasp -P usb -p m328p -U lfuse:w:0xf7:m

                          avrdude -c USBasp -P usb -p m328p -U hfuse:w:0xd9:m

                          avrdude -c USBasp -P usb -p m328p -U efuse:w:0xfc:m

                          Comment


                            Re: ESR meter upgrades

                            Would you advice for me to use a blank chip?
                            Maybe the chip is broken
                            How do I verify if it's programming the fuses or not?

                            Thanks again
                            Belen

                            Comment


                              Re: ESR meter upgrades

                              Code:
                              C:\AVR>avrdude -c USBasp -P usb -p m328p -U lfuse:w:0xf7:m
                              
                              avrdude: AVR device initialized and ready to accept instructions
                              
                              Reading | ################################################## | 100% 0.01s
                              
                              avrdude: Device signature = 0x1e950f
                              avrdude: reading input file "0xf7"
                              avrdude: writing lfuse (1 bytes):
                              
                              Writing | ################################################## | 100% 0.01s
                              
                              avrdude: 1 bytes of lfuse written
                              avrdude: verifying lfuse memory against 0xf7:
                              avrdude: load data lfuse data from input file 0xf7:
                              avrdude: input file 0xf7 contains 1 bytes
                              avrdude: reading on-chip lfuse data:
                              
                              Reading | ################################################## | 100% 0.00s
                              
                              avrdude: verifying ...
                              avrdude: 1 bytes of lfuse verified
                              
                              avrdude: safemode: Fuses OK (E:01, H:DF, L:F7)
                              
                              avrdude done. Thank you.

                              Code:
                              C:\AVR>avrdude -c USBasp -P usb -p m328p -U hfuse:w:0xd9:m
                              
                              avrdude: AVR device initialized and ready to accept instructions
                              
                              Reading | ################################################## | 100% 0.01s
                              
                              avrdude: Device signature = 0x1e950f
                              avrdude: reading input file "0xd9"
                              avrdude: writing hfuse (1 bytes):
                              
                              Writing | ################################################## | 100% 0.01s
                              
                              avrdude: 1 bytes of hfuse written
                              avrdude: verifying hfuse memory against 0xd9:
                              avrdude: load data hfuse data from input file 0xd9:
                              avrdude: input file 0xd9 contains 1 bytes
                              avrdude: reading on-chip hfuse data:
                              
                              Reading | ################################################## | 100% 0.00s
                              
                              avrdude: verifying ...
                              avrdude: 1 bytes of hfuse verified
                              
                              avrdude: safemode: Fuses OK (E:01, H:D9, L:F7)
                              
                              avrdude done. Thank you.

                              Code:
                              C:\AVR>avrdude -c USBasp -P usb -p m328p -U efuse:w:0xfc:m
                              
                              avrdude: AVR device initialized and ready to accept instructions
                              
                              Reading | ################################################## | 100% 0.01s
                              
                              avrdude: Device signature = 0x1e950f
                              avrdude: reading input file "0xfc"
                              avrdude: writing efuse (1 bytes):
                              
                              Writing |                          | 0% 0.00s ***faile
                              d;
                              Writing | ################################################## | 100% 0.04s
                              
                              avrdude: 1 bytes of efuse written
                              avrdude: verifying efuse memory against 0xfc:
                              avrdude: load data efuse data from input file 0xfc:
                              avrdude: input file 0xfc contains 1 bytes
                              avrdude: reading on-chip efuse data:
                              
                              Reading | ################################################## | 100% 0.00s
                              
                              avrdude: verifying ...
                              avrdude: verification error, first mismatch at byte 0x0000
                                   0x04 != 0xfc
                              avrdude: verification error; content mismatch
                              
                              avrdude: safemode: efuse changed! Was fc, and is now 4
                              Would you like this fuse to be changed back? [y/n] y
                              And it does nothing else...

                              APPARENTLY last fuse can not be written

                              I'm going to use a blank ship and I will report back
                              Thanks again
                              Last edited by Per Hansson; 07-23-2016, 12:51 PM. Reason: Added CODE tags

                              Comment


                                Re: ESR meter upgrades

                                This is crazy
                                I have changed for a blank chip and now it says
                                Code:
                                C:\AVR>avrdude -c USBasp -P usb -p m328p -U flash:w:TransistorTester.hex \-U eep
                                rom:w:TransistorTester.eep \-U lfuse:w:0xf7:m \-U hfuse:w:0xd9:m \-U efuse:w:0xf
                                c:m
                                
                                avrdude: error: programm enable: target doesn't answer. 1
                                avrdude: initialization failed, rc=-1
                                     Double check connections and try again, or use -F to override
                                     this check.
                                
                                
                                avrdude done. Thank you.
                                I'm going to use an Arduino as ISP programmer and report back
                                Last edited by Per Hansson; 07-23-2016, 12:51 PM. Reason: Added CODE tags

                                Comment


                                  Re: ESR meter upgrades

                                  I'm getting a bit frustrated in here...
                                  With arduino as ISP programmer both the chip that came with the tester and a new black chip I get this

                                  Code:
                                  C:\Program Files (x86)\Arduino\hardware\tools\avr\bin>avrdude -C ../etc/avrdude.
                                  conf -c avrisp -P COM3 -b 19200 -p m8 -U flash:w:TransistorTester.hex \-U eeprom
                                  :w:TransistorTester.eep \-U lfuse:w:0xf7:m \-U hfuse:w:0xd9:m \-U efuse:w:0xfc:m
                                  
                                  
                                  avrdude: AVR device initialized and ready to accept instructions
                                  
                                  Reading | ################################################## | 100% 0.04s
                                  
                                  avrdude: Device signature = 0x000000 (retrying)
                                  
                                  Reading | ################################################## | 100% 0.03s
                                  
                                  avrdude: Device signature = 0x000000 (retrying)
                                  
                                  Reading | ################################################## | 100% 0.04s
                                  
                                  avrdude: Device signature = 0x000000
                                  avrdude: Yikes! Invalid device signature.
                                       Double check connections and try again, or use -F to override
                                       this check.
                                  
                                  
                                  avrdude done. Thank you.
                                  Last edited by Per Hansson; 07-23-2016, 12:52 PM. Reason: Added CODE tags

                                  Comment


                                    Re: ESR meter upgrades

                                    Originally posted by bmht View Post
                                    I'm getting a bit frustrated in here...
                                    With arduino as ISP programmer both the chip that came with the tester and a new black chip I get this

                                    C:\Program Files (x86)\Arduino\hardware\tools\avr\bin>avrdude -C ../etc/avrdude.
                                    conf -c avrisp -P COM3 -b 19200 -p m8 -U flash:w:TransistorTester.hex \-U eeprom
                                    :w:TransistorTester.eep \-U lfuse:w:0xf7:m \-U hfuse:w:0xd9:m \-U efuse:w:0xfc:m


                                    avrdude: AVR device initialized and ready to accept instructions

                                    Reading | ################################################## | 100% 0.04s

                                    avrdude: Device signature = 0x000000 (retrying)

                                    Reading | ################################################## | 100% 0.03s

                                    avrdude: Device signature = 0x000000 (retrying)

                                    Reading | ################################################## | 100% 0.04s

                                    avrdude: Device signature = 0x000000
                                    avrdude: Yikes! Invalid device signature.
                                    Double check connections and try again, or use -F to override
                                    this check.


                                    avrdude done. Thank you.
                                    sorry but i have not used avrdude etc yet for my ic i used a tl866 programmer the only other way that may work is adding the header and soldering wires direct to the ic socket etc, stj has some pictures regarding this as im also going to try programming this way myself in the future using avrdude etc but im reading up on the programming side of things at the minute.
                                    just a thought with your crystal are you using 22pf capacitors as well? when your programming the ic
                                    Last edited by vinceroger69; 07-23-2016, 10:37 AM.

                                    Comment


                                      Re: ESR meter upgrades

                                      this is exactly the type of bullshit that happens when people try to program chips off-board instead of in-circuit.

                                      btw:
                                      C:\AVR>avrdude -c USBasp -P usb -p m328p -U efuse:w:0xfc:m

                                      avrdude: AVR device initialized and ready to accept instructions

                                      Reading | ################################################## | 100% 0.01s

                                      avrdude: Device signature = 0x1e950f
                                      avrdude: reading input file "0xfc"
                                      avrdude: writing efuse (1 bytes):

                                      Writing | | 0% 0.00s ***faile
                                      d;
                                      Writing | ################################################## | 100% 0.04s

                                      avrdude: 1 bytes of efuse written
                                      avrdude: verifying efuse memory against 0xfc:
                                      avrdude: load data efuse data from input file 0xfc:
                                      avrdude: input file 0xfc contains 1 bytes
                                      avrdude: reading on-chip efuse data:

                                      Reading | ################################################## | 100% 0.00s

                                      avrdude: verifying ...
                                      avrdude: verification error, first mismatch at byte 0x0000
                                      0x04 != 0xfc
                                      avrdude: verification error; content mismatch

                                      avrdude: safemode: efuse changed! Was fc, and is now 4
                                      Would you like this fuse to be changed back? [y/n] y
                                      is a newer chip, 04 instead of FC is fine.

                                      so with that chip, do:
                                      avrdude -c USBasp -P usb -p m328p -U efuse:w:0x04:m

                                      Comment


                                        Re: ESR meter upgrades

                                        I rebooted the computer and connected the arduino to another USB port and now I'm getting this using Arduino ISP as programmer.

                                        Code:
                                        C:\Program Files (x86)\Arduino\hardware\tools\avr\bin>avrdude -C ../etc/avrdude.
                                        conf -c avrisp -P COM3 -b 19200 -B8 -p m8 -U flash:w:TransistorTester.hex \-U ee
                                        prom:w:TransistorTester.eep \-U lfuse:w:0xf7:m \-U hfuse:w:0xd9:m \-U efuse:w:0x
                                        fc:m
                                        
                                        avrdude: AVR device initialized and ready to accept instructions
                                        
                                        Reading | ################################################## | 100% 0.04s
                                        
                                        avrdude: Device signature = 0x1e950f
                                        avrdude: Expected signature for ATmega8 is 1E 93 07
                                             Double check chip, or use -F to override this check.
                                        
                                        avrdude done. Thank you.
                                        Last edited by Per Hansson; 07-23-2016, 12:53 PM. Reason: Added CODE tags

                                        Comment


                                          Re: ESR meter upgrades

                                          Originally posted by stj View Post
                                          this is exactly the type of bullshit that happens when people try to program chips off-board instead of in-circuit.
                                          Dear sjt I really appreciate all your help and I'm sorry if I seem stupid or dumb in here.
                                          I'm trying to learn in here and I got no clue of AVR programming besides arduino. I'm learning and reading as much as I can to be able to fix this issue.

                                          To be able to program the chip in circuit I believe I would either have to solder some wires to the chip or have an ICSP header on the circuit right? which I do not have in this circuit.

                                          Thanks again for all your help
                                          Belen
                                          Last edited by Per Hansson; 07-23-2016, 12:44 PM. Reason: fixed quote

                                          Comment

                                          Working...
                                          X