- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I am following code example CE223820 to create a project in which CM0 and CM4 can communicate with IPC interrupts.
The test should run as follows:
1. Sending message to UART is received by UART_INT on CM0, which flips LED, writes to UART then sends IPC message to CM4. When CM4 receives the IPC message, its ISR should flip LED and also write to UART.
2. Pressing the pushbutton triggers ISR which is processed by CM4 to flip LED and write to CM0.
However, the callbacks are never called.
I am not sure what is missing ?
I attached the code for your reference.
thanks
Solved! Go to Solution.
- Labels:
-
PSoC 6 MCU
- Tags:
- IPC ISR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think there is a bug in your IPC_send_message() function.
The message argument shouldn't have the "&". Should change to:
Cy_IPC_Pipe_SendMessage(CY_IPC_EP_CYPIPE_CM0_ADDR, CY_IPC_EP_CYPIPE_CM4_ADDR, (void *) message, release_callback_function);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think there is a bug in your IPC_send_message() function.
The message argument shouldn't have the "&". Should change to:
Cy_IPC_Pipe_SendMessage(CY_IPC_EP_CYPIPE_CM0_ADDR, CY_IPC_EP_CYPIPE_CM4_ADDR, (void *) message, release_callback_function);