EEVblog Electronics Community Forum

Electronics => Microcontrollers => Topic started by: MathWizard on November 25, 2024, 10:12:09 am

Title: Did I brick this ATmega169PA ??
Post by: MathWizard on November 25, 2024, 10:12:09 am
I'm trying to program an ATmega169PA with an ArduinoISP (as a STK500v1), with AVRDudess. I've used those for an ATtiny13A and didn't have this problem.

Using the SPI pins, and no external oscillator for the ATmega, the default should be the internal 8MHz DIV 8 anyways tho, and just trying to detect the chip, or program it, I get the error

Quote
>>>: avrdude.exe -c stk500v1 -p m169pa -P COM3 -b 19200 -U flash:w:"D:\MCU prog\SimulIDE_1.1.0-SR0_Win64\saves\ATmega169PA K197 DMM LED mod.hex":i
Device signature = 00 00 00 (retrying)
Device signature = 00 00 00 (retrying)
Device signature = 00 00 00
Error: invalid device signature
Error: expected signature for ATmega169PA is 1E 94 05
  - double check connections and try again, or use -F to carry on regardless

Avrdude done.  Thank you.
>>>: avrdude.exe -c stk500v1 -P COM3 -b 19200 -p m8
ERROR: Unknown signature 000000





I bought a few off ebay, for about the going price. I soldered 1 onto a breakout board with a Yxxx 858D hotair station, set on 350C=~660F, (so about the same temp as my iron most the time). I knocked it and had to re-float it back into position but it went pretty smooth. But IDK, maybe I cooked it too long. The chip is really really thin. I used a fair bit of flux, I've treated chips worse and had them survive. But yeah this one is a very thin TQFP-64 package.

Early this fall, I removed one of those same chips from a thermostat, and later put it back and it still works as good as before (it has some other problem tho).

I touched up all the pins, and cleaned them all with a toothbrush and ISP, and checked all pins for continuity.

Then soldered 3 GND pins together, and 2 Vcc's together, and added a 100nF cap on the breakout PCB.


For the 4-wire SPI , I've tried using the /RESET pin besides the /CS or as they call it /SS, and no luck.


IDK that much about the ArduinoISP, but I had a whole bunch of stuff added onto ArduinoIDE for AVR and STM ARM chips, and that's what turned my Arduino Uno into an ISP.

But I'm bare-metal programming, and not using the ArduinoIDE, and AVRDudess is up to date.

In AVRdudess, the ATmega169PA is there, and all my other COM/USB settings are the same.

So what might be going on, besides maybe I cooked the chip ?? I could try another one, maybe just using the iron.






I carefully soldered up another atmega, on another breakout PCB, and besides the 4-SPI wires, I put a pullup and 1uF cap on the /Reset pin, I still get nothing. I flipped the MOSI/MISO just in case, but nothing, (but I know AVRdudess still works right now with an attiny, and my USB cable is new and a good one.





No emergency anymore,

I have an new XGecu T48, that I finally tired, and that worked, and the software was easy enough to flash a program onto both ATmega's and they both work.

I was worried they might have been sold defective, but nope they work.