Page 2 - ALL RIGHTS RESERVED
2 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 pur...
Page 3 - Revision History; Date Version
Page 4 - Table of Contents
Table of Contents REVISION HISTORY ................................................................................................. 3 1 INTRODUCTION ..................................................................................................... 5 1.1 Product Overview ............................
Page 5 - Introduction; Product Overview
1 Introduction 1.1 Product Overview FSS MB9BF506R EV-Board (PN: FSSDC-9B506-EVB) provides an economical and simple means for study usage for MB9B506 series MCU. The board compatible with both 3.3 and 5V system contains abundant external resources (LCD, buttons, UART, Nand Flash, CAN…) to demonstrate...
Page 7 - Hardware Setting
2 Hardware Setting 2.1 Main Features DB9 Connector UART channel 0 LED LED2-LED4 (P1B-P19) DB9 Connector UART channel 2 External Power 15V JTAG Connector LCD Potentiometer AD channel 7 CAN TX0_2, RX0_2 USB Device USB Host Nand Flash attached on external bus CS7 area RTC attached on I 2 C channel 7 Ke...
Page 9 - Setting for Debug Tool
2.5 Setting for Debug Tool Use IAR J-Link Part Number Function Setting 20PIN-JTAG JTAG connctor Connect with J-Link J101-J103 Power selection Short J101: select external power Short J102: select JTAG power Short J103: select USB power J104 Voltage selection Short 1,2: 5V Short 2,3: 3.3V J105 Mode ...
Page 10 - Flash On-Board Programming; First check the hardware setting as introduced by section 2.3.
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...
Page 12 - Press reset key on the board. Programming will start.
Press reset key on the board. Programming will start. Figure 3-8: Start Programming 12
Page 13 - Sample Code
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 can Implement CAN communication between 2 CAN nodes rtc Use IIC to access RTC module usb_functi...
Page 14 - Hardware Setting; Connect UART-2 with PC via RS232 cable; Flowchart
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 ...
Page 16 - None; Usage; It is an
4.2 Nand Flash Hardware Setting None Flowchart Start Initial external bus (Use CS7 area, 8 bit data width) Read Flash ID Erase page 11 of block 0 Write data into page 11 of block 0 Read data from page 11 of block 0 Erase page 20 of block 100 Write data into page 20 of block 100 Read data from pa...
Page 17 - to receive; ) Connect Node A with Node B
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 2 CAN 1 CAN 2 EV board 1 (Node A) EV board 2 (Node B) Figure 4-6: C...
Page 18 - Connect with PC via USB cable
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 st...
Page 19 - Connect with a USB mouse; ) Make the hardware setting
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 ...
Page 20 - ) Press key, and the key pressed can display on the LCD
4.7 LCD & AD & Key Hardware Setting None Flowchart Start Initialization (clock, key, lcd, led, dual timer, ad) Press key? Display key pressed in LCD AD convert Pre_AD_value- Cur_AD_calue>threshold value Display new AD value on LCD Count Time = 1s Set LCD update flag Set LCD update fla...
Page 21 - Debug Tool and IDE
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. https://www.keil.com/updat...
Page 22 - Debug with J-Link in IAR EWARM Workbench; list; Run an Existed Project
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. Main window Watch window Log window list Project Tool bar Figure 5-3: IAR IDE Overview Run an Existed Project 1) Open a project by clickin...
Page 24 - Setting for Flash Debug
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...
Page 25 - ) Don’t select “Use macro files” in “Debugger|Setup” table.
2) Don’t select “Use macro files” in “Debugger|Setup” table. Figure 5-10: Macro File Disabled 3) Set Flash loader file path ($TOOLKIT_DIR$\config\flashloader\Fujitsu\MB9BF506.board) in “Debug|Download” table. Figure 5-11: Flash Load File Path 25
Page 26 - Setting for RAM Debug
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 26
Page 27 - How to Make a HEX File; ) Select “Generate additional output” in “Output Converter” table.
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” in “Output Converter” table. Fi...
Page 28 - Debug with U-Link ME in Keil uVision4; The sample code can also be debugged in Keil; Tool bar; ) Open a project by clicking “Project | Open Project...”
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. Build output Project list Main window Watch window Tool bar Figure 5-16: Keil IDE Overview Run an Existed Project 1) Open a project by click...
Page 30 - ) Use following tool bar to debug
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 store...
Page 31 - ) Check “Update Target before Debugging” checkbox
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 31
Page 33 - ) Don’t Check “Update Target before Debugging” checkbox; ) Check “Create HEX File” checkbox (This file is Intel Format HEX)
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” checkbox (This file is Int...
Page 34 - Materials Download; Software
34 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 z FUJITSU Flash MCU Programmer z FUJITSU Flash USB DIRECT Programmer Document z FSSDC-9B506-EVB User Manual z FSSDC-9B506-EVB Schematic...