Jump to content
IGNORED

Help! reprogramming the Atmega


Larry

Recommended Posts

My SIO2SD stopped working after updating the firmware to V2.5 via my programmer. My MiniPro programmer supposedly will program the Atmega32, but I get a non-functional device, even though I get a SUCCESSFUL prompt after programming. All I get is a blank LCD screen.

 

I'm using the 2.5 "ALL" .bin file which is 30,720 bytes. All the 2.x firmware .bin files are this same length. The programmer identifies the IC as Atmega32 with $8000 + $400 bytes. I don't understand the $400 bytes. Is that some type of ram that is not involved in the reprogramming? I'm using fuse byte settings of (low) $3F and (high) $C3. I've loaded the .bin file into the buffer and programmed it. Does anyone have a table available of the fuse byte settings for the various firware releases?

 

Lock bit is 0, BTW. I must be doing something wrong such as missing a setting somewhere. Anyone have experience programming these that can offer any suggestions? Can't believe that the Atmega died immediately after the internal programming.

 

Thanks!

-Larry

 

Edit: Some success: I double-checked everything and re-programmed it again with 2.5. Now I'm back to "Card Init Error." So I'm going to go back and reprogram with the last one that worked which is 2.2 or 2.3. Can someone tell me the fuse settings for 2.2? I believe that 2.3 uses the same fuse settings as 2.5.

Link to comment
Share on other sites

Hi,

 

I'm using the 2.5 "ALL" .bin file which is 30,720 bytes. All the 2.x firmware .bin files are this same length. The programmer identifies the IC as Atmega32 with $8000 + $400 bytes. I don't understand the $400 bytes. Is that some type of ram that is not involved in the reprogramming? I'm using fuse byte settings of (low) $3F and (high) $C3. I've loaded the .bin file into the buffer and programmed it. Does anyone have a table available of the fuse byte settings for the various firware releases?

 

Look again in the ZIP archive I´ve sent to you. You must use the 32768 byte long files. This is exactly $4000 in hexadecimal. This file contains the bootloader, without the bootloader the whole device won´t work and your display only shows one black line of squares.

 

The 30720 byte long file are used for updating from the SD-card using an already fine working SIO2SD.

 

Important: Use whole erase function of the complete MCU!

 

The additional $400 (1024 decimal) bytes are the EEPROM area of the ATmega32. The EEPROM area is mostly used for configuration setup, because it´s content is also kept after powering off. You don´t need to load something here, the SIO2SD firmware resets itself to default settings if the EEPROM area is not initialized.

 

Jurgen

  • Like 1
Link to comment
Share on other sites

Solved!

 

The culprit was a cracked solder joint on a voltage regulator connection. I retouched all three connections, and then the SIO2SD took right off!

 

And I learned quite a bit about programming the Atmega32. "No pain; no gain" I guess!

 

-Larry

  • Like 4
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...