{"action":"created","issue":{"url":"https://api.github.com/repos/micropython/micropython/issues/3243","repository_url":"https://api.github.com/repos/micropython/micropython","labels_url":"https://api.github.com/repos/micropython/micropython/issues/3243/labels{/name}","comments_url":"https://api.github.com/repos/micropython/micropython/issues/3243/comments","events_url":"https://api.github.com/repos/micropython/micropython/issues/3243/events","html_url":"https://github.com/micropython/micropython/issues/3243","id":245571837,"number":3243,"title":"esp8266: softuart library with baudrate=115200, the first byte is always wrong","user":{"login":"ashareye","id":4265578,"avatar_url":"https://avatars0.githubusercontent.com/u/4265578?v=4","gravatar_id":"","url":"https://api.github.com/users/ashareye","html_url":"https://github.com/ashareye","followers_url":"https://api.github.com/users/ashareye/followers","following_url":"https://api.github.com/users/ashareye/following{/other_user}","gists_url":"https://api.github.com/users/ashareye/gists{/gist_id}","starred_url":"https://api.github.com/users/ashareye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashareye/subscriptions","organizations_url":"https://api.github.com/users/ashareye/orgs","repos_url":"https://api.github.com/users/ashareye/repos","events_url":"https://api.github.com/users/ashareye/events{/privacy}","received_events_url":"https://api.github.com/users/ashareye/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-26T00:23:21Z","updated_at":"2017-07-26T01:57:54Z","closed_at":null,"body":"hi\r\n  \r\n I have referred to [here](https://github.com/plieningerweb/esp8266-software-uart) and made some changes to build a software uart for esp8266 and had to set baudrate 115200,  since my peripheral is at that rate.\r\n\r\n But the strange thing is that the first byte is always wrong, whether sending or receiving, then the subsequent bytes are correct. I adjusted the parameters and made the connection test using Arduino, cp2102, PL2303 etc, but got the same result. \r\n\r\nI suspect that someting is wrong with the first timing of set and read gpio, just like stm32, please give some advise, thank you.  \r\n\r\nhere is the  [my code](https://github.com/ashareye/softuart.git)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/micropython/micropython/issues/comments/317924354","html_url":"https://github.com/micropython/micropython/issues/3243#issuecomment-317924354","issue_url":"https://api.github.com/repos/micropython/micropython/issues/3243","id":317924354,"user":{"login":"dpgeorge","id":6187689,"avatar_url":"https://avatars1.githubusercontent.com/u/6187689?v=4","gravatar_id":"","url":"https://api.github.com/users/dpgeorge","html_url":"https://github.com/dpgeorge","followers_url":"https://api.github.com/users/dpgeorge/followers","following_url":"https://api.github.com/users/dpgeorge/following{/other_user}","gists_url":"https://api.github.com/users/dpgeorge/gists{/gist_id}","starred_url":"https://api.github.com/users/dpgeorge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpgeorge/subscriptions","organizations_url":"https://api.github.com/users/dpgeorge/orgs","repos_url":"https://api.github.com/users/dpgeorge/repos","events_url":"https://api.github.com/users/dpgeorge/events{/privacy}","received_events_url":"https://api.github.com/users/dpgeorge/received_events","type":"User","site_admin":false},"created_at":"2017-07-26T01:57:54Z","updated_at":"2017-07-26T01:57:54Z","body":"> how can i put the two functions in iRAM only? to new a sepcial file that only contains two functions and do not comment it in flash in esp8266_common.ld?\r\n\r\nYes that's one way to do it.  You can also use the MP_FASTCODE macro (grep for existing use of this to learn how)."}}
{"actor":{"display_login":"dpgeorge"}}