developing a baremetal application for MKL14Z

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

developing a baremetal application for MKL14Z

Jump to solution
735 Views
ulivinico
Contributor II

I'm developing an application for MKL14Z.

May you suggest me some "starting code" or example projects for these microcontroller family to start with?

Where may I find specific header file such as "MKL14Z4.h" (not CMSIS).

Tags (3)
0 Kudos
1 Solution
480 Views
DavidS
NXP Employee
NXP Employee

Hi Ulivini Co,

The KL14 is a subset of the KL25 device.

The KL25 has board support as standalone Freedom board or as Tower kit.

Please visit: FRDM-KL25Z Product Summary Page

Click the Download page to access tools and software: FRDM-KL25Z Product Summary Page

Look for following:

KL25_SC: FRDM-KL25Z and TWRKL25Z48M Sample Code Package.

Size (K): 25760 Format: exe Rev #: 8 Modified: 7/23/2013

kl25_sc_rev8\klxx-sc-baremetal\src\cpu\headers\MKL25Z4.h is super set header to cover the KL14 as well.


Also please review this post:

https://community.freescale.com/thread/312263

Regards,

David

View solution in original post

0 Kudos
2 Replies
481 Views
DavidS
NXP Employee
NXP Employee

Hi Ulivini Co,

The KL14 is a subset of the KL25 device.

The KL25 has board support as standalone Freedom board or as Tower kit.

Please visit: FRDM-KL25Z Product Summary Page

Click the Download page to access tools and software: FRDM-KL25Z Product Summary Page

Look for following:

KL25_SC: FRDM-KL25Z and TWRKL25Z48M Sample Code Package.

Size (K): 25760 Format: exe Rev #: 8 Modified: 7/23/2013

kl25_sc_rev8\klxx-sc-baremetal\src\cpu\headers\MKL25Z4.h is super set header to cover the KL14 as well.


Also please review this post:

https://community.freescale.com/thread/312263

Regards,

David

0 Kudos
480 Views
ulivinico
Contributor II

Thank you. I was able to run example "low_power_dma_uart_demo".

Then I've made a new project "TESTPRJ" by using "make_new_cw_project.exe" 

and I've created the directory "kl25_sc_rev8\klxx-sc-baremetal\src\projects\TESTPRJ" where I've copied the example code in "platinum".

These steps were ok and I was able to compile and debug the project.

Anyway, trying to compile other projects such as "FRDM_KL25ZDemo" I have several errors. Firstly, the files in subdirectories are not included, and this is easily solved by adding them to the project; then Codewarrior finds multiple definitions of some declaration since it finds, e.g., a second "sysinit.c".

Since it looks that I'm not following correct methods I would like to ask you which is the correct way to compile the given code? Thank you

0 Kudos