{"action":"opened","issue":{"url":"https://api.github.com/repos/MagoKimbra/MK4duo/issues/39","repository_url":"https://api.github.com/repos/MagoKimbra/MK4duo","labels_url":"https://api.github.com/repos/MagoKimbra/MK4duo/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/MagoKimbra/MK4duo/issues/39/comments","events_url":"https://api.github.com/repos/MagoKimbra/MK4duo/issues/39/events","html_url":"https://github.com/MagoKimbra/MK4duo/issues/39","id":194350851,"number":39,"title":"RESET","user":{"login":"Tick007","id":12728681,"avatar_url":"https://avatars.githubusercontent.com/u/12728681?v=3","gravatar_id":"","url":"https://api.github.com/users/Tick007","html_url":"https://github.com/Tick007","followers_url":"https://api.github.com/users/Tick007/followers","following_url":"https://api.github.com/users/Tick007/following{/other_user}","gists_url":"https://api.github.com/users/Tick007/gists{/gist_id}","starred_url":"https://api.github.com/users/Tick007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tick007/subscriptions","organizations_url":"https://api.github.com/users/Tick007/orgs","repos_url":"https://api.github.com/users/Tick007/repos","events_url":"https://api.github.com/users/Tick007/events{/privacy}","received_events_url":"https://api.github.com/users/Tick007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-08T14:35:13Z","updated_at":"2016-12-08T14:35:13Z","closed_at":null,"body":"Mine burned DUE (dead mega16u2 + Rx uart_0) doesn't  restart on connect\"(may be just mine board, Ï'm not sure) then work not via UART_0. \r\nI propose to add folowing:\r\n//Defines so the device can do a self reset\r\n//https://forum.arduino.cc/index.php?topic=345209.0\r\n#define SYSRESETREQ (1<<2)\r\n#define VECTKEY (0x05fa0000UL)\r\n#define VECTKEY_MASK (0x0000ffffUL)\r\n#define AIRCR ((uint32_t)0xe000ed0cUL) // fixed arch-defined address\r\n#define REQUEST_EXTERNAL_RESET (AIRCR=(AIRCR&VECTKEY_MASK)|VECTKEY|SYSRESETREQ)\r\n\r\nREQUEST_EXTERNAL_RESET can be for example call from MK_Main.cpp after FlushSerialRequestResend() in inline void gcode_M999(). \r\n\r\nI'm no sure that someone except me need this, but this feture gives apportunity to reset device by button (in pronterface, by M999 command). Never understand why stock button \"Reset\" in pronterface interface doesn't reset the board. Or does ?\r\n\r\n\r\n"}}
{"actor":{"display_login":"Tick007"}}