-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verification error after loading code by Serial #71
Comments
Hi! |
I'm stuck, still no progress...:( Bootloader don't want to write the code into the chip.
Here is the schematics I use: https://easyeda.com/normal/Schematic-daa7aab244404e378c8103818bf43c53 Any other ideas? |
Do I have any chance to get some feedback? |
I'm sorry, but I've been on business trip for a whole week. I'll dig into it in a couple of days |
I'm not able to view the EasyEDA schematic. All I see is the logo.. please post a picture the schematic instead. A photo of your actual board would also be nice 🙂 Like I've already mentioned; I've never seen this before. Using USB to serial uploading have always worked perfectly without any errors. BTW what kind of programmer are you using? |
hmm. I don't see any obvious hardware issues. Your schematic looks correct. Can you get avrdude to verify the current fuse settings, both low, high, extended and lockfuse? BTW have you disconnected the programmer when uploading with the USB to serial adapter? |
Here are the fuses which I found in the chip after MegaCore installation: Low = 0xBF, High = 0xC6, Ext = 0xFF, Lock = 0x0F.
And yes, I disconnected a programmer when uploading by UART |
And what about DTR behaviour? Is it normal if bootloader starting to receive data even without DTR line? |
Optiboot is able to start receiving data without the DTR line, but only once. After a program is received, it will never stay in bootloader mode forever, like it does when you have just burned the bootloader. |
If you want you can try to use the older version of optiboot to see if it works better. This bootloader was "shipped" with MegaCore v1.0.1 |
I'm here back again! The same with 1.0.1 and all other versions. Also I found similar behaviour with your SerialReadWrite sketch. It runs, serial connection is working, but it can't write anything to the Flash. Here is how it works: https://youtu.be/45vlQO1n-Yg, and here is how the Flash dump looks after: https://youtu.be/F0FbI3GkcaA. What do you think? |
You're not able to write to the flash memory without the bootloader installed. I have no idea why uploading using Serial doesn't work. @majekw do you have any idea why this happen? |
Tried SerialReadWrite sketch compiled with bootloader - the same result - it can not write to the flash |
Hi @majekw, may be you can help me with my issue? Still no progress and I will appreciate any ideas… |
SOLVED! |
Really?! |
You need to re-program you USBasp and check for sure. I use the USBasp as one of my main programmers, and it has never failed me. |
What usbisp are you using. Is it the chinese version. If so you should take a look at this git i fixed mine with it. https://github.com/aleh/usbisp |
Better late than never :-) |
Yes, probably it has old firmware. But I was confused as it looked like both bootloader and USBasp works properly - LED on PB5 flashed and I had no problems with loading my software (~70kB) through this USBasp... So anyway thanks to everybody for support! |
I had the same problem getting that Verification error and content mismatch all the time for code above 50 bytes (Blink code works fine), I m using USBasp programmer, So should I buy the new one? Thank You. |
I switched to AVRIsp mkII programmer - works fine for me, no issues. |
Hi! I'm building my project on Atmega128 chip using your bootloader. Bootloader was load properly by USBASP and I even can see it in FLASH through Avrdude terminal mode from address 0xFC00 (as I remember). Then I faced an issue during loading my program by Serial through USB-UART (CH340 chip). It seems that Arduino IDE connects to Atmega and I see Avrdude writing progress bars but then it fails on verification step:
It seems that my sketch code was not recorded to Atmega... If I loading the code through programmer by ICSP - it works well.
Here is the Avrdude log:
Do you have any thoughts on it?
The text was updated successfully, but these errors were encountered: