AN845
PRODUCTION PROGRAMMING OF EM35X CHIPS
(Formerly doc ument 120-5065-000)
This docum ent describes the flash program m ing i nterface of EM35x c hips, and is intended for pr oduc tion
programming of chips on a manufacturi ng line. The descri ption assum es al l c hips being programmed are new from
the distributor and hav e never been programmed before, but m ay still c ontain test code in the MFB. The proc es s
described in this document is i ntended to program a final, fix ed im age and is not i ntended f or use during application
dev elopment. Thi s document al so assum es the c onnec tion bet ween the chip bei ng pr ogr ammed and the
program mer is reli able and er r or free.
New in This Revision
Updated pr ogr am m ing steps to add the “ E r ase CIB ” step and better described progr amming write protecti on.
C
ontents
1
Introduction ..................................................................................................................................................... 3
2 Pin Connec tions .............................................................................................................................................. 3
3 Seri al Wire and JTAG Interf ace ....................................................................................................................... 5
4 Memor y Organization ...................................................................................................................................... 6
4.1 Flash ........................................................................................................................................................ 6
4.2 RAM ........................................................................................................................................................ 7
5 Descript ion and Creati on of Programming Image ............................................................................................. 7
5.1 File Format ............................................................................................................................................... 7
5.2 Creation of a Programming Image ............................................................................................................ 7
6 Programming Over view ................................................................................................................................... 8
7 Programm ing Details ....................................................................................................................................... 8
7.1 Powerup and CPU Capture ...................................................................................................................... 8
7.2 Install and Execut e Flashloader Firmware ................................................................................................ 8
7.3 Disabl e Read/Write Prot ection .................................................................................................................. 9
7.4 Mass Erase MFB...................................................................................................................................... 9
7.5 Program MFB........................................................................................................................................... 9
7.6 Erase CIB ...............................................................................................................................................10
7.7 Program CIB ...........................................................................................................................................10
7.8 Final V erification .....................................................................................................................................10
8 Gang Progr amming ........................................................................................................................................10
9 Serialization ...................................................................................................................................................10
10 ARM
®
Cortex
TM
-M3 CPU Manipulati on Details ............................................................................................11
Rev 0.2 Copyright © 2014 by Sili con Laboratories AN845
AN845
10.1 Halting Core Reset ..............................................................................................................................11
10.2 Stack Pointer Write ..............................................................................................................................11
10.3 Program Counter Write ........................................................................................................................11
10.4 Si ngle Step ..........................................................................................................................................11
10.5 Run .....................................................................................................................................................11
11 Flashloader Fi rmware Timi ng ......................................................................................................................11
12 Flashloader Fi rmware and Interface ............................................................................................................12
13 After Reading this Document ......................................................................................................................17
2 Rev. 0.2