The Bootconcept. of Fujitsu s MB91360 Devices

Similar documents
F²MC-8L FAMILY MB89201 SERIES FLASH PROGRAMMING 8-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

Emulator Setup Instructions for MB91360

16-Bit Emulator Setup for MB2141 and MB

F²MC-16FX FAMILY ALL SERIES FLASH SECURITY 16-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

MB90F3XX/F4XX/F5XX/F8XX/F9XX

F²MC-8FX FAMILY MB951XX SERIES SYNCHRONOUS FLASH PROGRAMMING 8-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

Application Note. Startup DevKit16. History 19 th June 00 TKa V1.0 started 20 th June 00 TKa V1.1 Some minor text corrections

F²MC-8FX FAMILY MB95100 SERIES EMULATOR HW SETUP 8-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

EMULATOR SETUP MB BIT COMPACT-ICE

F²MC-16LX FAMILY MB90F897 DUAL OPERATION FLASH 16-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

F2MC MB90385 series Evaluation Board Documentation. Revision Date Comment V New document

Fujitsu Microelectronics Europe Application Note MCU-AN E-V12 F²MC-16FX FAMILY 16-BIT MICROCONTROLLER ALL SERIES CLOCK OUTPUT APPLICATION NOTE

Application Note. EMC Design Guide. F 2 MC-8L Family. History 04 th Jul 02 NFL V1.0 new version

F²MC-16LX FAMILY MB90XXX RELOCATED INTERRUPT VECTOR TABLE 16-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

CPU369-Module Documentation. Fujitsu Microelectronics Europe GmbH Am Siebenstein Dreieich-Buchschlag, Germany

EMULATOR SYSTEM MB

GRAPHICS CONTROLLERS SPRITE ENGINE PERFORMANCE MB88F332 'INDIGO' MB88F333 'INDIGO-L' APPLICATION NOTE GRAPHICS COMPETENCE CENTER

FR FAMILY MB91460 SERIES MB91461 EMULATION 32-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

Fujitsu Microelectronics Europe Application Note MCU-AN E-V10 FR FAMILY 32-BIT MICROCONTROLLER MB91460 REAL TIME CLOCK APPLICATION NOTE

FR FAMILY FR60 FAMILY ISR DOUBLE EXECUTION 32-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

Fujitsu Semiconductor Europe User Manual. FSEUGCC-UM_SK-86R12-CPU01_Rev1.1 EMERALD-P CPU MODULE SK-86R12-CPU01 USERGUIDE

TRACE APPLICATION NOTE VERSION MB86R0X 'JADE' SERIES DEVICES & GREENHILLS TOOLCHAIN. Fujitsu Microelectronics Europe Application Note

Errata Sheet MB86296 Coral PA

Fujitsu Microelectronics Europe Application Note MCU-AN E-V10 F²MC-FR FAMILY 32-BIT MICROCONTROLLER MB91460 RELOAD TIMER APPLICATION NOTE

APIX AUTOMOTIVE SHELL SW-EMULATION USE CASE

F²MC-16FX FAMILY ALL SERIES STANDBY MODES & POWER MANAGEMENT 16-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

The following document contains information on Cypress products.

Application Note. Connecting standard LCD modules to. the MB90670/5 series. History 01 th Feb. 97 MM V1.0 started 28 th June 00 TKa V1.

FAQ list for MB86290 Cremson

Software Porting Access Library V02 to V03

JASMINE- Subboard Documentation. Fujitsu Microelectronics Europe GmbH Am Siebenstein Dreieich-Buchschlag, Germany

MB88F334 Indigo2 MB88F335 Indigo2-S MB88F336 Indigo2-N

SPI COMMUNICATION TO/FROM SERIAL EEPROM

FR FAMILY SK MAIN V1.2 EVALUATION BOARD USER GUIDE. Fujitsu Microelectronics Europe User Guide FMEMCU-UG

F²MC-16LX/FRLITE FAMILY COMPARISON OF MB90340 AND MB91270 SERIES MCU

GRAPHICS CONTROLLERS DEVICE SETUP AND FUJITSU DEVELOPER SUITE

FME FR FLASHPROGRAMMER

Fujitsu Semiconductor Europe User Manual. FSEUGCC-UM_SK-88F336-01_Rev1.0 INDIGO2-N STARTERKIT SK-88F USER MANUAL

Serial Flash Programmer Version 3.17 for FR Devices. User s Guide

FR30 example interface to external Flash Memory

SC2000 Smart Kit Selection Checklist

Fujitsu Microelectronics Europe Application Note MCU-AN E-V13 FR FAMILY 32-BIT MICROCONTROLLER MB91460 SWB MONITOR DEBUGGER APPLICATION NOTE

