Author Options:

How to program atmega16 from a dev board using serial port? Answered

I am a beginner with microcontrolllers. I have a dev board with serial interface but when I connect it to PC, I can't program it,  avrdude refuses to detect it. Am I missing something? It has an atmega16L 8PU, and a MAX232N but no crystal. Can't I directly program it using serial port with PC?



Best Answer 7 years ago

Same problem with me.. I am using Windows 7 32-bit OS, I have this Atmega16 dev board. While programming it with the serial cable using pony prog 2.07 v, it gives me the error of Unknown device or device missing (-24). I have tried everything, configuration and security bits. I dont know whether my pc is detecting it or not.
I have tried it with Windows XP as well, but the same problem, it detects the dev board, but while loading hex file to controller, it gives me the same error. Please do help me asap.


Answer 7 years ago

I gave up and ended up using an external serial programmer.


7 years ago

What OS are you running? Windows 64Bit will cause many problems when trying to program over the serial port.


Answer 7 years ago

Thanks for replying, I am using Windows 7 Home Premium 32 bit edition, I also ran install_giveio.bat and it successfully installed. I think I am not using the correct programmer. What parameters should I give ti avrdude? I tried -ponyser, -dasa, -dasa3 but same problem each time.


Answer 7 years ago

I'm sorry that I can't help you then. I've encountered problems myself using Windows 64Bit, but it works fine with Windows XP 32Bit.
Perhaps you could specify which dev-board exactly you are using so others can help you better.
Another option would be the Atmel AVR ISPMK II-Programmer, with that you don't need tools like avrdude or ponyprog (perhaps you could try this one for serial programming because it worked well for me). You can program your AVR directly over the AVR-Studio and it's not too expensive.