Download Tooling Guide - XMC4000 - ASC Bootloader
Transcript
Tooling Guide for XMC4000 AP32235 Table of Contents Table of Contents 1 1.1 1.2 Introduction ............................................................................................................... 3 Tool-chains .......................................................................................................................................... 3 Example Flash program ...................................................................................................................... 3 2 2.1 2.2 2.3 2.4 2.5 ASC Bootstrap Loading ................................................................................................ 5 Flash Loader ........................................................................................................................................ 7 DAV4 Project Settings ......................................................................................................................... 7 Keil Project Settings ............................................................................................................................ 7 IAR Project Settings ............................................................................................................................ 8 Modification of startup.s File .............................................................................................................. 8 3 3.1 3.2 3.3 Flash Memory Organization ....................................................................................... 10 XMC4500 ............................................................................................................................................ 10 XMC4400 ............................................................................................................................................ 11 XMC4200 ............................................................................................................................................ 11 4 4.1 4.2 4.3 4.4 4.5 4.6 4.7 Communication Protocol ........................................................................................... 12 Mode 0: Program Flash Page............................................................................................................. 12 Mode 1: Execute User Program from Flash ...................................................................................... 13 Mode 2: Execute User Program from iCache .................................................................................... 14 Mode 3: Erase Flash Sector ............................................................................................................... 14 Mode 4: Read Flash Protection Status .............................................................................................. 14 Mode 5: Protect or Unprotect Flash .................................................................................................. 15 Response Code to the HOST ............................................................................................................. 16 5 HOST PC Program Example ....................................................................................... 17 6 6.1 6.2 6.3 Using the Demonstrator............................................................................................. 20 Hardware Setup ................................................................................................................................ 20 Demonstrator File Structure ............................................................................................................. 20 Run the Demonstrator ...................................................................................................................... 21 7 Reference Documents................................................................................................ 24 8 Revision History........................................................................................................ 25 Application Note 2 V1.2, 2015-05 Customer Documentation