Open nametable opened 3 years ago
please have a look at https://github.com/arduino/ArduinoCore-megaavr/issues/33, I am working with custom made PCB and I am not able to put atmega4809 in program mode , once I was able to erase it and program it , after that it does not program , any help fixing it would be appreciated
here is picture of error which I am getting
I finally got bootloader burnt on my custom made PCB, when I try to program using arduino IDE I am getting content mismatch at address 0x200 ( which is 512 in decimal ) , verification is failing I am using following bootloader (Optiboot_mega0_UART1_DEF_115200_A7.hex) with internal 20 Mhz clock, UART1 on default pins , 48 pin, RESET pin,
why I am getting content mismatch after programming during verification stage ?
This error is the same or similar to the issue I've had except I was not using OptiBoot, just medbg from Atmel Studio. I believe the mismatch is due to corruption when flashing. In my testing, after flashing greater than the first 16KiB, corruption occurs. I've described this phenomenon here: https://forum.arduino.cc/index.php?topic=717504.0 .
I am still wanting to know a solution as well...
Do you guys get the same error if you program your devices with a different programmer, for instance, JTAG2UPDI or an mEDBG variant such as microUPDI?
I am using Atmel-ICE ( UPDI) to burn bootloader and then I am using arduino megaCoreX to load sketches and I am getting content mismatch error , I am not getting any error when uploading bootloader using Atmel-ICE ( updi)
I just tried microUPDI ( mEDBG) , here is error when trying to read signature
I am also unable to erase chip, here is error which I am getting
I am having an issue with uploading sketches/applications that are bigger than around 16KiB to my Arduino Uno Wifi Rev2. I think that the issue is likely related to incorrect mEDBG firmware on the 32u4. I was reprogramming the 32u4 to use it as a HID and then wasn't sure what to reprogram it as to make it work again to program the 4809.
I have tried flashing the 32u4 with
medbg_updi.hex
from Atmel Studio (tools/medbg_fw.zip) and also firmware provided with Xplained Yourself (https://hackaday.io/project/162372/files), whose UPDI .hex file seems the same as what is provided with Atmel Studio. Currently my 32u4s EEPROM has been programmed with the .eep from Xplained Yourself. The original EEPROM has been erased. I have noted that with only 0s in the EEPROM, no programming of the 4809 works at all.Below I have included an AVRDUDE log including the error (the intended program never seems to run as no Serial communication is detected after programming):
Is there a way to get the original firmware and a typical EEPROM back? I'm not 100% sure that the firmware is the issue but that is really the only thing I changed (via dfu-programmer). I find it odd that I can program small programs but not ones that are larger (mismatch at 0x200)... I almost wonder if somehow the 32u4 is now programming the wrong part of flash in the 4809 or if some fuse may be out of wack...
Any help reseting/fixing my Uno Wifi Rev2 would be appreciated.