Compiling a program for ATMEGA88PA?

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Right now, I have a few ATMEGA88PAs and I tried writing an LED blinking code in AVRStudio only to find that ATMEGA88PA is not supported but ATMEGA88P was. So I changed the device to ATMEGA88P in AVRStudio and the code compiled fine after that. Now, AVRdude does not list either ATMEGA88PA or ATMEGA88P. Reluctantly, I had to choose ATMEGA88 to burn the code but as expected it failed with the error "wrong responds size".

Can anybody help me to know how to get a small program for ATMEGA88PA compiled with WinAVR+AVRStudio and burned with AVRdude?

P.S. Replacing the ATMEGA88PA with another micro is not an option for me so don't advice to do that :wink:

Bittu Sarkar
Dept. of Computer Science & Engg.
Indian Institute of Technology, Kharagpur

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Avrdude does have ATMEGA88 ( -p m88 ).

If your copy does not, I recommend that you install the latest 20100110 WinAVR package.

The ATmega88P has signature 1E 93 0F
The ATmega88A has signature 1E 93 0A

You can alternatively just add the 88PA entry to avrdude.conf. An exact copy of the mega88 with name change and signature change.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks david. It worked!! :D
Compilation was successful with ATMEGA88PA device by installing the latest WinAVR.
AVRdude burnt the code in the micro nicely by modifying the avrdude.conf file as you said.

Just one more question. I just burnt a simple LED blinking code with only the signature and the device name changed in the conf file. But there may be some differences between ATMEGA88 and ATMEGA88PA like register addresses may differ (i don't know frankly, just guessing). So isn't it also necessary to make those changes too in the .conf file?

Bittu Sarkar
Dept. of Computer Science & Engg.
Indian Institute of Technology, Kharagpur

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No. AFIK the ISP procedure will be identical.

You can always check the official mega88P migration doc from Atmel.

David.