{"action":"created","issue":{"url":"https://api.github.com/repos/Optiboot/optiboot/issues/140","repository_url":"https://api.github.com/repos/Optiboot/optiboot","labels_url":"https://api.github.com/repos/Optiboot/optiboot/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/Optiboot/optiboot/issues/140/comments","events_url":"https://api.github.com/repos/Optiboot/optiboot/issues/140/events","html_url":"https://github.com/Optiboot/optiboot/issues/140","id":83615790,"number":140,"title":"Fast start/ MCUSR issues and regression","user":{"login":"WestfW","id":425027,"avatar_url":"https://avatars.githubusercontent.com/u/425027?v=3","gravatar_id":"","url":"https://api.github.com/users/WestfW","html_url":"https://github.com/WestfW","followers_url":"https://api.github.com/users/WestfW/followers","following_url":"https://api.github.com/users/WestfW/following{/other_user}","gists_url":"https://api.github.com/users/WestfW/gists{/gist_id}","starred_url":"https://api.github.com/users/WestfW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WestfW/subscriptions","organizations_url":"https://api.github.com/users/WestfW/orgs","repos_url":"https://api.github.com/users/WestfW/repos","events_url":"https://api.github.com/users/WestfW/events{/privacy}","received_events_url":"https://api.github.com/users/WestfW/received_events","type":"User","site_admin":false},"labels":[{"id":219064918,"url":"https://api.github.com/repos/Optiboot/optiboot/labels/Regression","name":"Regression","color":"FF1d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":33,"created_at":"2015-06-01T17:33:59Z","updated_at":"2016-11-29T04:37:23Z","closed_at":null,"body":"It looks as though the changes to the no-wait modification need to be re-examined.\nThey probably break the \"hold reset while powering on\" fix for certain brick situations, because that results in MCUSR having PORF+EXTRF set. That used to run the bootloader, but now will skip it. :-(\n\nEdit made in https://github.com/Optiboot/optiboot/commit/c51c79299739a1d81f2d87129707bb71fbc616ca\n"},"comment":{"url":"https://api.github.com/repos/Optiboot/optiboot/issues/comments/263474100","html_url":"https://github.com/Optiboot/optiboot/issues/140#issuecomment-263474100","issue_url":"https://api.github.com/repos/Optiboot/optiboot/issues/140","id":263474100,"user":{"login":"miketedeschi","id":6474399,"avatar_url":"https://avatars.githubusercontent.com/u/6474399?v=3","gravatar_id":"","url":"https://api.github.com/users/miketedeschi","html_url":"https://github.com/miketedeschi","followers_url":"https://api.github.com/users/miketedeschi/followers","following_url":"https://api.github.com/users/miketedeschi/following{/other_user}","gists_url":"https://api.github.com/users/miketedeschi/gists{/gist_id}","starred_url":"https://api.github.com/users/miketedeschi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miketedeschi/subscriptions","organizations_url":"https://api.github.com/users/miketedeschi/orgs","repos_url":"https://api.github.com/users/miketedeschi/repos","events_url":"https://api.github.com/users/miketedeschi/events{/privacy}","received_events_url":"https://api.github.com/users/miketedeschi/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T04:37:23Z","updated_at":"2016-11-29T04:37:23Z","body":"@majekw \r\n`You need Optiboot with MarkG55 patch. It's available from his fork, or more recent code with all current fixes and new write-to-flash feature (and also with precompiled hex files) in my branch https://github.com/majekw/optiboot/tree/supermaster\r\nI'll appreciate any feedback from my branch as this code is going 'to be merged' soon.\r\nSo, when you have Optiboot with this patch, all you need to run bootloader is:\r\ncli();\r\nMCUSR=0;\r\ngoto *0x7E00;`\r\n\r\nI am attemping to jump to the bootloader to load a sketch, but something is wrong.  The following sketch doesn't work when running the bootloader mentioned above.  I compiled it countless times, and even changed the LED count to ensure I was loading the right bootloader.\r\n`int counter=0;\r\n\r\n// the setup function runs once when you press reset or power the board\r\nvoid setup() {\r\n  // initialize digital pin 13 as an output.\r\n  pinMode(13, OUTPUT);\r\n}\r\n\r\n// the loop function runs over and over again forever\r\nvoid loop() {\r\n  digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)\r\n  delay(1000);              // wait for a second\r\n  digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW\r\n  delay(1000);              // wait for a second\r\n  \r\n  counter++;\r\n  if (counter>=5) {\r\n    cli();\r\n    MCUSR=0;\r\n    SP=RAMEND;\r\n    goto *0x7E00;\r\n  }\r\n}`\r\n\r\nIt appears to get stuck jumping to the bootloader, the LED is blinking very fast.  An external reset enters the sketch when in this state, and the only way to enter the bootloader to load a sketch is by a 2nd external reset, while the application is running.\r\n\r\nany ideas?  thanks -Mike"}}
{"actor":{"display_login":"miketedeschi"}}