herunterladen

1 Overview
This application note discusses important considerations and
guidelines for implementing in-software flash programming
on Kinetis and ColdFire+ MCUs. The methods described
provide a means to perform in-software flash programming on
devices with a single flash block or devices that do not allow
memory reads while writes are occurring within the same
block.
The techniques described are utilized in the Kinetis 100 MHz
sample code. Also, the examples provided in this application
note use the TFS Flash Driver Software for Kinetis and
ColdFire+ MCUs. See References section for details.
The examples provided in the application note support:
• IAR Embedded Workbench 6.40
• Freescale CodeWarrior 10.2/10.3 with Freescale
compiler
• Freescale CodeWarrior 10.3 with GCC compiler
Any other development environment must be able to support
the methods described.
Contact IAR (iar.com) or Freescale CodeWarrior
(freescale.com/CodeWarrior) for additional help and
support.
Freescale Semiconductor
Document Number:AN4695
Application Note
Rev. 0, 04/2013
Avoiding Read While Write Errors
When Developing In-Software
Flash Programming Applications
for Kinetis and ColdFire+ MCUs
by:
Chris Brown, Maclain Lobdell, and Melissa Hunter
© 2013 Freescale Semiconductor, Inc.
Contents
1 Overview....................................................................1
2 Introduction: In-software flash
programming.............................................................2
3 Procedure...................................................................4
4 Size of RAM function...............................................4
5 Using the C90TFS Flash Driver Software
for Kinetis and ColdFire+ Microcontrollers.............5
6 Instructions for creating a RAM
function......................................................................5
7 References...............................................................10