{"action":"opened","issue":{"url":"https://api.github.com/repos/MCUdude/MegaCore/issues/71","repository_url":"https://api.github.com/repos/MCUdude/MegaCore","labels_url":"https://api.github.com/repos/MCUdude/MegaCore/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/MCUdude/MegaCore/issues/71/comments","events_url":"https://api.github.com/repos/MCUdude/MegaCore/issues/71/events","html_url":"https://github.com/MCUdude/MegaCore/issues/71","id":253157202,"number":71,"title":"Verification error after loading code by Serial","user":{"login":"Borsoft73","id":31384672,"avatar_url":"https://avatars3.githubusercontent.com/u/31384672?v=4","gravatar_id":"","url":"https://api.github.com/users/Borsoft73","html_url":"https://github.com/Borsoft73","followers_url":"https://api.github.com/users/Borsoft73/followers","following_url":"https://api.github.com/users/Borsoft73/following{/other_user}","gists_url":"https://api.github.com/users/Borsoft73/gists{/gist_id}","starred_url":"https://api.github.com/users/Borsoft73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Borsoft73/subscriptions","organizations_url":"https://api.github.com/users/Borsoft73/orgs","repos_url":"https://api.github.com/users/Borsoft73/repos","events_url":"https://api.github.com/users/Borsoft73/events{/privacy}","received_events_url":"https://api.github.com/users/Borsoft73/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-27T11:14:46Z","updated_at":"2017-08-27T11:14:46Z","closed_at":null,"body":"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:\r\n\r\n>  avrdude: verification error, first mismatch at byte 0x0000\r\n>          0xff != 0x0c\r\n> avrdude: verification error; content mismatch\r\n\r\nIt seems that my sketch code was not recorded to Atmega... If I loading the code through programmer by ICSP - it works well.\r\nHere is the Avrdude log:\r\n\r\n> /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Users/dmitrij/Library/Arduino15/packages/MegaCore/hardware/avr/2.0.0/avrdude.conf -v -patmega128 -carduino -P/dev/cu.wchusbserial1420 -b115200 -D -Uflash:w:/var/folders/18/60_7xyc92138x6vhc69t25zc0000gn/T/arduino_build_113404/Blink.ino.hex:i \r\n> \r\n> avrdude: Version 6.3, compiled on Jan 17 2017 at 12:01:35\r\n>          Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/\r\n>          Copyright (c) 2007-2014 Joerg Wunsch\r\n> \r\n>          System wide configuration file is \"/Users/dmitrij/Library/Arduino15/packages/MegaCore/hardware/avr/2.0.0/avrdude.conf\"\r\n>          User configuration file is \"/Users/dmitrij/.avrduderc\"\r\n>          User configuration file does not exist or is not a regular file, skipping\r\n> \r\n>          Using Port                    : /dev/cu.wchusbserial1420\r\n>          Using Programmer              : arduino\r\n>          Overriding Baud Rate          : 115200\r\n>          AVR Part                      : ATmega128\r\n>          Chip Erase delay              : 9000 us\r\n>          PAGEL                         : PD7\r\n>          BS2                           : PA0\r\n>          RESET disposition             : dedicated\r\n>          RETRY pulse                   : SCK\r\n>          serial program mode           : yes\r\n>          parallel program mode         : yes\r\n>          Timeout                       : 200\r\n>          StabDelay                     : 100\r\n>          CmdexeDelay                   : 25\r\n>          SyncLoops                     : 32\r\n>          ByteDelay                     : 0\r\n>          PollIndex                     : 3\r\n>          PollValue                     : 0x53\r\n>          Memory Detail                 :\r\n> \r\n>                                   Block Poll               Page                       Polled\r\n>            Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack\r\n>            ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------\r\n>            eeprom         4    12    64    0 no       4096    8      0  9000  9000 0xff 0xff\r\n>            flash         33     6   128    0 yes    131072  256    512  4500  4500 0xff 0xff\r\n>            lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00\r\n>            hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00\r\n>            efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00\r\n>            lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00\r\n>            calibration    0     0     0    0 no          4    0      0     0     0 0x00 0x00\r\n>            signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00\r\n> \r\n>          Programmer Type : Arduino\r\n>          Description     : Arduino\r\n>          Hardware Version: 3\r\n>          Firmware Version: 6.2\r\n>          Vtarget         : 0.3 V\r\n>          Varef           : 0.3 V\r\n>          Oscillator      : 28.800 kHz\r\n>          SCK period      : 3.3 us\r\n> \r\n> avrdude: AVR device initialized and ready to accept instructions\r\n> \r\n> Reading | ################################################## | 100% 0.02s\r\n> \r\n> avrdude: Device signature = 0x1e9702 (probably m128)\r\n> avrdude: reading input file \"/var/folders/18/60_7xyc92138x6vhc69t25zc0000gn/T/arduino_build_113404/Blink.ino.hex\"\r\n> avrdude: writing flash (1240 bytes):\r\n> \r\n> Writing | ################################################## | 100% 0.34s\r\n> \r\n> avrdude: 1240 bytes of flash written\r\n> avrdude: verifying flash memory against /var/folders/18/60_7xyc92138x6vhc69t25zc0000gn/T/arduino_build_113404/Blink.ino.hex:\r\n> avrdude: load data flash data from input file /var/folders/18/60_7xyc92138x6vhc69t25zc0000gn/T/arduino_build_113404/Blink.ino.hex:\r\n> avrdude: input file /var/folders/18/60_7xyc92138x6vhc69t25zc0000gn/T/arduino_build_113404/Blink.ino.hex contains 1240 bytes\r\n> avrdude: reading on-chip flash data:\r\n> \r\n> Reading | ########################################Произошла ошибка при загрузке скетча\r\n> ########## | 100% 0.34s\r\n> \r\n> avrdude: verifying ...\r\n> avrdude: verification error, first mismatch at byte 0x0000\r\n>          0xff != 0x0c\r\n> avrdude: verification error; content mismatch\r\n> \r\n> avrdude done.  Thank you.\r\n\r\nDo you have any thoughts on it?"}}
{"actor":{"display_login":"Borsoft73"}}