- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have written code for UART and printing using both core CM0+ and CM4, its printing properly but I had doubt. Since both cores are transmitting using same UART block will there be any clash.
Example: if suppose CM4 is transmitting and CM0+ also want to transmit at same time will there be any clash, and if there is clash how priority is resolved between CM0+ and CM4 or else I have to use IPC to check whether UART is free and done with transmission.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes there is a clash
The contention is resolved as a race condition... whoever writes first wins
The priority is resolved first come first serve.
The only correct thing to do is to use a semaphore... implemented via IPC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes there is a clash
The contention is resolved as a race condition... whoever writes first wins
The priority is resolved first come first serve.
The only correct thing to do is to use a semaphore... implemented via IPC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for reply arh, I will try using semaphore.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content