Author Topic: LCR TC1 FIX BY REPLACING ATMEGA324PA AND REFIT FIRMWARE  (Read 820 times)

0 Members and 1 Guest are viewing this topic.

Offline nnannosTopic starter

  • Contributor
  • Posts: 15
LCR TC1 FIX BY REPLACING ATMEGA324PA AND REFIT FIRMWARE
« on: December 22, 2024, 09:47:17 am »
Hello, I have the lcr tc1(from banggood) and I put 12v ac to measure in pins 1,3 so now the pin 3 is not working, from the schematic seems that pin 3 goes throuugh a transistor into atmega324pa so I have to replace the Atmega324pa. What is the procedure to reprogram the atmega324pa? I have the stk500 programmer can i solder the atmega on the tc1 and then fit the firmware with stk500?
Thank you in advance
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8259
  • Country: de
  • A qualified hobbyist ;)
Re: LCR TC1 FIX BY REPLACING ATMEGA324PA AND REFIT FIRMWARE
« Reply #1 on: December 22, 2024, 10:11:12 am »
There are several versions of the TC1. Could you please post pictures of the PCB's front and back side?
 

Offline nnannosTopic starter

  • Contributor
  • Posts: 15
Re: LCR TC1 FIX BY REPLACING ATMEGA324PA AND REFIT FIRMWARE
« Reply #2 on: December 22, 2024, 11:15:48 am »
Here are some pics(It has atmega324pa-au as U1 main processor and as U4 stc 15w104, also noticed the DZ2 chip srv05-04 has issue between pins 3,4(the diode is burnt)
« Last Edit: December 22, 2024, 11:18:52 am by nnannos »
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8259
  • Country: de
  • A qualified hobbyist ;)
Re: LCR TC1 FIX BY REPLACING ATMEGA324PA AND REFIT FIRMWARE
« Reply #3 on: December 22, 2024, 11:59:41 am »
DZ1 and DZ2 are used as input protection. You can remove both and check again. Your tester is one of the early versions with an additional control MCU (U4). If you want to replace the ATmega you need to go for one of the OSHW firmwares and also take care about U4. Either you reprogram U4 (https://github.com/atar-axis/tc1-u4) or replace it with a simple circuit (https://github.com/madires/Transistortester-Warehouse/blob/master/Hardware/TC1-Mod.pdf).
 

Offline nnannosTopic starter

  • Contributor
  • Posts: 15
Re: LCR TC1 FIX BY REPLACING ATMEGA324PA AND REFIT FIRMWARE
« Reply #4 on: December 25, 2024, 12:36:13 am »
Hi again, although I managed to program the U4, I have issues on programming the U1 ic. I try to make the file before uploading and I get this:
avr-gcc -mmcu=atmega324p -Wall -I. -Ibitmaps -DF_CPU=16000000UL -DOSC_STARTUP=16384 -gdwarf-2 -std=gnu99 -Os -mcall-prologues -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT main.o -MF dep/main.o.d -c main.c
In file included from config.h:1646:0,
                 from main.c:24:
config_support.h:100:4: σφάλμα: #error <<< No display module enabled! >>>
   #error <<< No display module enabled! >>>
    ^
make: *** [Makefile:226: main.o] Error 1

Any idea why?
Thank you in advance
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8259
  • Country: de
  • A qualified hobbyist ;)
Re: LCR TC1 FIX BY REPLACING ATMEGA324PA AND REFIT FIRMWARE
« Reply #5 on: December 25, 2024, 11:08:15 am »
Because no display module is configured?
 
The following users thanked this post: tooki

Offline nnannosTopic starter

  • Contributor
  • Posts: 15
Re: LCR TC1 FIX BY REPLACING ATMEGA324PA AND REFIT FIRMWARE
« Reply #6 on: December 25, 2024, 10:18:46 pm »
Managed to upload a ready compiled firmware(Markus) but keeps recycling in metering(shows the value of part the shows battery voltage and again the same, without pressing the button to measure. Is this how this firmware works or is there an issue on my device?
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8259
  • Country: de
  • A qualified hobbyist ;)
Re: LCR TC1 FIX BY REPLACING ATMEGA324PA AND REFIT FIRMWARE
« Reply #7 on: December 26, 2024, 09:05:13 am »
Works as intented. From the README:

Quote
* Power-On

A long key press while starting the tester selects the auto-hold mode. In that
mode the tester waits for a short key press after displaying a result before
it will continue. Otherwise the tester chooses the continuous (looping) mode by
default. You can reverse the operation mode selection in config.h (UI_AUTOHOLD).

Quote
+ Test Key

The test key starts the tester and also controls the user interface. For that
purpose the tester differentiates between a short and a long key press (0.3 s).
 

Offline nnannosTopic starter

  • Contributor
  • Posts: 15
Re: LCR TC1 FIX BY REPLACING ATMEGA324PA AND REFIT FIRMWARE
« Reply #8 on: December 30, 2024, 07:40:53 am »
What is the procedure to create the hex and eep files from the m-firmware 1.54? In the make file I have to suggest the tool and I do not understand why the tool is critical(I use the stk500 for uploading using ISP port). So what is the procedure to compile and create the files?

Thank you in advance
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8259
  • Country: de
  • A qualified hobbyist ;)
Re: LCR TC1 FIX BY REPLACING ATMEGA324PA AND REFIT FIRMWARE
« Reply #9 on: December 30, 2024, 09:26:04 am »
Please see https://github.com/madires/Transistortester-Warehouse/tree/master/Documentation/English. You'll need an AVR C compiler plus toolchain.
 

Offline nnannosTopic starter

  • Contributor
  • Posts: 15
Re: LCR TC1 FIX BY REPLACING ATMEGA324PA AND REFIT FIRMWARE
« Reply #10 on: Yesterday at 12:20:56 am »
Hi again, i managed to find the original firmware for Atmega324pa, but i have replaced the u4(stc15w104) firmware with the alternative, so i am getting only boot screen and stuck there not going to measuring state. I include the main.c which is the u4 source file for alternative firmware. Can someone help me modify the u4(main.c) firmware in order to have the original chinese firmware run again on my lcr tc1?

Thank you in advance.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf