{"action":"created","issue":{"url":"https://api.github.com/repos/jeelabs/esp-link/issues/394","repository_url":"https://api.github.com/repos/jeelabs/esp-link","labels_url":"https://api.github.com/repos/jeelabs/esp-link/issues/394/labels{/name}","comments_url":"https://api.github.com/repos/jeelabs/esp-link/issues/394/comments","events_url":"https://api.github.com/repos/jeelabs/esp-link/issues/394/events","html_url":"https://github.com/jeelabs/esp-link/issues/394","id":335165839,"node_id":"MDU6SXNzdWUzMzUxNjU4Mzk=","number":394,"title":"Program from Arduino IDE","user":{"login":"overisberg","id":7736620,"node_id":"MDQ6VXNlcjc3MzY2MjA=","avatar_url":"https://avatars2.githubusercontent.com/u/7736620?v=4","gravatar_id":"","url":"https://api.github.com/users/overisberg","html_url":"https://github.com/overisberg","followers_url":"https://api.github.com/users/overisberg/followers","following_url":"https://api.github.com/users/overisberg/following{/other_user}","gists_url":"https://api.github.com/users/overisberg/gists{/gist_id}","starred_url":"https://api.github.com/users/overisberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/overisberg/subscriptions","organizations_url":"https://api.github.com/users/overisberg/orgs","repos_url":"https://api.github.com/users/overisberg/repos","events_url":"https://api.github.com/users/overisberg/events{/privacy}","received_events_url":"https://api.github.com/users/overisberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2018-06-24T09:42:00Z","updated_at":"2018-10-20T17:08:19Z","closed_at":null,"author_association":"NONE","body":"esp-link can be used directly from Arduino IDE if the hardware/arduino/avr/boards.txt file in your Arduino IDE installation is updated with lines like this:\r\n```\r\nmega.upload.network.endpoint_upload=/pgmmega/upload\r\nmega.upload.network.endpoint_sync=/pgmmega/sync\r\nmega.upload.network.sync_return=204:SYNC\r\nmega.upload.network.endpoint_reset=/log/reset\r\nmega.upload.network.port=80\r\n\r\npro.upload.network.endpoint_upload=/pgm/upload\r\npro.upload.network.endpoint_sync=/pgm/sync\r\npro.upload.network.sync_return=204:SYNC\r\npro.upload.network.endpoint_reset=/log/reset\r\npro.upload.network.port=80\r\n```\r\n\r\nThere are a few problems with this:\r\n1. You have to add five lines for every type of arduino you want to program.\r\n2. The baud rate have to be set to 115200 for Arduino Mega 2560 or else the upload will fail\r\n\r\nAnother way to do this is to modify avrflash slightly and add the following line to hardware/arduino/avr/platform.txt in your Arduino IDE installation:\r\ntools.avrdude.upload.network_pattern=/path/to/avrflash -p {build.mcu} {serial.port} {build.path}/{build.project_name}.hex\r\n\r\nThe modified avrflash can update both Arduino Mega 2560 and \"normal\" Arduinos and it will change the baudrate for  Arduino Mega 2560 to 115200 during programming and then change it back.\r\nI also modified megaflash to call avrflash to remove much of the code duplication.\r\n\r\nI can make a pull request if you want this change."},"comment":{"url":"https://api.github.com/repos/jeelabs/esp-link/issues/comments/431599957","html_url":"https://github.com/jeelabs/esp-link/issues/394#issuecomment-431599957","issue_url":"https://api.github.com/repos/jeelabs/esp-link/issues/394","id":431599957,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTU5OTk1Nw==","user":{"login":"pgeindreau","id":28566707,"node_id":"MDQ6VXNlcjI4NTY2NzA3","avatar_url":"https://avatars1.githubusercontent.com/u/28566707?v=4","gravatar_id":"","url":"https://api.github.com/users/pgeindreau","html_url":"https://github.com/pgeindreau","followers_url":"https://api.github.com/users/pgeindreau/followers","following_url":"https://api.github.com/users/pgeindreau/following{/other_user}","gists_url":"https://api.github.com/users/pgeindreau/gists{/gist_id}","starred_url":"https://api.github.com/users/pgeindreau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgeindreau/subscriptions","organizations_url":"https://api.github.com/users/pgeindreau/orgs","repos_url":"https://api.github.com/users/pgeindreau/repos","events_url":"https://api.github.com/users/pgeindreau/events{/privacy}","received_events_url":"https://api.github.com/users/pgeindreau/received_events","type":"User","site_admin":false},"created_at":"2018-10-20T17:08:19Z","updated_at":"2018-10-20T17:08:19Z","author_association":"NONE","body":"Some news today. I try to burn the bootloader but no change. I tried also with other boards, a Seeduino Mega v1.1 (Atmega 1280) and Arduino Mega 2560 without success.\r\nThe famous password window :\r\n![image](https://user-images.githubusercontent.com/28566707/47258431-55d76900-d49b-11e8-92a5-9fa98d66965d.png)\r\nThe message in the console :\r\n![image](https://user-images.githubusercontent.com/28566707/47258441-64be1b80-d49b-11e8-9500-a2307701157c.png)\r\n\r\n"}}
{"actor":{"display_login":"pgeindreau"}}