developing a baremetal application for MKL14Z

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

developing a baremetal application for MKL14Z

跳至解决方案
1,410 次查看
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).

标记 (3)
0 项奖励
回复
1 解答
1,155 次查看
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 项奖励
回复
2 回复数
1,156 次查看
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 项奖励
回复
1,155 次查看
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 项奖励
回复