Master Bilt J - Version GT-60 s Specifiche

Navigare online o scaricare Specifiche per no Master Bilt J - Version GT-60 s. Master Bilt J - Version GT-60 s Specifications Manuale Utente

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 74
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 0
Freescale Semiconductor
Application Note
Document Number: AN2295
Rev. 13, 10/2013
Contents
© 2013 Freescale Semiconductor, Inc. All rights reserved.
1 Project objectives
The developer's serial bootloader offers to user easiest
possible way how to update existing firmware on most of
Freescale microcontrollers in-circuit. In-circuit
programming is not intended to replace any of debugging
and developing tool but it serves only as simple option of
embedded system reprogramming via serial
asynchronous port or USB. The microcontrollers
supported by the developer's serial boot loader include
8-bit families HC08 and HCS08, and 32-bit families,
ColdFire and Kinetis. New Kinetis families include
support for K and L series.
This application note is for embedded-software
developers interested in alternative reprogramming
tools. Because of its ability to modify MCU memory
in-circuit, the serial bootloader is a utility that may be
useful in developing applications.
The developers serial bootloader is a complementary
utility for either demo purposes or applications originally
developed using MMDS and requiring minor
1 Project Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 FC Protocol Description. . . . . . . . . . . . . . . . . . . . . . . . . . 3
3 FC Protocol, Version 1, M68HC908 Implementation. . . 12
4 FC Protocol, Version 2, HC9S08 Implementation . . . . . 18
5 FC Protocol, Version 3, Large M68HC08
Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5 FC protocol, version 4, ColdFire (V1)
6 MCU Slave Software . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
7 PC Bootloader Master Software . . . . . . . . . . . . . . . . . . 41
8 Bootloading Procedure Demonstration . . . . . . . . . . . . . 46
9 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Developers Serial Bootloader
by: Pavel Lajsner, Pavel Krenek, Petr Gargulak
Vedere la pagina 0
1 2 3 4 5 6 ... 73 74

Sommario

Pagina 1 - 1 Project objectives

Freescale SemiconductorApplication NoteDocument Number: AN2295Rev. 13, 10/2013Contents© 2013 Freescale Semiconductor, Inc. All rights reserved.1 Proje

Pagina 2 - 1.1 Project goals

Developer’s Serial Bootloader, Rev. 13FC protocol descriptionFreescale Semiconductor10Figure 8. Ident command (FC protocol version 1, M68HC08)2.4.3 FC

Pagina 3 - 2 FC protocol description

FC protocol descriptionDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 112.4.4 Erase commandThe erase command (coded as ‘E’, $45) has on

Pagina 4 - 2.2 Clock source

Developer’s Serial Bootloader, Rev. 13FC protocol, version 1, M68HC908 implementationFreescale Semiconductor12The MCU sends this number of read bytes

Pagina 5 - Freescale Semiconductor 5

FC protocol, version 1, M68HC908 implementationDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 13Figure 14. Simplified example of memory

Pagina 6 - Freescale Semiconductor6

Developer’s Serial Bootloader, Rev. 13FC protocol, version 1, M68HC908 implementationFreescale Semiconductor14• $FC80 - Address of Bootloader user tab

Pagina 7 - Freescale Semiconductor 7

FC protocol, version 1, M68HC908 implementationDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 15Figure 15. Interrupt vector table reloc

Pagina 8 - 2.4 Interpreting MCU commands

Developer’s Serial Bootloader, Rev. 13FC protocol, version 1, M68HC908 implementationFreescale Semiconductor163.3.1 S19 fileBecause the bootloader ope

Pagina 9 - 1.Available since Q3 2011

FC protocol, version 1, M68HC908 implementationDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 173.5 M68HC08 system limitationsThis sect

Pagina 10 - M68HC08)

Developer’s Serial Bootloader, Rev. 13FC protocol, version 2, HC9S08 implementationFreescale Semiconductor18with an external voltage, VTST, present on

Pagina 11 - 2.4.6 Read command

