Code to write to MCU flash
C Python Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Makefile
README.md
kinetis_e_ftmre_flash_algorithm.c
kinetis_e_ftmrh_erase_sectors.c
kinetis_e_ftmrh_flash_algorithm.c
kinetis_e_wdog_disable.c
make_c_array_from_asm_listing.py

README.md

myelin-mcu-flash

In Feb 2016 I started writing a flash driver for OpenOCD for the Freescale Kinetis E series of microcontrollers, so I could program and debug my MKE02Z64VLD2 and MKE04Z8VTG4 chips while my J-Link was being repaired by Segger. After getting the KE02 driver working, I found that someone else had already written and tested a flash driver for the KE02/04/06 series, so I abandoned my OpenOCD work. This repository contains the most useful offshoots of that work -- a bunch of chunks of code that can be used to disable the watchdog and program the flash on the KE02 and maybe KE04 chips, and also to compile ARM C code and produce a fairly nice looking listing that can be included into a flash driver.

Hopefully this will come in handy for someone, for writing flash drivers, bootloaders, or flash/EEPROM access code for these chips in future! If you use this code, please let me know.

Blog posts:

Phillip Pearson pp@myelin.co.nz