{"action":"created","issue":{"url":"https://api.github.com/repos/espressif/esp-idf/issues/1075","repository_url":"https://api.github.com/repos/espressif/esp-idf","labels_url":"https://api.github.com/repos/espressif/esp-idf/issues/1075/labels{/name}","comments_url":"https://api.github.com/repos/espressif/esp-idf/issues/1075/comments","events_url":"https://api.github.com/repos/espressif/esp-idf/issues/1075/events","html_url":"https://github.com/espressif/esp-idf/issues/1075","id":262738268,"node_id":"MDU6SXNzdWUyNjI3MzgyNjg=","number":1075,"title":"Uart is dropping characters when writing and sometimes overruns and resends up to 1K of previously sent data. ","user":{"login":"dmcnaugh","id":3985508,"node_id":"MDQ6VXNlcjM5ODU1MDg=","avatar_url":"https://avatars2.githubusercontent.com/u/3985508?v=4","gravatar_id":"","url":"https://api.github.com/users/dmcnaugh","html_url":"https://github.com/dmcnaugh","followers_url":"https://api.github.com/users/dmcnaugh/followers","following_url":"https://api.github.com/users/dmcnaugh/following{/other_user}","gists_url":"https://api.github.com/users/dmcnaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/dmcnaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmcnaugh/subscriptions","organizations_url":"https://api.github.com/users/dmcnaugh/orgs","repos_url":"https://api.github.com/users/dmcnaugh/repos","events_url":"https://api.github.com/users/dmcnaugh/events{/privacy}","received_events_url":"https://api.github.com/users/dmcnaugh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-10-04T10:28:38Z","updated_at":"2018-07-04T14:58:56Z","closed_at":"2017-10-06T07:05:08Z","author_association":"NONE","body":"Toolchain: xtensa-esp32-elf-osx-1.22.0-73-ge28a011-5.2.0.tar.gz\r\nPlatform: OSX\r\nEsp-idf: commit e6afe28bafe5db5ab79fae213f2e8e1ccd9f937c\r\nESP32: DFRobot FireBeetle https://www.dfrobot.com/product-1590.html\r\n\r\nWhen continuously writing **single characters  to `stdout` in a short loop**, at unpredictable intervals I am experiencing either:\r\n* dropped characters, often around 120 consecutive characters are dropped\r\n* some kind of buffer overrun/loopback resulting in the previous 900-1024 characters being retransmitted\r\n\r\nI can easily reproduce the dropped character result, and the same thing occurs if I\r\n* use the uart driver or use non-blocking mode\r\n* use the uart driver in non-blocking mode (using `fcntl(...O_NONBLOCK...)` )\r\n* enable or disable software flow control\r\n(hardware flow control is not an option as I am using a the USB<->serial interface on my dev board\r\n\r\nI have not successfully written an isolated test case that reproduces the overrun/loopback, but it happens every time I run my project code and will occur 3-6 times during writing around 45Kb I am using as a test case.\r\n"},"comment":{"url":"https://api.github.com/repos/espressif/esp-idf/issues/comments/402502883","html_url":"https://github.com/espressif/esp-idf/issues/1075#issuecomment-402502883","issue_url":"https://api.github.com/repos/espressif/esp-idf/issues/1075","id":402502883,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjUwMjg4Mw==","user":{"login":"TiSiAi","id":39954555,"node_id":"MDQ6VXNlcjM5OTU0NTU1","avatar_url":"https://avatars2.githubusercontent.com/u/39954555?v=4","gravatar_id":"","url":"https://api.github.com/users/TiSiAi","html_url":"https://github.com/TiSiAi","followers_url":"https://api.github.com/users/TiSiAi/followers","following_url":"https://api.github.com/users/TiSiAi/following{/other_user}","gists_url":"https://api.github.com/users/TiSiAi/gists{/gist_id}","starred_url":"https://api.github.com/users/TiSiAi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TiSiAi/subscriptions","organizations_url":"https://api.github.com/users/TiSiAi/orgs","repos_url":"https://api.github.com/users/TiSiAi/repos","events_url":"https://api.github.com/users/TiSiAi/events{/privacy}","received_events_url":"https://api.github.com/users/TiSiAi/received_events","type":"User","site_admin":false},"created_at":"2018-07-04T14:58:55Z","updated_at":"2018-07-04T14:58:55Z","author_association":"NONE","body":"Hello\r\nSame problem on OS X 10.12.6\r\nUpload sometimes only \r\nOK on windows same module\r\nTo Upload on OSX, I use a 3,3V serial adapter and i Force GPIO to 0V before restet and after reset I remove it. Its the procedure to program on ESP32"}}
{"actor":{"display_login":"TiSiAi"}}