background image

             

 

MCU-AN-510014-E-10 

                                                                                                                                        

 

 

FM3 

           

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 

 

Содержание FSSDC-9B506-EVB

Страница 1: ...ries 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 ...

Страница 2: ...se 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 i e nuclear reaction control in nuclear facility aircraft flight control air traffi...

Страница 3: ...Revision History Date Version 2011 04 21 V1 0 3 ...

Страница 4: ...etting for USB On Board Programming 8 2 5 Setting for Debug Tool 9 3 FLASH ON BOARD PROGRAMMING 10 3 1 On Board Programming via UART 10 3 2 On Board Programming via USB 11 4 SAMPLE CODE 13 4 1 UART 14 4 2 Nand Flash 16 4 3 RTC 16 4 4 CAN 17 4 5 USB Function 18 4 6 USB Host 19 4 7 LCD AD Key 20 5 DEBUG TOOL AND IDE 21 5 1 Debug with J Link in IAR EWARM Workbench 22 5 2 Debug with U Link ME in Keil ...

Страница 5: ...mode Figure 1 1 FSSDC 9B506 EVB Overview 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 ...

Страница 6: ... FSS MB9BF506R EV Board includes following features Microcontroller MB9BF506R 2x UART Transceiver Female DB9 connector 2x High speed CAN Transceiver 2 pin header 1x USB Host Type A connector 1x USB Device Type B connector 32M x 8bit Nand Flash K9F5608U0D High Stability I2 C Bus Interface RTC Module RX 8025T Standard JTAG Interface on a 20 pin header 128 x 64 matrix LCD 3x User LED 4x User button 1...

Страница 7: ...19 DB9 Connector UART channel 2 External Power 15V JTAG Connector LCD Potentiome ter 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 Key Reset Key Left P40 Right P43 Up P41 Down P42 RTC Battery 2 pin header 7 ...

Страница 8: ...ble 2 1 Jumper List Attention 1 Never short J101 103 at the same time When Keil U Link ME is used JTAG power can not be used 2 When Keil U link is used only 3 3V can be selected never select 5V power 2 3 Setting for UART On Board Programming Part Number Function Setting UART 0 DB9 connector Connect with PC via RS232 cable J106 Oscillator Selection Open J105 Mode setting short J107 P22 connection s...

Страница 9: ...er Short J103 select USB power J104 Voltage selection Short 1 2 5V Short 2 3 3 3V J105 Mode setting Open Table 2 4 Setting for J Link Use Keil U Link ME Part Number Function Setting 20PIN JTAG JTAG connctor Connect with U Link ME J101 J103 Power selection Short J101 select external power Short J103 select USB power J104 Voltage selection Short 2 3 J105 Mode setting Open Table 2 5 Setting for U Lin...

Страница 10: ... First check the hardware setting as introduced by section 2 3 Install the UART programmer PCWFM3_V01L01 It can be downloaded on the web Open it set the parameter as shown in following figure and select Hex file Figure 3 1 UART Programmer Overview Click Full Operation Figure 3 2 Press Reset Button Press reset key in the board and the programming will start Figure 3 3 Start Programming 10 ...

Страница 11: ... 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 It can be downloaded on the web Open it set the parameter as shown in following figure and select Hex file Figure 3 6 USB Programmer Overview Click Full Operation Figure 3 7 Press Reset Button 11 ...

Страница 12: ... Press reset key on the board Programming will start Figure 3 8 Start Programming 12 ...

Страница 13: ...on usb_host_catch_mouse Identify a USB mouse and print the mouse position on debug window lcd_ad_key Display ad value and key status on LCD Notes 1 It provides both IAR and Keil project for these sample code IAR project is developed in EWARM Embedded Workbench V6102 and Keil project is developed in Keil uVision 4 20 2 If user use other version to open these projects compiling error may occur in th...

Страница 14: ...ART 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 Then send character to EV board the character can be received 14 ...

Страница 15: ...Figure 4 3 Send UART Data From PC Side 15 ...

