Overview
This document describes how to use ezport module on TWR-K22F120M, and the usage of ezport on other platforms is similar.
The EzPort module is a serial flash programming interface that enables In-System Programming (ISP) of flash memory contents in a 32-bit general-purpose microcontroller.
The block diagram of EzPort module is as follows:
Hardware environments
Because the EzPort module is a serial flash programming interface that is compatible with a subset of the SPI format. TWR-K60D100M is used as a SPI master and TWR-K22F120M is used as a slave. The flash memory contents of TWR-K22F120M can be read/erased/programmed from TWR-K60D100M.
Connect the TWR-K60D100M and TWR-SER by two tower boards, the execution result will be outputed by uart.
Step 1:TWR-K22F120M enters into EzPort mode
Hardware setup:
If the TWR-K22F120M wants to enter EzPort mode, the EZP_CS pin should be asserted and then reset pin is asserted.
TWR-K60D100M TWR-K22F120M
PTC6(J11 A71) EZP_CS(J31 Pin9)
Software setup:
Step 2: Use EzPort to read/erase/program the flash
Hardware setup:
TWR-K60D100M TWR-K22F120M
PTD0(J11 B63) EZP_CS(J31 Pin9)
PTD1(J11 B64) EZP_CLK(J31 Pin4)
PTD2(J11 A76) EZP_DI(J31 Pin8)
PTD3(J11 A77) EZP_DO(J31 Pin6)
GND(J11 B65) GND(J31 Pin5)
Note: TWR-K60D100M and TWR-K22F120M should have common ground.
Software setup:
I was looking for comprehensive documentation on how to reprogram devices using the Ezport but this is the best I have found so far.
It would be neat if a PE component or a library in the Kinetis SDK was available to drive the Ezport of a second MCU.
I am contemplating a system where a K24 drives a K22 via a master/slave SPI link but also the K24 drives the K22 Ezport for system firmware upgrades
without having to connect to the JTAG of the K22. Can anyone advise on the practicality of this architecture?
Hi
https://community.nxp.com/message/598772
https://www.youtube.com/watch?v=5fI44hFcF18&feature=youtu.be
http://www.utasker.com/docs/uTasker/uTaskerEzPortCloner.pdf
Has been available in the uTasker project for years...
Regards
Mark