FC protocol, version 2, HC9S08 implementationDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 19Figure 16. Simplified example of memory a

Pagina 12 - 2.4.8 Bootloader user table

Developer’s Serial Bootloader, Rev. 13Project objectivesFreescale Semiconductor2modifications to be done in-circuit. The serial bootloader offers a ze

Pagina 13 - 3.1 Memory allocation

Developer’s Serial Bootloader, Rev. 13FC protocol, version 2, HC9S08 implementationFreescale Semiconductor20• $1080 - Start address of reprogrammable

Pagina 14 - Freescale Semiconductor14

FC protocol, version 2, HC9S08 implementationDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 21Figure 17. Interrupt vector table relocat

Pagina 15 - Freescale Semiconductor 15

Developer’s Serial Bootloader, Rev. 13FC protocol, version 2, HC9S08 implementationFreescale Semiconductor22of the bootloader code. This allows the tr

Pagina 16 - 3.4 User code start

FC protocol, version 3, large M68HC08 implementationDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 235 FC protocol, version 3, large M6

Pagina 17 - 3.5.1 Memory occupied

Developer’s Serial Bootloader, Rev. 13FC protocol, version 4, ColdFire (V1)Freescale Semiconductor24Figure 18. Simplified Example of Memory Allocation

Pagina 18 - 3.5.5 SRS register unusable

FC protocol, version 4, ColdFire (V1)Developer’s Serial Bootloader, Rev. 13Freescale Semiconductor 25• $00410 - Start address of reprogrammable area #

Pagina 19 - 4.3 Example memory allocation

Developer’s Serial Bootloader, Rev. 13FC protocol, version 4, ColdFire (V1)Freescale Semiconductor26starts instead of the bootloader code. This allows

Pagina 20 - 4.4.1 S19 file

FC protocol, version 4, ColdFire (V1)Developer’s Serial Bootloader, Rev. 13Freescale Semiconductor 27Figure 20. Simplified example of memory allocatio

Pagina 21 - 4.5 User code start

Developer’s Serial Bootloader, Rev. 13FC protocol, version 4, ColdFire (V1)Freescale Semiconductor28• $03000 - Address of the relocated interrupt vect

Pagina 22 - 4.6 HCS08 system limitations

FC protocol, version 4, ColdFire (V1)Developer’s Serial Bootloader, Rev. 13Freescale Semiconductor 29The following figure represents the interrupt vec

Pagina 23 - Freescale Semiconductor 23

FC protocol descriptionDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 3implements all features as simply as possible, excluding checksu

Pagina 24 - 6.1.2 FLASH protection

Developer’s Serial Bootloader, Rev. 13FC protocol, version 5, KinetisFreescale Semiconductor307 FC protocol, version 5, KinetisThis section describes

Pagina 25 - 6.1.4 Software reset

FC protocol, version 5, KinetisDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 31Kinetis K60Example of modification ICF file in IAR6.4//

Pagina 26 - 6.1.5.1 Memory occupied

Developer’s Serial Bootloader, Rev. 13FC protocol, version 5, KinetisFreescale Semiconductor327.2 Interrupt vector table redirectionThe FLASH block pr

Pagina 27 - 6.2.2 FLASH protection

FC protocol, version 5, KinetisDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 33• $r14A -System Device Identification Register (SDID) c

Pagina 28 - 6.2.4 Limitations

Developer’s Serial Bootloader, Rev. 13FC protocol, version 5, KinetisFreescale Semiconductor34Figure 25. Interrupt Vector Table Relocation Explanation

Pagina 29 - Freescale Semiconductor 29

FC protocol, version 5, KinetisDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 35/** USER SETTINGS OF KINETIS MCU *//** Kinetis ARM Cor

Pagina 30 - 7.1 Memory allocation

Developer’s Serial Bootloader, Rev. 13FC protocol, version 5, KinetisFreescale Semiconductor36Number of UART & GPIO pin for receiver (Rx)#define B

Pagina 31 - Kinetis KL25

MCU slave softwareDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 37– The MCU with bigger/equal flash than 64 KB (2048 B flash protectio

Pagina 32 - 7.4 Example of IDENT command

Developer’s Serial Bootloader, Rev. 13MCU slave softwareFreescale Semiconductor38.Table 2. Target implementation comparisonMCU FamilyFLASH Memory Use(

Pagina 33 - 7.5 Software reset

MCU slave softwareDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 39MC68HC908QBQB4/QB8362/302 QB/QC ICG Yes Yes/No Hardware 64 32MC68HC9

Pagina 34 - PROTECTED

Developer’s Serial Bootloader, Rev. 13FC protocol descriptionFreescale Semiconductor4The following is a simplified state diagram that shows separate s

Pagina 35

Developer’s Serial Bootloader, Rev. 13MCU slave softwareFreescale Semiconductor408.1 MC68HC908KXThe M68HC908KX Family has an Internal Clock Generator

Pagina 36 - AN2295 bootloader

MCU slave softwareDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 41The on-chip FLASH programming routines simplify the bootloader and i

Pagina 37 - 8 MCU slave software

Developer’s Serial Bootloader, Rev. 13MCU slave softwareFreescale Semiconductor428.1.1 Internal Clock Generator (ICG) — initializationThe ICG is simpl

Pagina 38 - Freescale Semiconductor38

MCU slave softwareDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 43 TXA ;FEW CYCLES THAN EXPECTED, SO TRIM B

Pagina 39 - HCS08AW32/48/64

Developer’s Serial Bootloader, Rev. 13MCU slave softwareFreescale Semiconductor44Figure 27. MC68HC908JK/JL bootloaderRESETSRSR RESETSOURCE TESTMCU CON

Pagina 40 - 8.1 MC68HC908KX

MCU slave softwareDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 458.2.1 Software-SCI transmit char routineA detailed description of th

Pagina 41 - Freescale Semiconductor 41

Developer’s Serial Bootloader, Rev. 13MCU slave softwareFreescale Semiconductor46;********************************************************************

Pagina 42

MCU slave softwareDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 47Figure 30. Software-SCI receive char routineENTERRXD PIN ISINITIALIZ

Pagina 43 - 8.2 MC68HC908JK/JL

Developer’s Serial Bootloader, Rev. 13MCU slave softwareFreescale Semiconductor48;********************************************************************

Pagina 44 - Freescale Semiconductor44

MCU slave softwareDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 49SKIP1 MACRO DC.B $21 ; BRANCH NEVER (s

Pagina 45 - Freescale Semiconductor 45

FC protocol descriptionDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 5characters can be interpreted differently instead of original 0x

Pagina 46 - Figure 31

Developer’s Serial Bootloader, Rev. 13MCU slave softwareFreescale Semiconductor508.3 MC68HC908GPOn-chip FLASH programming routines are not available i

Pagina 47 - Freescale Semiconductor 47

MCU slave softwareDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 51Figure 33. MC68HC908GP bootloader flowchart8.3.1 FLASH programming r

Pagina 48 - 8.2.3 Macros

Developer’s Serial Bootloader, Rev. 13MCU slave softwareFreescale Semiconductor52• ERASE_ALG — whole FLASH erase routine• WR_ALG — whole WRITE erase r

Pagina 49

MCU slave softwareDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 53 LDA #%00001001STA FLCR ; set HVEN, keep PGMD_

Pagina 50 - 8.3 MC68HC908GP

Developer’s Serial Bootloader, Rev. 13MCU slave softwareFreescale Semiconductor54MC68HC908GP and MC68HC908GR MCUs are primarily targeted for use with

Pagina 51 - Freescale Semiconductor 51

MCU slave softwareDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 558.7.2 Single-Wire communicationBecause of the small number of pins o

Pagina 52

Developer’s Serial Bootloader, Rev. 13MCU slave softwareFreescale Semiconductor568.9 MC68HC908APMC68HC908AP devices are members of the M68HC08 Family

Pagina 53 - 8.4 MC68HC908GR

PC bootloader master softwareDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 57required for USB are also inside the JW32 folder of the A

Pagina 54 - 8.7 MC68HC908QT/QY

Developer’s Serial Bootloader, Rev. 13PC bootloader master softwareFreescale Semiconductor58The following figure displays the bootloader master flowch

Pagina 55 - 8.8 MC68HC908LJ

PC bootloader master softwareDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 59— hc08sprg.h— main.c• M68HC(S)08, ColdFire and Kinetis sp

Pagina 56 - 8.12 MC68HC908JW

Developer’s Serial Bootloader, Rev. 13FC protocol descriptionFreescale Semiconductor6If the MCU transmits to the PC at an unmatched data rate, the PC

Pagina 57 - 8.13 HCS08JM and MCF51JM

Developer’s Serial Bootloader, Rev. 13PC bootloader master softwareFreescale Semiconductor609.3 UART manipulationsIn seriallinux.c or serialw32.c, dep

Pagina 58 - 9.1 File structure

PC bootloader master softwareDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 61void CRC_AddByte(unsigned short *pCrc, unsigned char data

Pagina 59

Developer’s Serial Bootloader, Rev. 13Master applications user guidesFreescale Semiconductor62int read_blk(unsigned adr, int len, BYTE *dest)int prg_b

Pagina 60 - 9.3 UART manipulations

Master applications user guidesDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 6310.1 Bootloading operation (command line version)Open a

Pagina 61

Developer’s Serial Bootloader, Rev. 13Master applications user guidesFreescale Semiconductor64Figure 39. First stage of bootloadingConfirm by pressing

Pagina 62 - 9.6.9 Final unhook

Master applications user guidesDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 65Figure 40. Bootloading completed10.1.1 Memory boundary

Pagina 63 - Freescale Semiconductor 63

Developer’s Serial Bootloader, Rev. 13Master applications user guidesFreescale Semiconductor66Figure 41. Memory boundary overlap example

Pagina 64 - Freescale Semiconductor64

Master applications user guidesDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 6710.2 Bootloading operation (windows version)A version o

Pagina 65 - Freescale Semiconductor 65

Developer’s Serial Bootloader, Rev. 13Master applications user guidesFreescale Semiconductor6810.2.1 How to use the Windows version of master applicat

Pagina 66 - Freescale Semiconductor66

Master applications user guidesDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 69— Short TRIM - check if the target is configured to use

Pagina 67 - Freescale Semiconductor 67

FC protocol descriptionDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 7Figure 4. StartUp communication with calibrationIf the MCU is op

Pagina 68 - “Rescan”

Developer’s Serial Bootloader, Rev. 13Merging bootloader and application imagesFreescale Semiconductor705. Erase - this button invokes erase of whole

Pagina 69 - Freescale Semiconductor 69

ReferencesDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 71Figure 46. The AN2295 S19 Merge tool 12 ReferencesFor additional information

Pagina 70 - Freescale Semiconductor70

Developer’s Serial Bootloader, Rev. 13ReferencesFreescale Semiconductor72• ZSTARRM: Wireless Sensing Triple Axis Reference design• CFPRM: ColdFire® Fa

Pagina 71 - 12 References

Document Number: AN2295Rev. 1310/2013How to Reach Us:Home Page:freescale.comWeb Support:freescale.com/supportInformation in this document is provided

Pagina 72 - Freescale Semiconductor72

Developer’s Serial Bootloader, Rev. 13ReferencesFreescale Semiconductor74

Pagina 73 - How to Reach Us:

Developer’s Serial Bootloader, Rev. 13FC protocol descriptionFreescale Semiconductor82.4 Interpreting MCU commandsAfter communication between MCU and

Pagina 74 - Freescale Semiconductor74

FC protocol descriptionDeveloper’s Serial Bootloader, Rev. 13Freescale Semiconductor 9This command is immediately issued by the PC after communication

Commenti su questo manuale

Nessun commento