How to use EzPort module

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to use EzPort module

How to use EzPort module

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:

bd.jpg

Hardware environments

  • TWR-K60D100M
  • TWR-K22F120M
  • TWR-SER
  • Primary and Secondary Tower boards

     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 1TWR-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:

  1. Open the project “ezport_test_kinetis”;
  2. Define the MACRO “ENTER_EZPORT_MODULE” in hal_config.h;
  3. Build and download the program into TWR-K60D100M, run it, then EZP_CS pin of TWR-K22F120M will be asserted.
  4. Then power-on the TWR-K22F120M. The TWR-K22F120M will enter into EzPort mode.

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:

  1. Open the project “ezport_test_kinetis”;
  2. Undefine the MACRO “ENTER_EZPORT_MODULE” in hal_config.h, then EzPort test codes will be enabled;
  3. Build and download the program into TWR-K60D100M, run it, then the flash memory contents of TWR-K22F120M can be read/erased/programmed from TWR-K60D100M, the execution result will output to the console by uart.
タグ(1)
添付
コメント

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?

評価なし
バージョン履歴
最終更新日:
‎09-14-2014 06:36 PM
更新者: