This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MCU-PLUS-SDK-AM243X: Mailbox performance in theory and practice

Part Number: MCU-PLUS-SDK-AM243X

Hi,

I want to know mailbox performance in theory and measure it in practice.

How many cycles or nanoseconds does it take to send message? How many cycles or nanoseconds does it take to interrupt the other core after sending a message?

Also I'm trying to write a program to test performance. I started from the example ipc_notify_echo. I modified the provided ipc_notify driver to remove CRC and client ID bits and use all the 32 bits to send timer's counting register (TCRR).

The program sends TCRR from R5FSS0-0 to R5FSS0-1R5FSS0-1 calculates difference between sent TCRR and TCRR returned from call to TimerP_getCount(CONFIG_TIMER0_BASE_ADDR) then sends current TCRR to trigger main core interrupt. Main core ISR sends ISR additional 999 times. Average time between sending from R5FSS0-0 to R5FSS0-1 then sending from R5FSS0-1 to R5FSS0-1 is 1.565us.

I modified the program so that R5FSS0-0 sends only. The time between sending and receiving was higher.

I tried to measure performance directly by writing TimerP_getCount(CONFIG_TIMER0_BASE_ADDR) and DebugP_log in IpcNotify_sendMsg and IpcNotify_isr, but the program gets stuck.