Post Go back to editing

CAN driver with RTOS

Category: Software
Product Number: ADSP-SC584
Software Version: CCES 2.12.0

Hi all,

I am working with the Ez-Kit of the ADSP-SC584. I want to use RTOS on my SHARC core as well as some device drivers.

I have understood that if you use RTOS, problems can occur with the device drivers. To avoid this, you should add the drivers via the add-in function. I have found the corresponding Add-Ins for UART, SPI and GPIO, but I don't have them for CAN. How can I integrate the CAN driver into my project without causing problems? Are there any examples for using RTOS and CAN?

Thank you very much for your help


Thread Notes

Parents Reply Children
  • Hi Santhakumari,

    Unfortunately I am tied to the SC584, but I still want to use CAN. I just tried to use the device driver (adi_can.h) anyway, but I have problems sending messages. Some functions work without error messages, like adi_candrv_Open or adi_candrv_SetCanClock, but when I try adi_candrv_Write I get error 4, i.e. that no free mailbox was found, although no mailbox has been used so far.
    I don't know whether I have simply made a mistake or whether it is due to the actual lack of compatibility with the device driver for the SC584.

    The only example of CAN I have found is the can-test in the Power_On_Self_Test and the DD is not used there. Are there any other examples for CAN where the adi_can.h is used? So I could check if the example works with the SC584.

    What are my options to get CAN running on my SC584?

    Best regards

    PS: I did not use RTOS environment in my experiments