Страница 16: ...sample project and start debug 2 Use step over to debug and watch local variable flash_id buf 4 3 RTC Hardware Setting It is an option that user can user external battery to supply power for RTC module RX8025 T so that the date and time can be stored after system power shut down Flowchart Start Initial MFS channel 5 set IIC mode Enable FOE signal FOUT output 32 768khz wave after it is enabled Writ...

Страница 17: ... transfer and buffer 8 ID 0x08765432 to receive Node B use buffer 7 ID 0x12345678 to receive and buffer 10 ID 0x08765432 to transfer Buffer 10 ID 0x12345678 Buffer 8 ID 0x08765432 Buffer 7 ID 0x12345678 Buffer 10 ID 0x08765432 Node A Node B Figure 4 7 CAN Demo Block Diagram Usage 1 Define CAN_TX_RX in the code and compile then program the code into Node A 2 Don t define CAN_TX_RX in the code and c...

Страница 18: ...ton USB core HID initialization Check ButtonInit HIDInit Check Ext INT7 occurred Initial Endpoint 0 Check EXTI8_15_IRQHandler Get Device HID description Enable Endpoint 5 interrupt transfer Bus reset Configure Endpoint 0 5 Device has been connected with Host Check USB_2_IRQHandler Use interrupt transfer to communicate with host Check HidMouseSendReport Check USB_1_IRQHandler Figure 4 8 USB Functio...

Страница 19: ...stand the sample code Start Initialize system clock Initialize timer Init USB host Enumeration Mouse data process Display mouse data SystemInit main minihost_init USB_Handler USBF_Handler get_mouse_data Main Figure 4 9 USB Host Sample Code Flowchart Usage 1 Make the hardware setting 2 Enable definition Debug in the code 3 Run the code 4 Move the USB mouse and watch the mouse position in the termin...

Страница 20: ... Count Time 1s Set LCD update flag Set LCD update flag Count time Y N Y N N Y LCD update flag 1 Count time 0 Clear LCD update flag Clear window and display logo in LCD Y N Figure 4 11 LCD key AD Sample Code Flowchart Usage 1 Run the code 2 Press key and the key pressed can display on the LCD 3 Regulate the potentiometer to change the input voltage of channel 7 and this voltage can be detected and ...

Страница 21: ... 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 update sw RVMDK 4 20 The J Link should be used with IAR Embedded Workbench which can be downloaded freely from following web http www iar com website1 1 0 1 0 68 1 21 ...

Страница 22: ...ugged 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 clicking File Open Workspace Figure 5 4 Open a Project 22 ...

Страница 23: ...2 Select a project eww file Figure 5 5 Select a Project 3 Click Project Rebuild All Figure 5 6 Rebuild All 23 ...

Страница 24: ...AR 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 Setting for Flash Debug 1 Check the configuration file path PROJ_DIR config mb9bf506 icf in Linker table Figure 5 9 ICF File for Flash Debug 24 ...

Страница 25: ... 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 ...

Страница 26: ... 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 ...

Страница 27: ...am 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 Figure 5 15 Hex File Genration in IAR IDE 3 User can find the generated file in path Debug Exe 27 ...

Страница 28: ...ugged 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 clicking Project Open Project Figure 5 17 Open a Project 28 ...

Страница 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 29 ...

Страница 30: ...h 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 Setting for Flash Debug 1 Set ROM address in Flash area 0x00000000 0x00080000 Figure 5 22 ROM Address Setting for Flash Debug 30 ...

Страница 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 31 ...

Страница 32: ...ting 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 32 ...

Страница 33: ...ng 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 Intel Format HEX Figure 5 28 HEX File Generation in Keil IDE 2 User can find the generated file in path output debug 33 ...

Страница 34: ...r z FUJITSU Flash USB DIRECT Programmer Document z FSSDC 9B506 EVB User Manual z FSSDC 9B506 EVB Schematic z MB9B506 Series Datasheet z MB9B506 Series Peripheral Manual z MB9B506 Series Flash Programming Manual Sample code z uart z iic_rtc z ext_bus_nandflash z can z usb_func_mouse z usb_host_catch_mouse z lcd_ad_key IDE Study Material z IAR IDE study material z Keil IDE study material ...

Отзывы: