This is an old revision of the document!
Table of Contents
Freescale FRDM-KL25Z
Headers
The FRDM-KL25Z doesn't come with header sockets, the following items were bought to fulfil this requirement.
1 x TE CONNECTIVITY / AMP-215307-6-SOCKET, VERTICAL, 2ROW, 12WAY 2 x TE CONNECTIVITY / AMP-215307-8-SOCKET, VERTICAL, 2ROW, 16WAY 1 x TE CONNECTIVITY / AMP-1-215307-0-SOCKET, VERTICAL, 2ROW, 20WAY
One day I may solder them in place.
Bootloader
Out the box this board doesn't work with anything resembling a modern day computer.
You have to download new firmware to upgrade it from version 0.11 to something higher. Somehow I managed to get it working using Windows XP in a VirtualBox VM.
Once that magically worked I updated it to J-Link for NXP.
The files I think I used to proceed were (I have a bad memory but this is probably close):
DEBUG-APP_Pemicro_v108.SDA BOOTUPDATEAPP_Pemicro_v111.SDA 12_OpenSDA_FRDM-KL25Z.bin
Good luck.
Programming
frdm-kl25z.jlink
USB 000000123456 Device MKL25Z128xxx4 SelectInterface SWD Speed 4000 Reset Exit
/opt/JLink/JLinkExe ./frdm-kl25z.jlink SEGGER J-Link Commander V7.82 (Compiled Oct 13 2022 13:42:33) DLL version V7.82, compiled Oct 13 2022 13:42:08 J-Link Command File read successfully. Processing script file... J-Link>USB 000000123456 Connecting to J-Link via USB...O.K. Firmware: J-Link OpenSDA compiled May 27 2019 10:59:53 Hardware version: V1.00 J-Link uptime (since boot): N/A (Not supported by this model) S/N: 621000000 VTref=3.300V J-Link>Device MKL25Z128xxx4 J-Link>SelectInterface SWD Selecting SWD as current target interface. J-Link>Speed 4000 Selecting 4000 kHz as target interface speed J-Link>Reset Target connection not established yet but required for command. Device "MKL25Z128XXX4" selected. Connecting to target via SWD ConfigTargetSettings() start ConfigTargetSettings() end InitTarget() start InitTarget() InitTarget() end Found SW-DP with ID 0x0BC11477 DPv0 detected CoreSight SoC-400 or earlier AP map detection skipped. Manually configured AP map found. AP[0]: AHB-AP (IDR: Not set) AP[1]: MEM-AP (IDR: Not set) AP[0]: Core found AP[0]: AHB-AP ROM base: 0xF0002000 CPUID register: 0x410CC600. Implementer code: 0x41 (ARM) Found Cortex-M0 r0p0, Little endian. FPUnit: 2 code (BP) slots and 0 literal slots CoreSight components: ROMTbl[0] @ F0002000 [0][0]: F0000000 CID B105900D PID 000BB932 MTB-M0+ [0][1]: F0001000 CID B105900D PID 0008E000 MTBDWT [0][2]: E00FF000 CID B105100D PID 000BB4C0 ROM Table ROMTbl[1] @ E00FF000 [1][0]: E000E000 CID B105E00D PID 000BB008 SCS [1][1]: E0001000 CID B105E00D PID 000BB00A DWT [1][2]: E0002000 CID B105E00D PID 000BB00B FPB Cortex-M0 identified. Reset delay: 0 ms Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit. Reset: Halt core after reset via DEMCR.VC_CORERESET. Reset: Reset device via AIRCR.SYSRESETREQ. J-Link>Exit Script processing completed.