Home

MB9B610 Series

image

Contents

1. A23 64KB SA22 64KB 0 000 0000 A21 64KB SA20 64KB Ox000C 0000 SA19 64KB SA18 64KB 0x000A 0000 SA17 64KB SA16 64KB 0x0008 0000 SA15 64KB SA14 64KB 0x0006 0000 Flash memory SA13 64KB SA12 64KB 1024KB 0 0004 0000 SA11 64KB SA10 64KB 0x0002 0000 SAS 48KB SAB 48KB 0x0000 8000 4000 SAT SKB SA6 8KB 0x0000 0000 SAS BKB SA4 8KB eee bit63 bit32 bit31 S 7 6 5 4 43 2 1 40 Figure 5 Memory map of M9BF618 flash memory MCU AN 5100XX E 10 Page 9 g2 FU ITSU Chapter 4 Ethernet Flash Loader demo I RAM Flash OP code Internal RAM D RAM 226 Internal ROM User code Sectors of Demo User Code SA10 SA11 128 Free space Sector of flash code loader Updater SA4 SA7 Figure 6 Code allocation The Ethernet loader code of MCU will be allocated at the SA4 SA7 The user application program will be allocated at SA10 and SA11 whose vecior table shall be placed at the beginning of the sector as shown in figure 7 0x20000 0x200FF d Vector Table 256B 0x20100 0x2010F 14B reserved Version Flag 2 B 0x20110 0x3FFFF User Code 128KB Figure 7 User code components Note While the Ethernet flash loader operates the internal flash the related flash R W API will be copied and run in internal RAM area 4 4 Limitations In the design of this flash loader the following limitations are treated as design assumptio
2. Settings Figure 2 TFTP client tool configuration Note e IP address comes from static setting by default DHCP DEMO micro definition in board h needs to be enabled to support getting IP address through DHCP e The Tftpd32 tool should be configured as shown in figure before retrieving the IP address e g 192 168 1 20 and setting it in figure 2 e lf the DHCP DEMO micro definition is enabled while DHCP server is not configured properly or not available the EVB will fail to retrieve the IP address per DHCP Thereafter a default IP address of 192 168 1 25 will be adopted MCU AN 5100XX E 10 Page 7 FU ITSU Chapter 4 Ethernet Flash Loader demo Trtpd32 Settings X GLOBAL TFTP 575406 DHCP Pool definition IP pool starting address 192168120 Size of 2 Boot File WINS DNS Sever Oooo _ Default router 2168811 Tftpd32 by Ph Jouni El x PM p Domain Current Directory C Program Files Tftpd32 Browse Additional Option 0 Server interface 132 168 1 30 Show Dir Thtp Server Client DHCP server Syslog server Log viewer DHCP Options v Ping address before assignation Bind DHCP to this address 1721 E 204 63 v Persistant leases allacated at renew at 10 31 15 31 23 192 168 1 20 00 00 0 02 24 56 1031 15 31 23 Default Help Cancel About Settings Fig
3. 3 MB9BF210T 610T MN706 00015 1v0 E pdf 4 Design and Implementation of the LWIP TCP IP Stack Feb 2001 Adam Dunkels 5 http Iwip wikia com wiki LwlP Wiki MCU AN 5100XX E 10 Page 4 FU ITSU Chapter 2 Development Environment 2 Development Environment Software dink MCU Emulator Emulator ink link pene 9B61 B AN platform EVB MCU AN 5100XX E 10 Page 5 FU ITSU Chapter 3 Ethernet Flash Loader Overview 3 Ethernet Flash Loader Overview To demonstrate the Ethernet flash loader two projects will be involved B Flash loader project Retrieve application image and flash it into internal flash as well as verification of its version and checksum before running it B User application project Demo project to produce application image which will make the LED green of the EVB blinking The protocol adopted for communication between PC and EVB is TFTP which is widely used in embedded applications to upgrade firmware is a simple file transfer protocol working on top of the UDP layer and it is mainly used in a LAN Based on client server mode the client will request a file transfer read or write operation from a server In the Ethernet flash loader a free tool Tftpd32 hitp tftpd32 jounin net running on the PC will act as TFTP client while the EVB will be the TFTP server During firmware updating as shown in figure1 the client will transfer a bin file on the PC to EVB whic
4. cO FUJITSU 32 BIT MICROCONTROLLER MB9B610 Series ETHERNET FLASH LOADER USER MANUAL TM ARM ARM and Cortex M3 are the trademarks of ARM Limited in the EU and other countries FU ITSU Revision History Revision History Version Date Updated by Approved by Modifications 1 0 0 2012 11 1 FSS Initial version Specifications are subject to change without notice For further information please contact each office All Rights Reserved The contents of this document are subject to change without notice Customers are advised to consult with sales representatives before ordering The information such as descriptions of function and application circuit examples in this document are presented solely for the purpose of reference to show examples of operations and uses of FUJITSU SEMICONDUCTOR device FUJITSU SEMICONDUCTOR does not warrant proper operation of the device with respect to use based on such information When you develop equipment incorporating the device based on such information you must assume any responsibility arising out of such use of the information FUJITSU SEMICONDUCTOR assumes no liability for any damages whatsoever arising out of the use of the information Any information in this document including descriptions of function and schematic diagrams shall not be construed as license of the use or exercise of any intellectual property right such as patent right or
5. copyright or any other right of FUJITSU SEMICONDUCTOR or any third party or does FUJITSU SEMICONDUCTOR warrant non infringement of any third party s intellectual property right or other right by using such information FUJITSU SEMICONDUCTOR assumes no liability for any infringement of the intellectual property rights or other rights of third parties which would result from the use of information contained herein The products described in this document are designed developed and manufactured as contemplated for general use including without limitation ordinary industrial use general office use personal use and household use but are not designed developed and manufactured as contemplated 1 for use accompanying fatal risks or dangers that unless extremely high safety is secured could have a serious effect to the public and could lead directly to death personal injury severe physical damage or other loss 1 nuclear reaction control in nuclear facility aircraft flight control air traffic control mass transport control medical life support system missile launch control in weapon system or 2 for use requiring extremely high reliability 1 e submersible repeater and artificial satellite Please note that FUJITSU SEMICONDUCTOR will not be liable against you and or any third party for any claims or damages arising in connection with above mentioned uses of the products Any semiconductor devices have an inherent chance of failure You
6. emo 8 43 Memory ERR 9 AAG ee ee ee ee eee 10 5 ADDITIONAL INFORMATION ewan reece sce vwusindiaihreud d wens rae chips int i 11 MCU AN 5100XX E 10 Page 3 F U ITSU Chapter 1 Introduction 1 Introduction 1 1 Purpose This document describes the Ethernet flash loader of MB9BF618T S as well as presents a demonstration package based on free TCP IP stack IwIP lightweight IP The Ethernet flash loader is one of implementations for In Application Programming IAP which means upgrading firmware in the field using the MCU communication peripherals such as UART USB Ethernet etc Customers can perform the firmware update without teardown of the product Ethernet is often the preferred method for implementing IAP for reasons below e High speed 10 100 Mbps Long distance through network e Construct on widely used protocols FTP TFTP HTTP 1 2 Definitions Acronyms and Abbreviations API Application Programming Interface I F Interface IAP In Application Programming EVB Evaluation board MAC Media Access Controller PHY Physical Layer IwIP Lightweight IP FTP File Transfer Protocol TFTP Trivial File Transfer Protocol HTTP Hypertext Transfer Protocol 1 3 Reference Documents 1 MB9Bxxx MN706 00002 4v0 E pdf 2 MB9BF616S DS706 00014 0v01 E pdf
7. h will flash it into the dedicated internal flash And only write request is supported by the EVB to simplify the design LAN 9 618 Eth _ thernet cable EVB Ethernet SWitch MB9BF618 Host EVB Figure 1 IAP over Ethernet MCU AN 5100XX E 10 Page 6 co FU ITSU Chapter 4 Ethernet Flash Loader demo 4 Ethernet Flash Loader demo 4 1 Demo Steps a Hardware Setting Burnthe flash loader image into the EVB gt Compile the user application project to produce the application bin image Using tool to convert the image file from Hex or MHX to bin file when necessary b Steps 1 Open Tftpd32 tool and select the application image bin file e g D FM3 LED bin 2 Setthe IP address port and block size as shown in figure 2 3 Power on board burned with flash loader image and press down button on the joystick within 10 seconds The LED will be turned on before button is pressed 4 Press the button on the Tftpd32 tool to start the update 5 The LED will be blinking when the update succeeds and MCU jumps from flash loader program to run the application program Tftpd3 by Ph Jounin B x Curent Directory C Program Files T ftpd32 Browse Server interfaces 132 168 130 Show Dir Tito Server ftp Client DHCP server Syslog server Log viewer Hast 182 168 1 20 Port 69 Local File DAFM3LED bir Remote File Black 512 Size Get Put Break About
8. must protect against injury damage or loss from such failures by incorporating safety design measures into your facility and equipment such as redundancy fire protection and prevention of over current levels and other abnormal operating conditions Exportation release of any products described in this document may require necessary procedures in accordance with the regulations of the Foreign Exchange and Foreign Trade Control Law of Japan and or US export control laws The company names and brand names herein are the trademarks or registered trademarks of their respective owners Copyright 2011 Fujitsu Semiconductor Limited Asia All rights reserved MCU AN 5100XX E 10 Page 2 FU JITSU Contents Contents REVISION HISTOR rata esas tren cence 2 COIN gp c 3 1 INTRODUCTION a ex cta LEONE c OCDE D 4 EM doo R 4 1 2 Definitions Acronyms and Abbreviations 4 1 3 Reference DOCUMENNGS cccccceccsecceecceeeceeeceeecseeceueceuseeueceueceueeeueseueseueseenseeeenaes 4 2 DEVELOPMENT chocs aee uade nea 5 3 ETHERNET FLASH LOADER OVERVIEW nnne nnn nnn annt 6 4 ETHERNET FLASH LOADER DEMO 7 M T ES 7 4 2 D
9. ns Supporting write request command only for TFTP The Ethernet flash loader will target to work on LAN only the client and EVB are connected to the same switch of the network More complex network topology will be supported in the further enhancement MCU AN 5100XX E 10 Page 10 FU ITSU Chapter 5 Additional Information 5 Additional Information For more Information on FUJITSU semiconductor products visit the following websites English version address http www fujitsu com cn fsp mcu 32bit fm3 an html Chinese version address http www fujitsu com cn fss mcu 32bit fmS3 an html MCU AN 5100XX E 10 Page 11
10. ure 3 DHCP server configuration and retrieve the IP address The LED will indicate the status of the flash loader operation Table1 LED status signification Boot project is running and Flash loader User application waiting for selection of flash program is is running loader program running 4 2 Demo features LwiP functionality of UDP e Ethernet driver of MCU Flash operation of MCU The H W resource used in this solution includes 1 Ethernet MACO of the MCU System timer Dual Timer Used for LED blinking control 4 Flash I F The I F to operate the MCU internal Flash ROM NVIC The interrupt related resource Clock The clock for the whole system Figure 4 is the flow chart of this demo MCU AN 5100XX E 10 Page 8 co FU ITSU Chapter 4 Ethernet Flash Loader demo When power on if the down button is pressed within specified time such as 10seconds the Ethernet flash loader will run which will communicate with the TFTP client to retrieve image data and jump to execute the valid user code C Syslnit Flash loader is selected um Get IP address Update user code ecksum and versio verified Jump to run user code C Ene b N Figure 4 Flow chart Y 4 3 Memory Allocation 0x0010 1004 CR trimming data Security code 0x0010 0000 0x0010_ 0000

Download Pdf Manuals

image

Related Search

Related Contents

Elettrocardiografo 12 Canali  チャンネルリモコン4  M09 Connaissance diffé matériels travaux terrassement AC CTTP  to eConcern Manual  KAOSS DJ オペレーション・ガイド  [道路維持課(北部)]総括表(PDF形式:36KB)  Accomplist User Manual Version 2.0  100 TOUCH - La San Marco  

Copyright © All rights reserved.
Failed to retrieve file