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.

IPC notify echo example - registered function logging problem

Part Number: TMDS64GPEVM

Hi,

I am using am64x-evm board, and working on ipc notify echo example. 
I am embedding code from CCS.

The ipc notify echo example registeres a function with IpcNotify_registerClient() function for a core and client id,

the whole example works but i can not log anything from registered function,


example:

uint32_t rmsgValue = 9999;

void ipc_notify_msg_handler_remote_core(uint32_t remoteCoreId, uint16_t localClientId, uint32_t msgValue, void *args){
    DebugP_log("hello something hello\r\n"); // i can not see the log
    rmsgValue = msgValue; // other core sends a 0 as a msgvalue, and after this func rmsgcalue set to 0, this func is called
    DebugP_log("hello something hello\r\n"); // i can not see the log
}

void empty_main(void *args){
****
IpcNotify_registerClient(gClientId, ipc_notify_msg_handler_remote_core, NULL);
****
}

i can not log anything from ipc_notify_msg_handler_remote_core() function for this example

i can set a global msgvalue variable to msgValue variable of the function, i am sure the function triggered, i think a rule  prevents this logging stuff but i do not know why. 
Do you know why?

Thanks in advice

  • Hi Irem,

    The Debug_Log method is dictated by the example.syscfg in the CCS project. The screen capture below is the default setting for ipc_notify_echo_am64x-evm_r5fss0-0_freertos_ti-arm-clang. As you can see, the Debug_Log goes to the UART, not the CCS log. If you want to display the log on CCS console, you will need to check the "Enable CCS Log" and re-build the project.

    Best regards,

    Ming

  • Hi Ming, 

    Thanks for answer, 
    I checked "Enable CCS Log" from example.syscfg already, I can see any other logs on ccs terminal. 
    I just can not see any log from registered function. 

    For example if Iadd any log in empty_main() function, i can see it. But i can not see the logs coming from ipc_notify_msg_handler_remote_core() function.
    I am sure the function triggered, i could use its values, i could set global values with function variables, I just can not log anything from function.

    Do you have any idea?

  • Hi Irem,

    Can you disable the CCS log and enable the UART log or Memory log, then check from the UART output or memory log for ipc_notify_msg_handler_remote_core?

    Since the CCS log is very intrusive, it may not work in certain callback functions.

    Best regards,

    Ming