MCU-AN-510014-E-10 32-BIT MICROCONTROLLER MB9B500 Series FSS MB9BF506R EV-BOARD USER MANUAL APPLICATION NOTE For more information for the FM3 microcontroller, visit the web site at: http://www.fujitsu.com/global/services/microelectronics/product/micom/roadmap/industrial/fm3/ FUJITSU SEMICONDUCTOR (SHANGHAI) LIMITED...
Page 2
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. 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.
1.2 MB9B506 Series MCU MB9B506 series MCU is 32-bit general purpose MCU of FM3 family that features the industry's leading-edge ARM Cortex-M3TM CPU and integrates Fujitsu's highly reliable and high-speed secure embedded flash technology. This MCU can operate at up to 80MHz CPU frequency and work at a wide voltage range (2.7V-5.5V), which can be both compatible with...
The size of on-chip memory can be configured according to different part number and the package is available in LQFP and BGA, shown in following table. Product Flash SRAM Package N: LQFP-100 MB9BF500N/R 256kB 32kB R: LQFP-120 N: LQFP-100/BGA-112 MB9BF504N/R 256kB 32kB R: LQFP-120...
2 Hardware Setting 2.1 Main Features DB9 Connector DB9 Connector External Power UART channel 0 UART channel 2 LED2-LED4 (P1B-P19) JTAG Connector Potentiome AD channel 7 TX0_2, RX0_2 USB Device USB Host Nand Flash RTC Battery attached on external bus attached on I C channel 7 “Reset”...
2.2 Jumpers Overview Jumper Name Function Setting Short J101: select external power J101-J103 Power selection Short J102: select JTAG power Short J103: select USB power Short 1,2: 5V J104 Voltage selection Short 2,3: 3.3V J-USB- USB Host/Function Short 1,2: USB Function J-USB+ selection Short 2,3: USB Host...
2.5 Setting for Debug Tool Use IAR J-Link Part Number Function Setting 20PIN-JTAG JTAG connctor Connect with J-Link Short J101: select external power J101-J103 Power selection Short J102: select JTAG power Short J103: select USB power Short 1,2: 5V J104 Voltage selection Short 2,3: 3.3V J105...
3 Flash On-Board Programming There are two ways to program the on-chip Flash of MB9BF506 series MCU: UART On- Board Programming and USB On-Board Programming. 3.1 On-Board Programming via UART First check the hardware setting as introduced by section 2.3. Install the UART programmer: PCWFM3_V01L01.
3.2 On-Board Programming via USB First check the hardware setting as introduced by section 2.4. After connect with PC via USB cable, the EVB can be identified as a USB device. Figure 3-4: USB Device Sign Check the COM port for this USB port in the device manager. Figure 3-5: COM Port in Device Manager Install the USB programmer: USBDW_V01L03.
Page 12
Press reset key on the board. Programming will start. Figure 3-8: Start Programming...
4 Sample Code The sample codes for FSSDC-9B596-EV board are listed as following table. Project Name Description ext_bus_nandflash Use external bus to access Nand Flash uart Use UART to communicate with PC Implement CAN communication between 2 CAN nodes Use IIC to access RTC module Implement the USB mouse to demonstrate usb_function_mose USB function...
4.1 UART Hardware Setting Connect UART-2 with PC via RS232 cable Flowchart Figure 4-1: UART Sample Code Flowchart Usage 1) Open a COM assistant software, make following setting, and open COM port Figure 4-2: COM Assistant Setting 2) Open UART sample code and run it, user can watch a string on the COM assistant window.
Page 15
Figure 4-3: Send UART Data From PC Side...
4.2 Nand Flash Hardware Setting None Flowchart Start Initial external bus Erase page 11 of Erase page 20 of (Use CS7 area, block 0 block 100 8 bit data width) Write data into Write data into page Read Flash ID page 11 of block 0 20 of block 100 Read data from...
Usage 1) Open Nand Flash sample project, and start debug. 2) Use “step over” to debug, and watch local variable “sec”, “min”, “hour”. 4.4 CAN Hardware Setting Connect 2 EV-board with CAN interface, as following figure. CAN 1 CAN 1 EV board 2 EV board 1 (Node B)
4.5 USB Function Hardware Setting Check if 1,2 of J-USB- and J-USB+ short Check J701 (Short: 5V, Open: 3.3V) Connect with PC via USB cable Flowchart The following flowchart illuminates the procedure to implement a USB mouse, it is not a certain flow of a function, but provides a clue to study and understand the sample code.
4.6 USB Host Hardware Setting Check if 2,3 of J-USB- and J-USB+ short Connect with a USB mouse Flowchart The following flowchart illuminates the procedure to implement USB host function, which can catch the position of a USB mouse, it is not a certain flow of a function, but provides a clue to study and understand the sample code.
4.7 LCD & AD & Key Hardware Setting None Flowchart Start Initialization (clock, key, lcd, led, dual timer, ad) Set LCD update Display key Press key? flag pressed in LCD AD convert Pre_AD_value- Set LCD update Display new AD Cur_AD_calue>threshold value flag value on LCD Count Time = 1s...
5 Debug Tool and IDE FSS MB9BF506R EV-Board supports both Keil U-Link-ME and IAR J-Link for debug shown as following. Figure 5-1: J-Link Overview Figure 5-2: U-Link Overview The U-Link-me should be used with Keil uVision 4 which can be downloaded freely from following web.
5.1 Debug with J-Link in IAR EWARM Workbench The sample code can be debugged in IAR EWARM Workbench with J-Link. The following figure shows basic debug window. Tool bar Watch window Project list Main window window Figure 5-3: IAR IDE Overview Run an Existed Project 1) Open a project by clicking “File | Open | Workspace”...
Page 24
4) Click “Download and Debug” Figure 5-7:Click Download and Debug 5) Use following tool bar to debug Figure 5-8: Debug Tool Bar The sample codes support both Flash and RAM debug in IAR EWARM Workbench, if Flash debug is used, the code is programmed into MB9BF506 Flash. If RAM debug is used, the code only runs in RAM area, and after power off, the code will not be stored, but the RAM debug will be faster than Flash debug.
Page 26
Setting for RAM Debug 1) Check the configuration file path ($PROJ_DIR$\config\mb9bf506_ram.icf) in Linker table. Figure 5-12: ICF File for RAM Debug 2) Select “Use macro files” in “Debugger|Setup” table. Figure 5-13: Macro File Enabled...
Page 27
3) Don’t use Flash loader file. Figure 5-14: Flash Loader File Disabled If user need to program the hex file into Flash via UART or USB programmer, a hex file need to be produced first. How to Make a HEX File 1) Use Flash debug 2) Select “Generate additional output”...
5.2 Debug with U-Link ME in Keil uVision4 The sample code can also be debugged in Keil μVersion4 with U-Link. The following figure shows basic debug window. Tool bar Watch window Project list Main window Build output Figure 5-16: Keil IDE Overview Run an Existed Project 1) Open a project by clicking “Project | Open Project…”...
Page 29
2) Select a project (uvproj file) Figure 5-18: Select a Project 3) Rebuild all Figure 5-19: Rebuild All Files 4) Start debug Figure 5-20: Start Debug...
Page 30
5) Use following tool bar to debug Figure 5-21: Debug Tool Bar The sample codes support both Flash and RAM debug in Keil uVison 4, if Flash debug is used, the code is programmed into MB9BF506 Flash. If RAM debug is used, the code only runs in RAM area, and after power off, the code will not be stored, but the RAM debug will be faster than Flash debug.
Page 31
2) Don’t use initialization file. Figure 5-23: Don’t use initialization File 3) Check “Update Target before Debugging” checkbox Figure 5-24: Select Update Target Before Debugging...
Page 32
Setting for RAM Debug 1) Set ROM address in Code SRAM area. (0x1fff8000-0x1fffffff) Figure 5-25: Set RAM Address for RAM Debug 2) Set initialization file path. (..\Debug_RAM.ini) Figure 5-26: Select Initialization File...
Page 33
3) Don’t Check “Update Target before Debugging” checkbox Figure 5-27: Select Update Target Before Debugging If user need to program the hex file into Flash via UART or USB programmer, a hex file need to be produced first. How to Make a HEX File 1) Check “Create HEX File”...
6 Materials Download The following materials can be downloaded from below web. http://www.fujitsu.com/cn/fss/events/contest/2010/index_download.html Software FUJITSU Flash MCU Programmer FUJITSU Flash USB DIRECT Programmer Document FSSDC-9B506-EVB User Manual FSSDC-9B506-EVB Schematic MB9B506 Series Datasheet MB9B506 Series Peripheral Manual MB9B506 Series Flash Programming Manual...