How to add CANBUS into KBOOT V1.2 for FREEDOM K64F

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

How to add CANBUS into KBOOT V1.2 for FREEDOM K64F

1,324 次查看
a8Chcx
Contributor V

Hi,

I am using KBOOT V1.2 on FREEDOM K64F and works fine on UART.

Now, I want to add CANBUS interface on this module. I tested the CANBUS interface working fine on PTB18&19 pin when I am using the project generated by PE.

When I am using MKV46 sample as my CANBUS interface for FREEDOM K64F and copy the required files into my project. The compiling and linking are fine, but I can't get the CANBUS communication working.

Could you tell me where I need to change, CLOCK initialization, CANBUS HAL function, CANBUS driver function, and etc...?

Thanks,

Christie

0 项奖励
回复
3 回复数

1,028 次查看
jay_heng
NXP Employee
NXP Employee

Please refer to Chapter 10(Kinetis bootloader porting) of <<Kinetis Bootloader v1.2.0 Reference Manual>> in the release package.

0 项奖励
回复

1,028 次查看
a8Chcx
Contributor V

Hi,

I tried to get the system clock for FREEDOM K64F bootloader. Here are what I got:

1) SystemCoreClock = 48,000,000 Hz.

2) get_bus_clock() = 48,000,000 Hz

Looks like it is not 120,000,000Hz that was said in document. Could you tell me where is wrong?

What is frequency for system clock, bus clock, and etc...

Thanks,

Christie

0 项奖励
回复

1,028 次查看
jay_heng
NXP Employee
NXP Employee

the clock settings of bootloader target are not the same, please check clock_config_xxdevice.c in \targets\xxdevice\src\.

0 项奖励
回复