Fujitsu Semiconductor Europe Application Note. an-mb86r12-apixprbs-rev0-20 MB86R12 EMERALD-P REV 0.2 APIX PRBS APPLICATION NOTE

F²MC-8L/16LX/16FX/FR FAMILY

F²MC-8L/16LX/FR FAMILY ALL SERIES GALEP-4 8/16/32-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

Fujitsu Microelectronics Europe Application Note MCU-AN E-V10 FR FAMILY 32-BIT MICROCONTROLLER MB91460 EDSU/MPU APPLICATION NOTE

FR FAMILY MB91460 SERIES FLASH PROGRAMMING 32-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

Application Note APIX PRBS

1.2. MCU64 Board User Guide. Development tools for 16LX Family FUJITSU MICROELECTRONICS EUROPE. Version

Tutorial. How to use Keil µvision with Spansion templates Spansion Inc.

GRAPHICS CONTROLLERS

MB86297A Carmine PCB Design Guide

GRAPHICS CONTROLLERS APIX PCB-DESIGN GUIDELINE

Errata Sheet MB86298 'Ruby'

ALL 16LX SERIES WITH FLASH PROGRAMMING FLASH MCU S

End User License Agreement

PATGuard Time Manager 2

F²MC-16FX FAMILY MB96340 KEY MATRIX INTERFACE USING I/O PORT 16-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

Fujitsu Microelectronics Europe User Guide FMEMCU-SG MB88121 SERIES MB91460 SERIES EVALUATION BOARD SK-91F467-FLEXRAY SOFTWARE GUIDE

STARTERKIT SK-86R03 'JADE-L' USERS GUIDE

Fujitsu Microelectronics Europe User Guide FMEMCU-UG MB88121 SERIES MB91460 SERIES STARTER KIT SK-91F467-FLEXRAY USER GUIDE

Fujitsu Microelectronics Europe Application Note MCU-AN E-V12 FR FAMILY 32-BIT MICROCONTROLLER MB91265 SERIES 16-BIT MAC UNIT APPLICATION NOTE

PCMCIA Flash Card User Guide

UltraAV DisplayPort to HDMI Display MST Hub

P O W E R S U P P L Y M A N U A L

CM68 4 Channel NTSC/PAL Video Decoder

AhnLab Software License Agreement

Fujitsu Microelectronics Europe User Guide FMEMCU-UG MB88121 SERIES MB91460 SERIES STARTER KIT SK-91F467-FLEXRAY USER GUIDE

Fujitsu Semiconductor Europe User Manual. FSEUGCC-UM_MB86R11_Rev1.4 EMERALD-L EVALUATION BASE BOARD SK-86R11-BASE USERGUIDE

SonicWALL CDP 2.1 Agent Tool User's Guide

UM EEPROM Management of PN746X and PN736X. User manual COMPANY PUBLIC. Rev February Document information

LAMP CONTROL AND MONITOR WITH PPG AND ADC

Ludlum Lumic Data Logger Software Manual Version 1.1.xx

IPNexus Server Secure Instant Messaging & Integrated Collaboration

User Manual. Atlona HDMI CAT5 Receiver to be used with AT-HD19SS or AT-HD50SS [Long Range] AT-HDRS

CM Mpixel CMOS Imaging Camera

Fujitsu Microelectronics Europe Application Note MCU-AN E-V17 FR FAMILY EMULATION SYSTEM MB91460 GETTING STARTED APPLICATION NOTE

OfficeServ Link User Manual

Shimadzu LabSolutions Connector Plugin

EVB-USB2640 Evaluation Board Revision A

Integrity. Test the stability of virtually all rewritable storage devices and interfaces. Part of the Intech s SpeedTools Software for MacOS X

Using LPC11Axx EEPROM (with IAP)

APPLICATION NOTE. Atmel AT03304: SAM D20 I 2 C Slave Bootloader SAM D20. Description. Features

Trimble S6 and SPS700 Total Station Firmware

SOFTUNE WORKBENCH MONITOR DEBUGGER FOR 8FX

Instruction Sheet. PCS Series. Fiber\Cable Management Spool

FAQ list for Coral. Fujitsu Microelectronics Europe GmbH

Release Information. Revision History. Version: build 018 Release Date: 23 rd November 2011

Analog & Digital Output Module Quick Start Guide

TB-100 ControLynx Terminal Block

FaciliWorks. Desktop CMMS Installation Guide

FlukeView. Users Manual. Software for ScopeMeter Test Tools

DPN-4 Duo. User Manual. 4-Port Dual-Head Displayport KVM switch with USB 2.0 and Audio Sharing

NXP AN11528 sensor Application note

EVB-USB82640 Evaluation Board Revision A User Manual

Manual NEWBASE WebShot 1.4. Copyright by NEWBASE GmbH, Hamburg, Germany

)8-,768'HY.LW 2YHUYLHZ. )XMLWVX0LNURHOHNWURQLN*PE+ Am Siebenstein Dreieich-Buchschlag, Germany

over HDBaseT w/poe, IR & RS-232C

AKKON USB CONTROLLER BOARD

Atlona 1 by 4 HDMI Distribution Amplifier

Transcription:

Application te MCU-AN-391016-E-V11 The Bootconcept of Fujitsu s MB91360 Devices GmbH, Microcontroller Application Group History 13 th Aug. 99 MM V1.0 New Format, new updated version 04 th Jul. 00 MEN V1.1 Updated Application GmbH - 1 - MCU-AN-391016-E-V11

Warranty and Disclaimer To the maximum extent permitted by applicable law, Fujitsu Mikroelektronik GmbH restricts its warranties and its liability for all products delivered free of charge (eg. software include or header files, application examples, application tes, target boards, evaluation boards, engineering samples of IC s etc.), its performance and any consequential damages, on the use of the Product in accordance with (i) the terms of the License Agreement and the Sale and Purchase Agreement under which agreements the Product has been delivered, (ii) the technical descriptions and (iii) all accompanying written materials. In addition, to the maximum extent permitted by applicable law, Fujitsu Mikroelektronik GmbH disclaims all warranties and liabilities for the performance of the Product and any consequential damages in cases of unauthorised decompiling and/or reverse engineering and/or disassembling. te, all these products are intended and must only be used in an evaluation laboratory environment. 1. Fujitsu Mikroelektronik GmbH warrants that the Product will perform substantially in accordance with the accompanying written materials for a period of 90 days form the date of receipt by the customer. Concerning the hardware components of the Product, Fujitsu Mikroelektronik GmbH warrants that the Product will be free from defects in material and workmanship under use and service as specified in the accompanying written materials for a duration of 1 year from the date of receipt by the customer. 2. Should a Product turn out to be defect, Fujitsu Mikroelektronik GmbH s entire liability and the customer s exclusive remedy shall be, at Fujitsu Mikroelektronik GmbH s sole discretion, either return of the purchase price and the license fee, or replacement of the Product or parts thereof, if the Product is returned to Fujitsu Mikroelektronik GmbH in original packing and without further defects resulting from the customer s use or the transport. However, this warranty is excluded if the defect has resulted from an accident not attributable to Fujitsu Mikroelektronik GmbH, or abuse or misapplication attributable to the customer or any other third party not relating to Fujitsu Mikroelektronik GmbH. 3. To the maximum extent permitted by applicable law Fujitsu Mikroelektronik GmbH disclaims all other warranties, whether expressed or implied, in particular, but not limited to, warranties of merchantability and fitness for a particular purpose for which the Product is not designated. 4. To the maximum extent permitted by applicable law, Fujitsu Mikroelektronik GmbH s and its suppliers liability is restricted to intention and gross negligence. NO LIABILITY FOR CONSEQUENTIAL DAMAGES To the maximum extent permitted by applicable law, in no event shall Fujitsu Mikroelektronik GmbH and its suppliers be liable for any damages whatsoever (including but without limitation, consequential and/or indirect damages for personal injury, assets of substantial value, loss of profits, interruption of business operation, loss of information, or any other monetary or pecuniary loss) arising from the use of the Product. Should one of the above stipulations be or become invalid and/or unenforceable, the remaining stipulations shall stay in full effect. MCU-AN-391016-E-V11-2 - GmbH

MCU-AN-391016-10 The development of the new 32-Bit RISC MCU-family MB91360 will be completed soon with the flash version MB91F361. In order to support serial flash programming, a new bootconcept was developed for these devices. Having 512kB FlashROM onboard, the 360-devices are well prepared for complex applications which require large code and constant areas. In all Flash-MCUs, Fujitsu offers three different ways to (re-)program the internal FlashROM : 1.) Parallel programming using a standard EPROM-programmer together with the appropriate socket (footprint-converter). 2.) Serial programming using a built-in Boot-ROM for handling the data transfer. 3.) In-Circuit programming the application uses it s own software-method in order to customize the programming algorithms (e.g. re-programming via CAN) The serial programming is the most flexible method, because it has the advantage of being available even when the device is mounted on the board and already in use. It can be used for field-updates (complete or partly updates the FlashROM), for diagnostic purposes (e.g. reading SW-versioninformation), low-cost developments (where no in-circuit emulator can be used) or prototype productions. Boot-ROM Software-routines which are required for handling the serial data are stored inside a fixed Boot-ROM, which is present in all MB91360 devices. Compared with the concept used in the 16-Bit devices, where the internal Boot-ROM is only accessible when external Mode-Pins will be changed, the Boot-ROM of the MB91360 devices is mapped into memory at all times and will be called after each reset (see fig.1). The BootROM is located at address FF000 and has a size of 2kB. Since it s connected to the internal bus system, no chip-select areas must be assigned before executing code from this location. GmbH - 3 - MCU-AN-391016-E-V11

