S32G LLCE (CAN) excute command return LLCE_ERROR_COMMAND_NOTACCEPTED

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32G LLCE (CAN) excute command return LLCE_ERROR_COMMAND_NOTACCEPTED

608 Views
chenhong
Contributor I

Dear All

   At moment, I am using LLCE firmware and driver which is from NXP in FreeRTOS, I met a issuse that the LLCE return LLCE_ERROR_COMMAND_NOTACCEPTED when I call some LLCE routines.

The sisuation is that

1 . send a "set controller mode command"  immediately after send a "write a message command"   in one task .

2 . event when I seprate them in two task (each task cycle is 1ms),  I met the same issue.

Very hope to recieve your answers , thank you very much !

Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

532 Views
MayanksPatel
NXP Employee
NXP Employee

Hi @chenhong,

Hope you are doing well.

When you send the "Set Controller Mode Command", the LLCE controller will issue a notification of its state in the "Set Controller Mode notification" command. Have you checked the controller state before writing a message to it?

Also, Can you try to increase the delay of the write a message command thread from 1 ms to 10 ms or even more?

Let us know if it doesn't work.

 

Regards,

Mayank s Patel

 

0 Kudos
Reply