I have seceral brand new Atmega32a microprocessors, and I have boards already made, and programming started, and I cannot get it to read the chip ID. When I use any programer, it says the chip is ready to accept data, and then it exits, giving me the following error:
Arduino: 1.8.19 (Windows 7), Board: "ATmega32, No bootloader, EEPROM retained, Standard pinout, BOD 2.7V, LTO disabled, External 8 MHz"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Kims\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Kims\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Kims\Documents\Arduino\libraries -fqbn=MightyCore:avr:32:bootloader=no_bootloader,eeprom=keep,pinout=standard,BOD=2v7,LTO=Os,clock=8MHz_external -vid-pid=2341_0043 -ide-version=10819 -build-path C:\Users\Kims\AppData\Local\Temp\arduino_build_565344 -warnings=all -build-cache C:\Users\Kims\AppData\Local\Temp\arduino_cache_885821 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\Kims\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\Kims\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=C:\Users\Kims\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino18 -prefs=runtime.tools.avrdude-6.3.0-arduino18.path=C:\Users\Kims\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino18 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Kims\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\Kims\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -verbose I:\1A CTC SIGNAL SCHEMATICS\CONTROL POINT FIRMWARE\RIGHT HAND TURNOUT CONTROL POINT\RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware\RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Kims\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Kims\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Kims\Documents\Arduino\libraries -fqbn=MightyCore:avr:32:bootloader=no_bootloader,eeprom=keep,pinout=standard,BOD=2v7,LTO=Os,clock=8MHz_external -vid-pid=2341_0043 -ide-version=10819 -build-path C:\Users\Kims\AppData\Local\Temp\arduino_build_565344 -warnings=all -build-cache C:\Users\Kims\AppData\Local\Temp\arduino_cache_885821 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\Kims\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\Kims\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=C:\Users\Kims\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino18 -prefs=runtime.tools.avrdude-6.3.0-arduino18.path=C:\Users\Kims\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino18 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Kims\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\Kims\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -verbose I:\1A CTC SIGNAL SCHEMATICS\CONTROL POINT FIRMWARE\RIGHT HAND TURNOUT CONTROL POINT\RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware\RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware.ino
Using board '32' from platform in folder: C:\Users\Kims\AppData\Local\Arduino15\packages\MightyCore\hardware\avr\2.1.3
Using core 'MCUdude_corefiles' from platform in folder: C:\Users\Kims\AppData\Local\Arduino15\packages\MightyCore\hardware\avr\2.1.3
Warning: Board ATmega32-Arduino-master:mega32:mega32-1 doesn't define a 'build.board' preference. Auto-set to: MEGA32_MEGA32-1
Warning: Board ATmega32-Arduino-master:mega32:mega32-8 doesn't define a 'build.board' preference. Auto-set to: MEGA32_MEGA32-8
Warning: Board ATmega32-Arduino-master:mega32:mega32-16 doesn't define a 'build.board' preference. Auto-set to: MEGA32_MEGA32-16
Warning: Board arduino:avr:mega32-8 doesn't define a 'build.board' preference. Auto-set to: AVR_MEGA32-8
Warning: Board arduino:avr:mega32-1 doesn't define a 'build.board' preference. Auto-set to: AVR_MEGA32-1
Warning: Board arduino:avr:mega32-16 doesn't define a 'build.board' preference. Auto-set to: AVR_MEGA32-16
Detecting libraries used...
"C:\\Users\\Kims\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega32 -DF_CPU=8000000L -DARDUINO=10819 -DARDUINO_AVR_ATmega32 -DARDUINO_ARCH_AVR "-IC:\\Users\\Kims\\AppData\\Local\\Arduino15\\packages\\MightyCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\Kims\\AppData\\Local\\Arduino15\\packages\\MightyCore\\hardware\\avr\\2.1.3\\variants\\standard" "C:\\Users\\Kims\\AppData\\Local\\Temp\\arduino_build_565344\\sketch\\RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware.ino.cpp" -o nul
Alternatives for Servo.h: [Servo@1.1.8 Servo@1.1.1]
ResolveLibrary(Servo.h)
-> candidates: [Servo@1.1.8 Servo@1.1.1]
"C:\\Users\\Kims\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega32 -DF_CPU=8000000L -DARDUINO=10819 -DARDUINO_AVR_ATmega32 -DARDUINO_ARCH_AVR "-IC:\\Users\\Kims\\AppData\\Local\\Arduino15\\packages\\MightyCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\Kims\\AppData\\Local\\Arduino15\\packages\\MightyCore\\hardware\\avr\\2.1.3\\variants\\standard" "-IC:\\Users\\Kims\\AppData\\Local\\Arduino15\\packages\\MightyCore\\hardware\\avr\\2.1.3\\libraries\\Servo\\src" "C:\\Users\\Kims\\AppData\\Local\\Temp\\arduino_build_565344\\sketch\\RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware.ino.cpp" -o nul
Using cached library dependencies for file: C:\Users\Kims\AppData\Local\Arduino15\packages\MightyCore\hardware\avr\2.1.3\libraries\Servo\src\Servo.cpp
Generating function prototypes...
"C:\\Users\\Kims\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega32 -DF_CPU=8000000L -DARDUINO=10819 -DARDUINO_AVR_ATmega32 -DARDUINO_ARCH_AVR "-IC:\\Users\\Kims\\AppData\\Local\\Arduino15\\packages\\MightyCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\Kims\\AppData\\Local\\Arduino15\\packages\\MightyCore\\hardware\\avr\\2.1.3\\variants\\standard" "-IC:\\Users\\Kims\\AppData\\Local\\Arduino15\\packages\\MightyCore\\hardware\\avr\\2.1.3\\libraries\\Servo\\src" "C:\\Users\\Kims\\AppData\\Local\\Temp\\arduino_build_565344\\sketch\\RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware.ino.cpp" -o "C:\\Users\\Kims\\AppData\\Local\\Temp\\arduino_build_565344\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\Kims\\AppData\\Local\\Temp\\arduino_build_565344\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\Kims\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega32 -DF_CPU=8000000L -DARDUINO=10819 -DARDUINO_AVR_ATmega32 -DARDUINO_ARCH_AVR "-IC:\\Users\\Kims\\AppData\\Local\\Arduino15\\packages\\MightyCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\Kims\\AppData\\Local\\Arduino15\\packages\\MightyCore\\hardware\\avr\\2.1.3\\variants\\standard" "-IC:\\Users\\Kims\\AppData\\Local\\Arduino15\\packages\\MightyCore\\hardware\\avr\\2.1.3\\libraries\\Servo\\src" "C:\\Users\\Kims\\AppData\\Local\\Temp\\arduino_build_565344\\sketch\\RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware.ino.cpp" -o "C:\\Users\\Kims\\AppData\\Local\\Temp\\arduino_build_565344\\sketch\\RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware.ino.cpp.o"
I:\1A CTC SIGNAL SCHEMATICS\CONTROL POINT FIRMWARE\RIGHT HAND TURNOUT CONTROL POINT\RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware\RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware.ino: In function 'void loop()':
I:\1A CTC SIGNAL SCHEMATICS\CONTROL POINT FIRMWARE\RIGHT HAND TURNOUT CONTROL POINT\RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware\RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware.ino:87:4: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(pos <= 116){
^~
Compiling libraries...
Compiling library "Servo"
Using previously compiled file: C:\Users\Kims\AppData\Local\Temp\arduino_build_565344\libraries\Servo\Servo.cpp.o
Compiling core...
Using precompiled core: C:\Users\Kims\AppData\Local\Temp\arduino_cache_885821\core\core_3a5f066219652446b24b40b2539c9d55.a
Linking everything together...
"C:\\Users\\Kims\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -Wall -Wextra -Os -Wl,--gc-sections,--section-start=.FAR_MEM1=0x10000 -mmcu=atmega32 -o "C:\\Users\\Kims\\AppData\\Local\\Temp\\arduino_build_565344/RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware.ino.elf" "C:\\Users\\Kims\\AppData\\Local\\Temp\\arduino_build_565344\\sketch\\RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware.ino.cpp.o" "C:\\Users\\Kims\\AppData\\Local\\Temp\\arduino_build_565344\\libraries\\Servo\\Servo.cpp.o" "C:\\Users\\Kims\\AppData\\Local\\Temp\\arduino_build_565344/..\\arduino_cache_885821\\core\\core_3a5f066219652446b24b40b2539c9d55.a" "-LC:\\Users\\Kims\\AppData\\Local\\Temp\\arduino_build_565344" -lm
"C:\\Users\\Kims\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\Kims\\AppData\\Local\\Temp\\arduino_build_565344/RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware.ino.elf" "C:\\Users\\Kims\\AppData\\Local\\Temp\\arduino_build_565344/RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware.ino.eep"
"C:\\Users\\Kims\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\Kims\\AppData\\Local\\Temp\\arduino_build_565344/RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware.ino.elf" "C:\\Users\\Kims\\AppData\\Local\\Temp\\arduino_build_565344/RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware.ino.hex"
cmd /C "C:\\Users\\Kims\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objdump" --disassemble --source --line-numbers --demangle --section=.text "C:\\Users\\Kims\\AppData\\Local\\Temp\\arduino_build_565344/RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware.ino.elf" > "C:\\Users\\Kims\\AppData\\Local\\Temp\\arduino_build_565344/RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware.ino_atmega32_8000000L.lst"
Multiple libraries were found for "Servo.h"
Used: C:\Users\Kims\AppData\Local\Arduino15\packages\MightyCore\hardware\avr\2.1.3\libraries\Servo
Not used: C:\Program Files (x86)\Arduino\libraries\Servo
Using library Servo at version 1.1.1 in folder: C:\Users\Kims\AppData\Local\Arduino15\packages\MightyCore\hardware\avr\2.1.3\libraries\Servo
"C:\\Users\\Kims\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\Kims\\AppData\\Local\\Temp\\arduino_build_565344/RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware.ino.elf"
Sketch uses 2676 bytes (8%) of program storage space. Maximum is 32768 bytes.
Global variables use 52 bytes (2%) of dynamic memory, leaving 1996 bytes for local variables. Maximum is 2048 bytes.
C:\Users\Kims\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino18/bin/avrdude -CC:\Users\Kims\AppData\Local\Arduino15\packages\MightyCore\hardware\avr\2.1.3/avrdude.conf -v -patmega32 -cstk500v1 -PCOM18 -b19200 -Uflash:w:C:\Users\Kims\AppData\Local\Temp\arduino_build_565344/RIGHT_HAND_TURNOUT_CONTROL_POINT_Firmware.ino.with_bootloader.hex:i
avrdude: Version 6.3-20201216
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\Kims\AppData\Local\Arduino15\packages\MightyCore\hardware\avr\2.1.3/avrdude.conf"
Using Port : COM18
Using Programmer : stk500v1
Overriding Baud Rate : 19200
AVR Part : ATmega32
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 4 10 64 0 no 1024 4 0 9000 9000 0xff 0xff
flash 33 6 64 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
efuse 0 0 0 0 no 0 0 0 0 0 0x00 0x00
lock 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
calibration 0 0 0 0 no 4 0 0 0 0 0x00 0x00
Programmer Type : STK500
Description : Atmel STK500 Version 1.x firmware
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x000000 (retrying)
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x000000 (retrying)
An error occurred while uploading the sketch
Reading | ################################################## | 100% 0.02s
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.
```
I really need some help with this. I am 2 months behind in my product development, and I am completely stuck.
Thank you in advance, for all your help!!!
Taz...