background image

1-10

56F8xx: Serial Bootloader User Manual

MOTOROLA

Bootloader

Application COP vector - To use COP interrupt vector in an application loaded via 
Bootloader, the entry point for the COP ISR must be located at address 0x0082 in Program 
memory

Application start delay variable must be set at address 0x0085 in Program Flash 

Restricted resources use - The application cannot occupy Reset and COP interrupt 
vectors, and cannot place code into Boot Flash memory area. There is no way to place any 
initialized variable from the application into internal data RAM while loading. This 
memory area is used by Bootloader. All data from the S-Record file that address to the 
restricted area will be ignored. External Program memory is unavailable while loading the  
application because the Bootloader is performed in DSP Mode 0A memory map.

The Bootloader provides a configuration variable (BSP_BOOTLOADER_DELAY) can be 
defined in the Bootloader’s appconfig.h file that determines  the application’s start delay time-out. 

Possible values of BSP_BOOTLOADER_DELAY:

If there is no BSP_BOOTLOADER_DELAY set in the appconfig.h file, the default value for 
time-out is 30 seconds.

1.1.7  

S-Record Generation

Figure 1-5

 illustrates how a user’s application within Code Warrior can be set up to generate an S-Record 

needed by the Bootloaders to program the user’s application into the 56F8xx device’s Flash.

0

Disable the Bootloader, start the application 
immediately. After loading the application with this 
setting, there are only two ways to re-enter Bootloader: 

Reload the Bootloader from Metrowerks 
CodeWarrior into Boot Flash 

Reprogram the value of the start delay variable 
located at address 0x0083 in the Program Flash 
to zero value (0x0000) in the loaded application

0 - 254

Set waiting time for the start of the S-Record file for 
0-255 seconds before the start of a previously-loaded 
application

255

Set waiting time to infinity. After reset, the Bootloader 
waits for the S-Record file without counting down any 
time-out

 

   

  

F

re

e

sc

a

le

 S

e

m

ic

o

n

d

u

c

to

r,

 I

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

 

Freescale Semiconductor, Inc.

For More Information On This Product,

   Go to: www.freescale.com

n

c

.

..

Summary of Contents for 56F800

Page 1: ...NDUCTORS 56F800 Hybrid Controller 56F8xx Serial Bootloader User Manual DSP56F8xxBLUM D Rev 1 08 19 2003 Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc ...

Page 2: ...Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc ...

Page 3: ... 1 Files 1 2 1 1 2 Bootloader Hardware Set up 1 2 1 1 3 Target Consideration 1 5 1 1 4 Build 1 7 1 1 5 Execute 1 8 1 1 6 Requirements for a Loaded Program 1 9 1 1 7 S Record Generation 1 10 1 1 8 Peripheral Usage 1 11 Chapter 2 License 2 1 Limited Use License Agreement 4 1 Contents Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc...

Page 4: ...ii 56F8xx Serial Bootloader User Manual MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc ...

Page 5: ...st of Tables iii Table 1 1 Error Codes for the Serial Bootloader Application 1 9 List of Tables Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc ...

Page 6: ...iv 56F8xx Serial Bootloader User Manual MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc ...

Page 7: ... via Serial Bootloader 1 3 Figure 1 3 56F827 Boot Memory 1 6 Figure 1 4 Programming the 56F827 Bootloader 1 7 Figure 1 5 S Record Settings in the User Application s Project Settings 1 11 List of Figures Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc ...

Page 8: ...vi 56F8xx Serial Bootloader User Manual MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc ...

Page 9: ...following sections Chapter 1 Bootloader describes the Serial Bootloader applications provided with the FlexCAN driver Suggested Reading We recommend that you have a copy of the following references Motorola DSP56800E Reference Manual DSP56800ERM D 56F8300 Peripheral User Manual MC56F8300UM D Inside CodeWarrior Core Tools Metrowerks Corp Freescale Semiconductor I Freescale Semiconductor Inc For Mor...

Page 10: ...t defined in the C header file aec h Bold Reference sources paths emphasis refer to the Targeting DSP56F80x Platform manual see C Program Files Motorola Embedded SDK help tutorials Blue Text Linkable on line refer to Chapter 7 License Number Any number is consid ered a positive value unless preceded by a minus symbol to signify a negative value 3V 10 DES 1 ALL CAPITAL LETTERS defines defined const...

Page 11: ... acronyms are in solid caps terms in the definition should be initial capped ONLY IF they are trademarked names or proper nouns EVM Evaluation module PC Personal Computer PLL Phase Locked Loop RAM Random Access read write Memory SCI Serial Communications Interface References The following sources were used to produce this book 1 Motorola DSP56800E Reference Manual DSP56800ERM D 2 56F8300 Periphera...

Page 12: ...x 56F8xx Serial Bootloader User Manual MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc ...

Page 13: ...eads the S Record file of a user application for example generated by CodeWarrior via serial interface parses this S Record file and stores needed data in Program and Data Flash memory When the processing of the S Record file is finished the Bootloader launches the loaded application If any error occurs while loading the S Record file the Bootloader outputs an error message with an error number vi...

Page 14: ...on applications serial_bootloader flashprog c flash programming subsystem applications serial_bootloader flashprog h flash programming subsystem applications serial_bootloader TargetDirectives Board name definition applications serial_bootloader config linker cmd linker command file used for Boot Flash applications serial_bootloader config flash cfg Metrowerks CodeWarrior configuration file to wor...

Page 15: ...r JG2 Enable on board Parallel JTAG Host Target Interface Set jumper JG4 Select DSP s Mode 0 operation upon exit from reset To start a previously loaded Bootloader on the 56F803 board the following jumper settings are required Set jumper JG2 Enable on board Parallel JTAG Host Target Interface Set jumper JG4 Select DSP s Mode 0 operation upon exit from reset 1 1 2 1 3 56F805 To load the Bootloader ...

Page 16: ...o the 56F826 board the following jumper settings are needed Set jumper JG6 Select DSP s Mode 0 operation upon exit from reset Remove jumper JG2 Enable RS 232 output Remove jumper JG1 Enable on board Parallel JTAG Host Target Interface To start a previously loaded Bootloader on the 56F826 board the following jumper settings are needed Set jumper JG1 Enable on board Parallel JTAG Host Target Interfa...

Page 17: ...3 2 56F827 1 1 3 2 1 56F827 Boot Flash The 56F827 has 63KB of on chip Program Flash memory and 1KB of on chip Program RAM Unlike the 56F826 which has dedicated Boot Flash hardware the 56F827 has no dedicated Boot Flash hardware As shown in Figure 1 3 Boot Flash is carved from Program Flash 2 and Program Flash 1 The Bootloader is mapped to Program Flash 2 at location 0xF800 to 0xFFFF 1 1 3 2 2 56F8...

Page 18: ... Program Flash 2 with user application code Every time the 56F827 power is recycled or reset the Serial Bootloader resident in the Boot Flash will re copy Flash programming functions from the Boot Section to Program RAM Figure 1 4 demonstrates how the Bootloader program code which is configured for internal memory operation will be mapped into physical memory on the 56F827 target using CodeWarrior...

Page 19: ...umpers are set for loading as described in Section 1 1 2 1 0x0000 0x0003 Program Memory Boot Reset Vectors Using CodeWarrior Tools 56F827 Memory Map Load 56F827 Memory Flash1 Boot Flash RAM 0x0004 0x7FFF 0x7C00 0x7FFF Flash2 0x8000 0xF7FF 0xF800 0xFFFF User Application Code for Flash 1 User Application Code for Flash 2 bootstart c prog c bootloader c sparser c com c Bootloader Serial and S Record ...

Page 20: ...ect the Transfer Send text file from the HyperTerminal menu and select a file When the S Record file is loaded and the application is started the terminal windows displays a message similar to this c 2000 2001 Motorola Inc S Record loader Version 1 1 Loaded 0x044d Program and 0x000a Data words Application started The download rate is about 7660 bytes of S Record file per second loaded from the ter...

Page 21: ...run Frame Error Parity Error Check connections with Host PC and settings for host terminal program 2 Invalid Character Received character is not S or any hexadecimal digit Verify that S Record file does not contain any invalid characters Check connections and send mode in the terminal program 3 Invalid S Record Format Invalid record type permitted type is 0 3 7 S Record length is less than address...

Page 22: ...rmines the application s start delay time out Possible values of BSP_BOOTLOADER_DELAY If there is no BSP_BOOTLOADER_DELAY set in the appconfig h file the default value for time out is 30 seconds 1 1 7 S Record Generation Figure 1 5 illustrates how a user s application within Code Warrior can be set up to generate an S Record needed by the Bootloaders to program the user s application into the 56F8...

Page 23: ...ernal Data RAM for data buffering The Bootloader does not initialize any device peripheral except SCI0 Port E and PLL The PLL multiplier is set to18 which equals the hybrid controller s operational frequency of 72MHz Before starting the application SCI0 is disabled but the PLL is not reprogrammed to its initial state The Bootloader uses a statically calculated SCI baud rate value This value was ca...

Page 24: ...1 12 56F8xx Serial Bootloader User Manual MOTOROLA Bootloader Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc ...

Page 25: ...tents copyrights and trade secrets applicable thereto shall remain vested in Motorola For the Source Motorola grants Licensee a personal non exclusive non assignable revocable royalty free right to use copy and make derivatives of the Source solely in a development system environment in order to produce object code solely for operating on a Motorola semiconductor device having a central processing...

Page 26: ...omponents in systems intended for surgical implant into the body or other applications intended to support or sustain life or for any other application in which the failure of the Software could create a situation where personal injury or death may occur Should Licensee purchase or use the Software for any such unintended or unauthorized application Licensee shall indemnify and hold Motorola and i...

Page 27: ...ii L linker cmd file 1 2 M Motorola DSP56800E Reference Manual vii ix P PC ix Personal Computer PC ix Phase Locked Loop PLL ix PLL ix 1 11 Port E 1 11 R RAM ix Random Addess Memory RAM ix S SCI ix SCI0 1 11 Serial Communications Interface SCI ix S Record file 1 1 T Target Directives file 1 2 1 5 Index Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to ...

Page 28: ...mance may vary over time All operating parameters including Typicals must be validated for each customer application by customer s technical experts Motorola does not convey any license under its patent rights nor the rights of others Motorola products are not designed intended or authorized for use as components in systems intended for surgical implant into the body or other applications intended...

Reviews: