LCR TC1 FIX BY REPLACING ATMEGA324PA AND REFIT FIRMWARE - Page 1
Forum section: electronics / testgear

author: nnannos
author_rank: Contributor
timestamp: December 22, 2024, 09:47:17 am
content: 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

author: madires
author_rank: Super Contributor
timestamp: December 22, 2024, 10:11:12 am
content: There are several versions of the TC1. Could you please post pictures of the PCB's front and back side?

author: nnannos
author_rank: Contributor
timestamp: December 22, 2024, 11:15:48 am
content: 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)

author: madires
author_rank: Super Contributor
timestamp: December 22, 2024, 11:59:41 am
content: 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).

author: nnannos
author_rank: Contributor
timestamp: December 25, 2024, 12:36:13 am
content: 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.cIn 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 1Any idea why?Thank you in advance

author: madires
author_rank: Super Contributor
timestamp: December 25, 2024, 11:08:15 am
content: Because no display module is configured?

author: nnannos
author_rank: Contributor
timestamp: December 25, 2024, 10:18:46 pm
content: 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?

author: madires
author_rank: Super Contributor
timestamp: December 26, 2024, 09:05:13 am
content: Works as intented. From the README:QuoteQuote

author: nnannos
author_rank: Contributor
timestamp: December 30, 2024, 07:40:53 am
content: 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

author: madires
author_rank: Super Contributor
timestamp: December 30, 2024, 09:26:04 am
content: Please seehttps://github.com/madires/Transistortester-Warehouse/tree/master/Documentation/English. You'll need an AVR C compiler plus toolchain.

author: nnannos
author_rank: Contributor
timestamp: January 07, 2025, 12:20:56 am
content: 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.