Hey guys! I’m pretty new to AVR/ATmega but I’m having an issue with an embedded system. It’s a Biotek Eon Spectrophotometer which is based around an atmega1280. The 1280 has an ISSI 128kx8 SRAM connected to all of ports A&C, and all of Port D from the 1280 is connected through to all of Port E on an ATMega1281 (the 1281 is handling motor control, with UI, Sensors, etc running on the 1280). I pulled the ROM through the 1281 JTAG header at the start of the project but along the way, somehow a big block of memory got corrupted. The checksum changed and the comparison between the old hex and the post corruption read has a huge chunk missing. I tried reprogramming from the hex with a Snap in ipe and ide on both windows and Mac but every time it comes up with error “[Dataflash] at 0x0, expected 0x00000099, got 0x000000ff, programming did not complete”. I searched around the AVR forums and read that this was almost certainly due to a failed block of flash memory on the micro.
So I ordered a replacement 1280, soldered it to the board, tried to program it and no luck, still the same error. Could it actually be the 1281 that has the bad memory somehow, even though I’m programming through the 1280’s JTAG (both Jtags are separate btw, not daisy chained). Is the error and the missing block of memory caused by something else entirely? I’m so confused here and don’t know what to do. Any ideas?