- you get to look at the result for maybe a second max then it starts testing. Is this expected?
------ Build started: Project: TransistorTester, Configuration: Debug AVR ------
Build started.
Project "TransistorTester.cproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Compiler.targets" from project "C:\Users\Shawn\Documents\Atmel Studio\7.0\TransistorTester\TransistorTester\TransistorTester.cproj" (target "Build" depends on it):
Using "RunCompilerTask" task from assembly "C:\Program Files (x86)\Atmel\Studio\7.0\Extensions\Application\AvrGCC.dll".
Task "RunCompilerTask"
Shell Utils Path C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils
C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe all --jobs 8 --output-sync
In file included from .././Transistortester.h:2:0,
from .././Calibrate_UR.c:1:
c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\util\delay.h(92,3): warning: #warning "F_CPU not defined for <util/delay.h>" [-Wcpp]
# warning "F_CPU not defined for <util/delay.h>"
^
In file included from .././config.h:1128:0,
from .././Transistortester.h:11,
from .././Calibrate_UR.c:1:
C:\Users\Shawn\Documents\Atmel Studio\7.0\TransistorTester\TransistorTester\autoconf.h(375,4): warning: #warning "SLEEP_MODE not possible with mega8" [-Wcpp]
#warning "SLEEP_MODE not possible with mega8"
^
.././Calibrate_UR.c: In function 'Calibrate_UR':
C:\Users\Shawn\Documents\Atmel Studio\7.0\TransistorTester\TransistorTester\Calibrate_UR.c(101,23): error: 'ANZ_MESS' undeclared (first use in this function)
ADCconfig.Samples = ANZ_MESS; // set to configured number of ADC samples
^
C:\Users\Shawn\Documents\Atmel Studio\7.0\TransistorTester\TransistorTester\Calibrate_UR.c(101,23): info: each undeclared identifier is reported only once for each function it appears in
make: *** [Calibrate_UR.o] Error 1
Building file: .././Calibrate_UR.c
Invoking: AVR/GNU C Compiler : 5.4.0
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe" -x c -funsigned-char -funsigned-bitfields -DDEBUG -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.3.300\include" -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=atmega8 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.3.300\gcc\dev\atmega8" -c -std=gnu99 -MD -MP -MF "Calibrate_UR.d" -MT"Calibrate_UR.d" -MT"Calibrate_UR.o" -o "Calibrate_UR.o" ".././Calibrate_UR.c"
C:\Users\Shawn\Documents\Atmel Studio\7.0\TransistorTester\TransistorTester\mega8\Makefile(340,1): error: recipe for target 'Calibrate_UR.o' failed
make: *** Waiting for unfinished jobs....
Building file: .././Battery_check.c
Invoking: AVR/GNU C Compiler : 5.4.0
In file included from .././Transistortester.h:2:0,
from .././Battery_check.c:2:
c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\util\delay.h(92,3): warning: #warning "F_CPU not defined for <util/delay.h>" [-Wcpp]
# warning "F_CPU not defined for <util/delay.h>"
^
In file included from .././config.h:1128:0,
from .././Transistortester.h:11,
from .././Battery_check.c:2:
C:\Users\Shawn\Documents\Atmel Studio\7.0\TransistorTester\TransistorTester\autoconf.h(375,4): warning: #warning "SLEEP_MODE not possible with mega8" [-Wcpp]
#warning "SLEEP_MODE not possible with mega8"
^
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe" -x c -funsigned-char -funsigned-bitfields -DDEBUG -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.3.300\include" -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=atmega8 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.3.300\gcc\dev\atmega8" -c -std=gnu99 -MD -MP -MF "Battery_check.d" -MT"Battery_check.d" -MT"Battery_check.o" -o "Battery_check.o" ".././Battery_check.c"
Finished building: .././Battery_check.c
Building file: .././AutoCheck.c
Invoking: AVR/GNU C Compiler : 5.4.0
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe" -x c -funsigned-char -funsigned-bitfields -DDEBUG -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.3.300\include" -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=atmega8 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.3.300\gcc\dev\atmega8" -c -std=gnu99 -MD -MP -MF "AutoCheck.d" -MT"AutoCheck.d" -MT"AutoCheck.o" -o "AutoCheck.o" ".././AutoCheck.c"
Finished building: .././AutoCheck.c
Building file: .././CalibrationCap.c
Invoking: AVR/GNU C Compiler : 5.4.0
In file included from .././Transistortester.h:2:0,
from .././CalibrationCap.c:23:
c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\util\delay.h(92,3): warning: #warning "F_CPU not defined for <util/delay.h>" [-Wcpp]
# warning "F_CPU not defined for <util/delay.h>"
^
In file included from .././config.h:1128:0,
from .././Transistortester.h:11,
from .././CalibrationCap.c:23:
C:\Users\Shawn\Documents\Atmel Studio\7.0\TransistorTester\TransistorTester\autoconf.h(375,4): warning: #warning "SLEEP_MODE not possible with mega8" [-Wcpp]
#warning "SLEEP_MODE not possible with mega8"
^
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe" -x c -funsigned-char -funsigned-bitfields -DDEBUG -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.3.300\include" -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=atmega8 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.3.300\gcc\dev\atmega8" -c -std=gnu99 -MD -MP -MF "CalibrationCap.d" -MT"CalibrationCap.d" -MT"CalibrationCap.o" -o "CalibrationCap.o" ".././CalibrationCap.c"
Finished building: .././CalibrationCap.c
Building file: .././ChargePin10ms.c
Invoking: AVR/GNU C Compiler : 5.4.0
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe" -x c -funsigned-char -funsigned-bitfields -DDEBUG -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.3.300\include" -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=atmega8 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.3.300\gcc\dev\atmega8" -c -std=gnu99 -MD -MP -MF "ChargePin10ms.d" -MT"ChargePin10ms.d" -MT"ChargePin10ms.o" -o "ChargePin10ms.o" ".././ChargePin10ms.c"
Finished building: .././ChargePin10ms.c
In file included from .././Transistortester.h:2:0,
from .././ChargePin10ms.c:4:
c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\util\delay.h(92,3): warning: #warning "F_CPU not defined for <util/delay.h>" [-Wcpp]
# warning "F_CPU not defined for <util/delay.h>"
^
In file included from .././config.h:1128:0,
from .././Transistortester.h:11,
from .././ChargePin10ms.c:4:
C:\Users\Shawn\Documents\Atmel Studio\7.0\TransistorTester\TransistorTester\autoconf.h(375,4): warning: #warning "SLEEP_MODE not possible with mega8" [-Wcpp]
#warning "SLEEP_MODE not possible with mega8"
^
Building file: .././CheckRotaryEncoder.c
Invoking: AVR/GNU C Compiler : 5.4.0
In file included from .././Transistortester.h:2:0,
from .././CheckRotaryEncoder.c:5:
c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\util\delay.h(92,3): warning: #warning "F_CPU not defined for <util/delay.h>" [-Wcpp]
# warning "F_CPU not defined for <util/delay.h>"
^
In file included from .././config.h:1128:0,
from .././Transistortester.h:11,
from .././CheckRotaryEncoder.c:5:
C:\Users\Shawn\Documents\Atmel Studio\7.0\TransistorTester\TransistorTester\autoconf.h(375,4): warning: #warning "SLEEP_MODE not possible with mega8" [-Wcpp]
#warning "SLEEP_MODE not possible with mega8"
^
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe" -x c -funsigned-char -funsigned-bitfields -DDEBUG -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.3.300\include" -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=atmega8 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.3.300\gcc\dev\atmega8" -c -std=gnu99 -MD -MP -MF "CheckRotaryEncoder.d" -MT"CheckRotaryEncoder.d" -MT"CheckRotaryEncoder.o" -o "CheckRotaryEncoder.o" ".././CheckRotaryEncoder.c"
Finished building: .././CheckRotaryEncoder.c
Building file: .././CheckUJT.c
Invoking: AVR/GNU C Compiler : 5.4.0
In file included from .././Transistortester.h:2:0,
from .././CheckUJT.c:1:
c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\util\delay.h(92,3): warning: #warning "F_CPU not defined for <util/delay.h>" [-Wcpp]
# warning "F_CPU not defined for <util/delay.h>"
^
In file included from .././config.h:1128:0,
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe" -x c -funsigned-char -funsigned-bitfields -DDEBUG -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.3.300\include" -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=atmega8 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.3.300\gcc\dev\atmega8" -c -std=gnu99 -MD -MP -MF "CheckUJT.d" -MT"CheckUJT.d" -MT"CheckUJT.o" -o "CheckUJT.o" ".././CheckUJT.c"
Finished building: .././CheckUJT.c
from .././Transistortester.h:11,
from .././CheckUJT.c:1:
C:\Users\Shawn\Documents\Atmel Studio\7.0\TransistorTester\TransistorTester\autoconf.h(375,4): warning: #warning "SLEEP_MODE not possible with mega8" [-Wcpp]
#warning "SLEEP_MODE not possible with mega8"
^
Building file: .././CheckPins.c
Invoking: AVR/GNU C Compiler : 5.4.0
In file included from .././Transistortester.h:2:0,
from .././CheckPins.c:3:
c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\util\delay.h(92,3): warning: #warning "F_CPU not defined for <util/delay.h>" [-Wcpp]
# warning "F_CPU not defined for <util/delay.h>"
^
In file included from .././config.h:1128:0,
from .././Transistortester.h:11,
from .././CheckPins.c:3:
C:\Users\Shawn\Documents\Atmel Studio\7.0\TransistorTester\TransistorTester\autoconf.h(375,4): warning: #warning "SLEEP_MODE not possible with mega8" [-Wcpp]
#warning "SLEEP_MODE not possible with mega8"
^
.././CheckPins.c: In function 'CheckPins':
C:\Users\Shawn\Documents\Atmel Studio\7.0\TransistorTester\TransistorTester\CheckPins.c(88,3): warning: #warning "hFE measurement without common emitter circuit" [-Wcpp]
#warning "hFE measurement without common emitter circuit"
^
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe" -x c -funsigned-char -funsigned-bitfields -DDEBUG -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.3.300\include" -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=atmega8 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.3.300\gcc\dev\atmega8" -c -std=gnu99 -MD -MP -MF "CheckPins.d" -MT"CheckPins.d" -MT"CheckPins.o" -o "CheckPins.o" ".././CheckPins.c"
Finished building: .././CheckPins.c
Done executing task "RunCompilerTask" -- FAILED.
Done building target "CoreBuild" in project "TransistorTester.cproj" -- FAILED.
Done building project "TransistorTester.cproj" -- FAILED.
Build FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
------ Build started: Project: TransistorTester, Configuration: Debug AVR ------
Build started.
Project "TransistorTester.cproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Compiler.targets" from project "C:\Users\Shawn\Documents\Atmel Studio\7.0\TransistorTester\TransistorTester\TransistorTester.cproj" (target "Build" depends on it):
Using "RunCompilerTask" task from assembly "C:\Program Files (x86)\Atmel\Studio\7.0\Extensions\Application\AvrGCC.dll".
Task "RunCompilerTask"
Shell Utils Path C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils
C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe -C "C:\Users\Shawn\Documents\Atmel Studio\7.0\TransistorTester\TransistorTester\mega8" -f "Makefile" all
make: Entering directory 'C:/Users/Shawn/Documents/Atmel Studio/7.0/TransistorTester/TransistorTester/mega8'
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The system cannot find the path specified.
avr-gcc -Wall -DLCD_ST7565_H_FLIP=1 -DLCD_ST7565_H_OFFSET=4 -DLCD_ST7565_V_FLIP=0 -DFONT_7X12 -DICON_TYPE=3 -DBIG_TP -DREF_C_KORR=4 -DREF_L_KORR=40 -DC_H_KORR=5 -DRMETER_WITH_L -DCAP_EMPTY_LEVEL=4 -DESR_ZERO=29 -DNO_AREF_CAP -DUSE_EEPROM -DPULLUP_DISABLE -DANZ_MESS=44 -DPOWER_OFF -DBAT_OUT=150 -DBAT_POOR=6400 -mcall-prologues -DINHIBIT_SLEEP_MODE -I. -DF_CPU=8000000UL -DF_CPU_HZ=8000000 -DMHZ_CPU=8 -mmcu=atmega8 -gdwarf-2 -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT lcd_hw_4_bit.o -MF ../Obj/mega8/dep/lcd_hw_4_bit.o.d -ffunction-sections -fdata-sections -c -o ../Obj/mega8/lcd_hw_4_bit.o ../lcd_hw_4_bit.S
C:\Users\Shawn\Documents\Atmel Studio\7.0\TransistorTester\TransistorTester\lcd_hw_4_bit.S(8,0): error: opening dependency file ../Obj/mega8/dep/lcd_hw_4_bit.o.d: No such file or directory
^
compilation terminated.
make: *** [../Obj/mega8/lcd_hw_4_bit.o] Error 1
C:\Users\Shawn\Documents\Atmel Studio\7.0\TransistorTester\TransistorTester\finish.mk(3,1): error: recipe for target '../Obj/mega8/lcd_hw_4_bit.o' failed
make: Leaving directory 'C:/Users/Shawn/Documents/Atmel Studio/7.0/TransistorTester/TransistorTester/mega8'
Done executing task "RunCompilerTask" -- FAILED.
Done building target "CoreBuild" in project "TransistorTester.cproj" -- FAILED.
Done building project "TransistorTester.cproj" -- FAILED.
Build FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
Having spent so much time reading in order to understand how to upgrade and flash my AY-AT transistor tester I decided to document as much as possible of what I've learned: https://github.com/blurpy/transistor-tester
Maybe someone else will find it useful
The voltage at pin 28 is not right. while I have 8.7 V battery, the pin at 28 is only 7.1 V. So the proc thinks that the battery is dead and shutdown.
7.1V at pin 28? The ATmega doesn't like any voltage higher than 5V and the AY-AT has a 4:1 voltage divider at pin 28 for measuring the battery voltage. Or do you mean that the tester displays a battery voltage of 7.1V? In that case the voltage at pin 28 should be around 1.77V.
The voltage at pin 28 is not right. while I have 8.7 V battery, the pin at 28 is only 7.1 V. So the proc thinks that the battery is dead and shutdown.What current does your device draw on 9V battery?
AlcidePiR2
I ask you one more time - what current does the circuit consume from a 9V battery?
Check the condition of the 7550 stabilizer as well as the diode assembly SRV05-4 and the 6V8A suppressor.
My bet is on the SRV05-4.
My bet is on the SRV05-4.
"The syntax of the command is incorrect." can be caused by a bad PATH variable, i.e. some programs aren't found.
However, I still need to fix µ and Ω not showing up with the correct character on the display.
avr-gcc -mmcu=atmega328 -Wall -mcall-prologues -I. -Ibitmaps -DF_CPU=16000000UL -DOSC_STARTUP=16384 -gdwarf-2 -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT display.o -MF dep/display.o.d -c display.c
display.c: In function 'Display_HexByte':
display.c:403:3: warning: implicit declaration of function 'Display_HexDigit'; did you mean 'Display_HexByte'? [-Wimplicit-function-declaration]
403 | Display_HexDigit(Digit);
| ^~~~~~~~~~~~~~~~
| Display_HexByte
avr-gcc -mmcu=atmega328 -Wl,-Map=ComponentTester.map main.o user.o pause.o adjust.o ADC.o probes.o display.o resistor.o cap.o semi.o inductor.o tools_misc.o tools_signal.o SPI.o I2C.o serial.o commands.o OneWire.o IR_RX.o IR_TX.o DHTxx.o HD44780.o ST7565R.o ILI9341.o PCD8544.o ST7735.o ST7920.o SSD1306.o ILI9163.o STE2007.o PCF8814.o ST7036.o VT100.o ADS7843.o wait.o -o ComponentTester
/usr/local/opt/avr-binutils/bin/avr-ld: display.o: in function `Display_HexByte':
/Volumes/DATA/FIRMWARE/ComponentTester-1.39m/display.c:403: undefined reference to `Display_HexDigit'
/usr/local/opt/avr-binutils/bin/avr-ld: /Volumes/DATA/FIRMWARE/ComponentTester-1.39m/display.c:407: undefined reference to `Display_HexDigit'
collect2: error: ld returned 1 exit status
make: *** [ComponentTester] Error 1