Mar 02, 2021
09:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 02, 2021
09:17 PM
Using the GPSR source to handle the inter core communication, and while setting the SETR from core0 to notify core1 that there is new data in the queue, the SRE bit is cleared "disabled".
This doesn't happen from the begining, it works for some time, like after 10 notifications from core0 to core1, this issue happens.
Because the SRE bit is cleared, core0 remains filling the queue and notifying core1 with no response from core1, and so the queue is full, the used AUTOSAR OS is then stuck waiting for the queue to be freed.
This is detected by making hardware breakpoint on any write to the register, it comes like 9 times normal, because of setting SRR, then when the 10th comes, the SRR is set but also the SRE is cleared.
The other inter core communication are working fine, between core0 and core2, both of them are communicating and the SRE bit remains enabled.
Also after this issue happens, when I enable the SRE bit for core1 manually in the debugger, it works fine afterwards and the issue doesn't happen again.
Any ideas or thoughts regarding this?
This doesn't happen from the begining, it works for some time, like after 10 notifications from core0 to core1, this issue happens.
Because the SRE bit is cleared, core0 remains filling the queue and notifying core1 with no response from core1, and so the queue is full, the used AUTOSAR OS is then stuck waiting for the queue to be freed.
This is detected by making hardware breakpoint on any write to the register, it comes like 9 times normal, because of setting SRR, then when the 10th comes, the SRR is set but also the SRE is cleared.
The other inter core communication are working fine, between core0 and core2, both of them are communicating and the SRE bit remains enabled.
Also after this issue happens, when I enable the SRE bit for core1 manually in the debugger, it works fine afterwards and the issue doesn't happen again.
Any ideas or thoughts regarding this?
1 Reply
Mar 09, 2021
01:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 09, 2021
01:17 PM
I get the idea, but can you describe what values you're writing to which registers?