IPC INT not responding

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
SaGa_4641021
Level 5
Level 5
50 questions asked 50 replies posted 100 sign-ins

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

0 Likes
1 Solution
RodolfoGL
Employee
Employee
250 solutions authored 250 sign-ins 5 comments on KBA

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);

View solution in original post

1 Reply
RodolfoGL
Employee
Employee
250 solutions authored 250 sign-ins 5 comments on KBA

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);