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.

RM48L540: sciReceive does not work

Part Number: RM48L540


Hello,

I have an issue that I cannot resolve. I have configured the HAL to get an interrupt through the SCILIN interface.

The interrupt works well each time I press any key of the keyboard. However, "sciReceive(scilinREG, 1, (unsigned char *)&rxKey);" does not stores the key value in rxKey.

I attach some pictures of the configurations and sciNotification routine.

Thank you in advance.

Regards,

Leandro

/*********************************
 * SCI interrupt service routine *
 *********************************/
void sciNotification(sciBASE_t *sci, unsigned flags)
{
    uint8_t rxKey = 1;
    //bool done = false;

    //sciSend(scilinREG, 26, (unsigned char *)"\r\nSystem > sciNotification");

    sciReceive(scilinREG, 1, (unsigned char *)&rxKey);

    //sciDisplayText(scilinREG, &rxKey,1);
    sciDisplayData(scilinREG, &rxKey, 1);
    //sciSend(scilinREG, 1, &rxKey);


    //done = command_selector(&rxKey);
}