{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":828011278,"defaultBranch":"main","name":"Arduino_Core_STM32","ownerLogin":"gigaj0ule","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2024-07-12T22:06:01.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/3454296?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1720821963.297684","currentOid":""},"activityList":{"items":[{"before":"b24801b4b473649fb6d5bc51c22a69a64d45b732","after":"e75a9a183914141ac09bab796874e65c047d3188","ref":"refs/heads/main","pushedAt":"2024-07-12T22:13:59.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"gigaj0ule","name":"~j0ule","path":"/gigaj0ule","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3454296?s=80&v=4"},"commit":{"message":"Add single buffer mode option to USB to fix off-by-one corruption\n\nWhen using the debug mode, halting the CPU at a breakpoint can create an occasional condition where the HAL USB state machine encounters an off-by-one error in the packet handling. This error is un-recoverable. completely breaks USB communications, and requires you to reset the STM32.\r\n\r\nThis is caused by an issue with the double-buffering option available in the endpoint hardware.\r\n\r\nAdding the option to disable double buffer mode, and to allow single buffer mode, fixes this issue, and, in my tests, also improves reliability in USB communication with noisy systems, such as motor controllers.\r\n\r\nSingle buffer mode can now be enabled with -DUSBD_CDC_USE_SINGLE_BUFFER at compile time. \r\n\r\nThis commit does not break any other functions of STM32DUINO as far as I can tell.","shortMessageHtmlLink":"Add single buffer mode option to USB to fix off-by-one corruption"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEfkMOsQA","startCursor":null,"endCursor":null}},"title":"Activity ยท gigaj0ule/Arduino_Core_STM32"}