-
Notifications
You must be signed in to change notification settings - Fork 3k
Serial interrupts not wo #10531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You are using Please read this #8518 (comment) |
Whow, lightning fast Response :D |
If you can share them, we will review. They should be fixed. |
https://os.mbed.com/handbook/Serial the last example "Attach to RX Interrupt" |
There's note on the page: You are using now Mbed OS 5 to my understanding. Thus it fails. |
Dangit. |
Yes, or rather |
If wanting to process directly from interrupt, like that example, you would need to use
Examples here: https://os.mbed.com/docs/mbed-os/v5.12/apis/filehandle.html |
so, maybe I still found a bug, maybe Im just very confused... same behaviour, and this time its definitly meant for OS5. |
Internal Jira reference: https://jira.arm.com/browse/MBOCUSTRIA-1183 |
If you're trying to application code to read and write like that, Your example program should use Or, even better, do not explictly use it at all - just use |
Ok, thanks I will try that. But why is it like this in the official example then? |
Good question. I think the problem is that some examples of too simplistic "how to use this class", that don't actually use them in the way they're intended/suitable for. The class-focused nature of the documentation also doesn't help - they end up documenting |
well... Im starting to think that something else isnt right at all.. now I am using uartSerial and I still have exactly the same problem. also, the "garbage" that I get is the same everytime.. its "USBS" plus some unknown characters. I really dont know whats going on. edit:sorry for the code formats, I dont get it the way I want. `UARTSerial ser(P0_6, P0_8,57600); void sigio_callback() { void periodic()
}` |
If P0_6 and P0_8 are your main console pins, In Mbed OS 5.12, you can get hold of the console's existing handle for sigio/set_blocking with Other than that, code seems like it should work. If P0_6 and P0_8 aren't the main console, maybe there's a pin conflict with something else on the board? Or maybe the problem's at the sender end, or even a conflict with the Segger trace? |
DAMN! I got it sorted. |
@CodingGhost Close since the requester has solved it. |
Description
I posted the crashing code here: https://os.mbed.com/forum/bugs-suggestions/topic/35736/
somehow I cannot get github to format it correctly.
will crash on any serial data sent and gives "Mutex lock failed" error.
target:NRF52840
using PlatformIO
latest release
Issue request type
The text was updated successfully, but these errors were encountered: