What pins are used to program and debug the kl2x series

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

What pins are used to program and debug the kl2x series

1,513 次查看
lancerobbins
Contributor I

I have researched the decided that I would like to use the KL24 in my newest design.  I have created most of the schematic but it missing on how to load code onto it. I have never used the KL2x series microcontrollers before and I am not sure what lines are used to connect a JTAG programmer to. 

Do I load my code directly via the USB connection?

How do I debug my code?

Complete part number that I intend to use is MKL24Z32VFM4.

标签 (1)
0 项奖励
回复
4 回复数

1,394 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Lance Robbins,

Here is the SWD debug port for Kinetis L series.

Figure 2-6. 10-pin debug interface.png

You also need to pay attention to the connection of 'RESET_b and NMI_b'.

2.1.3.4.1 RESET_b and NMI_b.png

Kinetis L Peripheral Module Quick Reference is recommend for you to read.

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,394 次查看
lancerobbins
Contributor I

Thank you Mark and Robin,

Below is what I got from your input.  I wasn't sure what to do with the NMI_b pin so i tied it to 3V3 through a pull-up. 

In my application I will not need a push button reset button as shown in FRDM-KL25Z_SCH_REV_E.pdf.

My circuit is low power and I plan on using the KL24 internal USB Voltage regulator to generate 3V3. It normal operating current should be around 20mA not counting what the KL24 microcontroller uses.

If you see a problem please let me know.

Untitled.png

Thanks very much,

Lance

0 项奖励
回复

1,394 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

External Capacitor should be connected with Pin VOUT33.

Figure 9-3. Voltage regulator block diagram.png

With the low-power mode, the oscillator has the internal feedback resistor RF. Therefore, the feedback resistor must not be
externally with the Connection 3.

25.5 External Crystal  Resonator Connections.png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,394 次查看
mjbcswitzerland
Specialist V

Hi

The KL24 doesn't have JTAG - it has SWD.
Copy the SWD connection circuit from the FRDM-KL25Z diagram: https://www.nxp.com/downloads/en/schematics/FRDM-KL25Z_SCH_REV_E.pdf 

There is no ROM loader in the KL24 so you need a debugger (eg. J-Link or P&E) to program it. Code debugging can be done with the same tool using a variety of IDEs - KDS is suitable.

Regards

Mark

Kinetis: http://www.utasker.com/kinetis.html
KL25:
- http://www.utasker.com/kinetis/FRDM-KL25Z.html
- http://www.utasker.com/kinetis/TWR-KL25Z48M.html
- http://www.utasker.com/kinetis/RD-KL25-AGMP01.html

0 项奖励
回复