Changing CAN_LDD Properties Run-Time

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

Changing CAN_LDD Properties Run-Time

跳至解决方案
1,767 次查看
Vagni
Contributor IV

I am developing my application on Kinetis K60 with CodeWarrior 10.2 with ProcessorExpert 5.3 and MQX 3.7.

I used ProcessorExpert to make my custom BSP device drivers.

My application has to communicate on a CAN bus, so I use the CAN_LDD embedded component.

 

Now my application needs to set the CAN bus bit-rate  upon its configuration changes, that can occur run-time.

 

In the Serial_LDD component for driving the UART I find some methods to change run-time baud-rate, data-width, parity, etc.

But in the CAN_LDD component I find no methods like those to change the CAN bus bit-rate.

 

How can I change run-time the CAN_LDD properties like bit-rate?

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,546 次查看
ProcessorExpert
Senior Contributor III

Hello,

 

Unfortunatelly, this is a limitation of the CANs component  that the speed cannot be changed at runtime. The only workaround is to add user code that modifies content of the registers influencing the speed.

I will pass this to the development to consider the component extension for the future versions. 

 

best regards
Vojtech Filip
Processor Expert Support Team

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,547 次查看
ProcessorExpert
Senior Contributor III

Hello,

 

Unfortunatelly, this is a limitation of the CANs component  that the speed cannot be changed at runtime. The only workaround is to add user code that modifies content of the registers influencing the speed.

I will pass this to the development to consider the component extension for the future versions. 

 

best regards
Vojtech Filip
Processor Expert Support Team

0 项奖励
回复