I have got an ATmega168P (and a ATMega328P), each one on some chinese aircraft control board.
The m168p was working fine with UsbAsp, but I wanted to use it with a Serial-to-usb converter (FTDI, FT232RL) by burning a bootloader, so I tried a lot of things with Arduino IDE and avrdude but it didn't work, and now even USBASP communication doesn't work. I couldn't say what I've done, there were so many commands and being desperate, I tried everything.
avrdude: error: programm enable: target doesn't answer.
Seems like the board is dead now.
The other board (m328p) never worked so maybe there's the same communication problem.
I don't know what to do to make it work again with USBASP. Has anyone some idea ?
Is your USBasp still okay ?
Can you run avrdude from the command line ? with the -vvv option you get a lot information.
Do you know the schematic ? Perhaps one pin is connected to something that makes it hard for the USBasp.
I think my USBasp is still ok. Green power led is still on, and the red TX led blink once when entering avrdude command in cmd.
It is pretty sure I have done a mistake.
I know the shematics and I didn't change anything so it should work with that wiring.
It tried the verbose output -vvv ; I'm getting a lot ot information, especially about the fuses, but I don't understand anything. Maybe you will ? And I still get "avrdude: error: programm enable: target doesn't answer. 1" at the end of the cmd output.
I attached the cmd output to this post as txt file.