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

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

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

702 Views
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 Kudos
3 Replies

406 Views
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 Kudos

406 Views
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 Kudos

406 Views
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 Kudos