S32G LLCE (CAN) excute command return LLCE_ERROR_COMMAND_NOTACCEPTED

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32G LLCE (CAN) excute command return LLCE_ERROR_COMMAND_NOTACCEPTED

1,132 次查看
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 !

标签 (1)
标记 (1)
0 项奖励
回复
1 回复

1,056 次查看
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 项奖励
回复