- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I am trying to use IPC to share 2 variables between M4 and M0. I am able to share a single variable, now I need to share 2, one of them is an array (buffer for UART).
I can't find app-notes for this task. Do you have any advice ?
thanks
Solved! Go to Solution.
- Labels:
-
PSoC 6 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Rodolfo for your reply.
I created 2 functions based on the original API to allow sharing arrays.
Can I attach them here so that other members can access ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can refer to the pipes code example.
ModusToolbox:
https://git-ore.aus.cypress.com/wpp/ce/mtb/mtb-example-psoc6-dual-cpu-ipc-pipes
PSoC Creator:
https://www.cypress.com/documentation/code-examples/ce223820-psoc-6-mcu-ipc-pipes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Rodolfo for your reply.
I created 2 functions based on the original API to allow sharing arrays.
Can I attach them here so that other members can access ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sure!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This zip file has a template that can be used to implement IPC for several variables and arrays.
Original API method is build to accept a fixed semaphore number. The modified methods accept an additional parameter "uint8_t SEMANUM" which is the the semaphore number.
Methods that handle arrays are:
uint32_t ReadSharedVar_Arr(const uint8_t *sharedVar, uint8_t *copy, uint8_t SEMANUM, uint32_t Arr_Length)
uint32_t WriteSharedVar_Arr(const uint8_t *sharedVar, uint8_t *copy, uint8_t SEMANUM, uint32_t Arr_Length)
IPC support upto 16 channels, the code is made for 5. Follow the template and create more pipes in the "SG_ce216795_common" c and h files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you @SaGa_2657031 for sharing the project with the community. I'm sure this will of great use to all our users.
Appreciate your effort 🙂
Regards,
Dheeraj