Memory Map MB91360 00:0000 00:03FF 00:0400 00:07FF 00:1000 01:0000 01:FFFF 03:C000 03:FFFF IO Area DMA Cache Data RAM Direct 1. Reset (INITX) : Read Reset-Vector (points to BootROM) - Start operation. 04:0000 04:3FFC 0F:F000 0F:F7FC 0F:F800 0F:FFFC Fast RAM Boot ROM Fixed Reset-Vector 2. Jump to Boot-ROM : Initialize MCU (and start Bootstraploader if required) 10:0000 10:07FF CAN 0-2 18:0000 1A:0000 1C:0000 1E:0000 1F:0000 1F:4000 1F:8000 1F:FFFF 128k 128k 128k 64k 16k 16k 32k 512k FLASH ROM 3. Boot-condition detected : Jump to Flash Boot Sector (1F:4000 1F:7FFF) 4. Application start... Figure 1 : Reset Sequence of MB91360 The device will start executing the Boot-ROM immeadiatly after each reset and initializes the chip (CS-settings, clock-supply etc.). Then a number of conditions will be checked to determine wheather to start the actual bootloader or to start the current application. When the device does not start from a INITX (external power-on reset), the bootloader cannot be started. Then the Boot-ROM enters a short checkloop in order to verify the actual boot-conditions. This is either a logic 1 on the external bootpin or the reception of a certain character from the internal UART0 at 9600 Baud (serial trigger). Figure 2 shows the boot program flow. The possibilty to use a serial trigger is a major advantage. This is because in the final application, no further hardware modifications are required to enable the re-programming. Since the actual communicaton for downloading the new data to FlashROM will usually be transmitted over this same serial line, the only necessary preparation is to have the serial line available outside. In many cases, there is a serial interface for diagnostic purposes anyway. So, one would have to connect to this interface using the programmer-software, power-up the application and re-programming will start automatically. MCU-AN-391016-E-V11-4 - GmbH

MCU-AN-391016-10 RST/ INIT Chip initialization Set Clock to 2MHz Init UART0 Read and save RSRR(Reset Cause) Bootpin=H or V received? Security- Vector = ffffffff? Timeout? Reset- Cause = INITX? Jump @(SecVec) Jump @1F4000 Start Bootloader Figure 2 : Flowchart of the internal Boot-ROM Security In many applications, protection of the internal FlashROM is an important topic (preventing from unwanted reading, erasing or programming). Therefore, the bootconcept includes the checking of a special vector ( security-vector ). Whenever this vector location is blank (=FFFFFFFF), the BootROM can be used to invoke re-programming. But if any value is written to it, the BootROM will immeadiatly jump to this location after the chip-initializations. more condition-check will be performed. This protection method has the advantage that the user can either simply disable the bootfeature or to divert the execution to a dedicated location in order to execute customized bootroutines. Protocol Once the actual bootloader has been entered (valid boot-condition found), an acknowledge message will be sent to the external device (normally a PC) and the initial communication can start. Four commands are accepted : Receive and write to a specified memory block Dump the contents of a specified memory block Initiate a CALL to a certain location Re-dump a calculated checksum for verification GmbH - 5 - MCU-AN-391016-E-V11

Again for security reasons, the BootROM contains no functions, which directly program or even erase the flash. The reason for this is the risk of branching unintentionaly to a location within the BootROM (e.g. by a corrupted software pointer or uninitialized interrupts etc.) which could lead to a complete ROM loss! Therefore, any routines to handle flash-programming must be downloaded to RAM first and can be executed from there. The so-called FastRAM, which allows to load and execute instructions was implemented mainly because of this reason. Quite clearly, any programming routine must not be executed from the flash itself, since the flash-logic will disable flash accesses during any of the embedded commands. Software A first version of the MB91360 Flash Programmer was developed using the emulation device MB91V360. It allows to either invoke all possible BootROM or flash-programming functions manually or to do all necessary steps automatically in one go ( Auto mode ). This tool accepts the converted linkeroutput from Softune Workbench (the development environment) directy without any pre-processing. It also can be integrated into the tool-chain and would then be controlled by command-line options. Figure 3 : Serial programming tool for the MB91360 series Markus Mierse MCU-AN-391016-E-V11-6 - GmbH

MCU-AN-391016-10 GmbH - 7 - MCU-AN-391016-E-V11