Home

Fujitsu MB9B500 Series User's Manual

image

Contents

1. data Error col 1 a FE qui disp buf array roject La G startup int main void ae x Rem cstartup_M s y Su AA sm d x _ x Error col 1 list Ha G ucos2 if 0S TASK NAME SIZE gt 5 D FONTTVPES mS INTSU err endif system initialization SystemInit os core c OS cpu a asm OS cpu os dbg c os flag c os mbox c OSCPUUsage 0x00 OSldleCtrMax 0 OS TASK STAT PHIO Error col 1 H OSTCBTbI array uC 0S II initialization OSPrioHighRdy 0x00 OSInit mon str Error col 1 page id 0 00 i Create task t str Error col 1 Main Ha E os STaskCreateExt Task Start iag 0x00 os_sem c zl void 0 AD Data v window m Ha Ir task c amp Task Start STK Task Start 55 1 GettingStarted cm sss 587 PBB 3 3 D 3 o c os mutex c og pe Mia 0111 Hardware resetwith alen was nertormeci Tue Mar 15 13 23 37 2011 Target reset Tue Mar 15 13 24 47 2011 Found SWD DP with ID 0x2BA014 Tue Mar 15 13 24 47 2011 TPIU fitted Tue Mar 15 13 24 47 2011 ETM fitted Tue Mar 15 13 24 47 2011 FPUnit 6 code BP slots and 2 literal slots Tue Mar 15 13 24 4 2011 Hardware reset with strateqy 0 was performed Tue Mar 15 13 24 47 2011 Target reset Log window Dehin l an e FAS 910129 BE 13 26 Ready Donj O DQ jan el eye oe na e
2. 2 14 s q s See e 3m it zB et fit BE e cu Tii bi d s bi iik ab lt z hE if M FREUEN ie 100 rm e L Figure 4 3 Send UART Data From PC Side 15 cO FUJITSU 4 2 Nand Flash m Hardware Setting None B Flowchart C Sw Y neh ete nal bus Erase page 11 of Erase page 20 of block 0 block 100 8 bit data width Write data into Write data into page meee FARNI page 11 of block 0 20 of block 100 Read data from Read data from page page 11 of block 0 20 of block 100 Ed Figure 4 4 Nand Flash Sample Code Flowchart m Usage 1 Open Nand Flash sample project and start debug 2 Use step over to debug and watch local variable flash id buf 4 3 RTC B Hardware Setting It is an option that user can user external battery to supply power for module RX8025 T so that the date and time can be stored after system power shut down B Flowchart nah ES Write 0 to second register Read to second register set IIC mode Enable FOE signal Write 30 to minute register Read to minute register FOUT output 32 76
3. jw Ok pede Hep Figure 5 23 Don t use initialization File 3 Check Update Target before Debugging checkbox Options for Target Debug ULINK Conex Debugger 2 3 if m n Run independent Figure 5 24 Select Update Target Before Debugging 31 co FUJITSU B Setting for RAM Debug 1 Set ROM address in Code SRAM area Ox1fff8000 0Ox1 fffffff Options for Target Debug i Device Target Output Listing User Asm Linker Debug Utilities Fujitsu Semiconductors MBSBFS BR Code Generation MHz 4 0 Operating system None Use Cross Module Optimization Use MicroLIB Big Endian Use Link Time Code Generation ReadOnly Memory Areas Read rite Memory Areas default off chip Start Size default off chip Start Size Startup Pam Pama 2 hi F b 020000000 08000 L IRAM2 E Figure 5 25 Set RAM Address for RAM Debug 2 Set initialization file path Debug_RAM ini Options for Target Debug E x Device Target Output Listing User Asm Linker Debug Utilities Use Simulator Settings f Use JULINK Cortes Debugger Settings Limit Speed to Real Time v Load Application at Startup Initialization File x 7 Restore Debug Session Settings Z Breakpoi
4. 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 MCU periphery function It also provides standard 20 pin JTAG interface which is both compatible with IAR and Keil debug tool In addition it allows On board programming with both USB and UART mode Fam 301 309 sj E res Marisa p nnm Bese SBI co 2E FUJITSU e la al bm en 1 Bekakak ka HE kal ul 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 with 3 3V and 5V system It includes a host of robust peripheral features including motor control timers MFT base timer can be configured to PWM PPG Reload PWC timer ADCs on chip memory up to 512K Flash up to 64K SRAM and a wide range of communication interfaces USB I2C SIO LIN CAN cO FUJITSU The size of on chip memory can be configured according to different part
5. 50 aye vin Els ac ar al Ser 3i Figure 5 3 IAR IDE Overview B Run an Existed Project 1 Open a project by clicking File Open Workspace File Edit View Project Tools Window Help New k be p ca II Fe cmo Close Workspace Save Workspace Header Source File totrl Shift H Close Workspace Save Save S Save All Page Setup IAR Inform Print Here you vill find all the Recent Files h projects user and refer Recent Workspaces 4 Exit Figure 5 4 Open a Project 22 co FUJITSU 2 Select a project eww file Open Workspace My Recent D acuments Deskto p My Documents Computer Mu File rame mb3biSOEr_template eww Places Files of type Workspace Files ewn Cancel Figure 5 5 Select a Project 3 Click Project Rebuild All Project Tools Window Help Add Files Add Group Import File List Edit Configurations Remove Create Mew Project Add Existing Project Options Alt F Source Code Control k Make Compile Ctrl FF Rebuild All Clean Batch build F8 Stop Build Corl Break Download and Debug Debug without Downloading Make amp Restart Debugger 21 Restart Debugger Grrl Shi FESTER Download k Figure 5 6 Rebuild All 23 cO FUJITSU 4 Click Download and Debug D mcg 45 Bp BE te A n mbabfS x c mbSbF5p6
6. M 8 2 3 Setting for UART On Board Programming 8 2 4 Setting for USB On Board Programming 8 Tor Debug TOOL sasa naun aan gata aa an alaa aaa aaa 9 3 FLASH ON BOARD PROGRAMIMINGQ 10 3 1 On Board Programming via UART a 10 3 2 On Board Programming via USB a nnn nns 11 4 SAMPLE CODE ier 13 AFRUAR uu u Ee EN a a aga ai a EE E era ences E E A E E EEEE a a E 14 A NaNO TITI ee E E T ER 16 ana ae E E T A AA 16 CAN E E 17 AS UOB P G Iu u m t 18 AOSB AOS eieae E A E E sa 19 Ar LCDS ADS RO E 20 5 DEBUG ITOOL AND IDE u u aaa aaa aa NV VH NUM a ajaja aja alaa NENNEN Ja MUN a AJA AG 21 5 1 Debug with J Link in IAR EWARM Workbenoh 22 5 2 Debug with U Link ME in Keil uVision4 26 6 MATERIALS DOWNLOADLD 34 cO FUJITSU 1 Introduction
7. 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 The J Link should be used with IAR Embedded Workbench which can be downloaded freely from following web 21 cO FUJITSU 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 2 IAR Embedded Workbench IDE i8ix Tool bar 2 06105 0 199 inden Hal cg gt Bs ga o c S IV VERO PSSM 92 9 ep 6 22 2 ces 22 ali v orkspace gg X lcd c adc c os tmr c key h os time c os cfg h ucos_ii h os task c os a asm os core c os cpu c c Mis i lash Debug xpression Files em Ri a AD_Data_temp 0 Watch tti St rt d FI h D b AD Data REI gerne ash ees Function Name main LcdFlag Error col 1 window esee Parameters none FlagCounter cnts Error col 1 system_mb3bfS0x c Return none mon str Error col 1 sec Error col 1 Description main ch Error col T 4 P n kk kk kk kk kk kk kk kk kk
8. It ended normally completely Figure 3 3 Start Programming 10 co FUJITSU 3 2 On Board Programming via USB B First check the hardware setting as introduced by section 2 4 B After connect with PC via USB cable the EVB can be identified as a USB device LEE EP Figure 3 4 USB Device Sign B Check the COM port for this USB port in the device manager cu r ssp na See E Ports COM amp LPT F r m m EHH Port COMI Cy USB Part COMP ii gt Figure 3 5 COM Port in Device Manager B Install the USB programmer USBDW_V01L03 It be downloaded on the web B Open it set the parameter as shown in following figure and select Hex file BIST SELECT FLASH INFORMATION Target MOU Start Address 000000H Hex File mb9bfS06r Open End Address O7FFFFH GOM 4 255 Flash Size 0g0000H Command to COM Full GQperation 0 E B P Down load Blank Gheck Proeram amp Verity Read amp Compare Figure 3 6 USB Programmer Overview B Click Full Operation 2 7 iii fash 1 Please reset the microcontroller on userboard Then push OK button cra Figure 3 7 Press Reset Button 11 co FUJITSU m Press reset key on the board Programming will start Figure 3 8 Start Programming 12 co FUJITSU 4 Sample Code The sample codes for FSSDC 9B596 EV board are listed as following table ext bus nandflash Use externa
9. co MCU AN 510014 E 10 FUJITSU FM3 32 BIT MICROCONTROLLER MB9B500 Series FSS MB9BF506R EV BOARD USER MANUAL APPLICATION NOTE or more information for the FM3 microcontro http www fujyitsu com global services m FUJITSU SEMICONDUCTOR SHANGHAI LIMITED co FUJITSU TM ARM ARM and Cortex M3 are the trademarks of ARM Limited in the EU and other countries 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 copyright or any other right of FUJITSU SEMICONDUCTOR or any third party or does FUJITSU SEMICONDUCTOR w
10. 13 gt L R105 1104 gt E 3E 1 J t103 HCUUDO F q sul L su C 18101 Q u1D4 123 C c202 A Potentiome AnoiL L gxr eun n506 TP amp 61 3S0 61 M lc2na 209 t Ao02L I ltag PHR R505 99 91 59 60 C lc204 208 zr er 1 T R504 E FUJITSU 4 ms L lcao5 c2n07 CAN 5 E c108 Lig Coca SSC w AD channel 7 C112 _ x 7 TX0_2 2 s HES Ea A wa kris T T s H TJ aja Jaba en L 7 9012 85015 4101 c107 m 20 USBFUNCTION 7 E a ET 16704 Leal co E ll ins CIRPOS 2 g s 104 ie i 4 172711171279 4 RESET 58 USB Device 32 TP01 30 L1 c a B one rim R114 La A OL 8 LIH ss Tre gt RIIS 102 TI cp 401 o8 SBHOST B pere FSSDC SB506 EUBNy1 D 2 m 18601 USB Host Nand Flash RTC Key Battery Key attached on external bus attached C channel 7 Reset 2 pin header Left P40 Right P43 CS7 area Up P41 Down P42 cO FUJITSU 2 2 Jumpers Overview Setting Short J101 select external power J101 J103 Power selection Short J102 select JTAG power Short J103 select USB power 2 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 J105 Mode setting Short Programming mode Open Normal mode Short 1 2 wh
11. PrEP gt DM m zs w S S B gt chow Show multiple Windows Debug Watch Memory Serial Analysis Restore Trace System Viewer Stop Source Code Application Line of current PO Wiews 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 B Setting for Flash Debug 1 Set ROM address in Flash area 0x00000000 0x00080000 x Device Target Output Listing User C C Asm Linker Debug Utilities Fujitsu Semiconductors MBSBF506R Xtal MHz k o Operating system None Use Cross Module Optimization Use MicroLIB Bia Endian Code Generation Use Link Time Code Generation Read Only Memory Areas Read Write Memory Areas default off chip Start Size Startup default off chip Start Size Nolnit ROMI C RAMI ROMZ C 2 ROM C RAMS on chip on chip Row 100 080000 imams 0520000000 0 000 IROM2 c IRAM2 NW Figure 5 22 ROM Address Setting for Flash Debug 30 cO FUJITSU 2 Don t use initialization file Options for Target Debug E E xj ULINE Cortes Debugger suc Ds a 000007 peu fos
12. 1 2 of J USB and J USB short gt Check J701 Short 5V Open 3 3V gt Connect with PC via USB cable B 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 Button USB Bus reset HID initialization Configure Endpoint 0 5 Get Device HID description y Enable Endpoint 5 interrupt transfer Use interrupt transfer to communicate with host Figure 4 8 USB Function Sample Code Flowchart BH Usage 1 Make the hardware setting 2 Watch the mouse moving when pressing Up Down Left Right buttons 18 cO FUJITSU 4 6 USB Host m Hardware Setting gt Check if 2 3 of J USB and J USB short gt Connect witha USB mouse B 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 Initialize system clock Initialize timer y Init USB host Display mouse data Enumeration Mouse data process Figure 4 90 USB Host Sample Code Flowchart m U
13. 2 4 Setting for J Link B Use Keil U Link ME Part Number Setting 20PIN JTAG JTAG connctor Connect with U Link ME Short J101 select external power J101 J103 Power selection Short J103 select USB power J104 Voltage selection Short 2 3 J105 Mode setting Table 2 5 Setting for U Link FUJITSU 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 B First check the hardware setting as introduced by section 2 3 B Install the UART programmer PCWFM3 V01L01 It can be downloaded on the web B Open it set the parameter as shown in following figure and select Hex file FUJITSU FLASH MCU Programmer for FM3 E x Target Microcontroller MB95F506 Aade 000000 m zi End Address 07FFFFH EE mbabf506r_can srec Flash Size DenonnH Command ta COT Option cet Environment Help Check SUM bu4 Full Operation O E 6 P Download Erase Blank Check Program amp verity Read amp Compare Copy p FUJITSU Figure 3 1 UART Programmer Overview B Click Full Operation 2 1 3 Please reset the microcontroller on userboard JJ Then push button OK Cancel Houp Figure 3 2 Press Reset Button B Press reset key in the board and the programming will start 1024 1024 5
14. 8khz wave after it is enabled Y Y Write 8 to hour register Read to hour register Figure 4 5 RTC Sample Code Flowchart 16 cO FUJITSU B Usage 1 Open Nand Flash sample project and start debug 19 t 2 Use step over to debug and watch local variable sec hour 4 4 CAN B Hardware Setting Connect 2 EV board with CAN interface as following figure GANG EV board 1 EV board 2 Node A Node B CAN 2 CAN 2 Figure 4 6 CAN Hardware Connection B Block Diagram gt Node A use buffer 10 ID 0x12345678 to transfer and buffer 8 ID 0x08765432 to receive gt Node B use buffer 7 ID 0x12345678 to receive and buffer 10 ID 0x08765432 to transfer Node A Node B Buffer 10 Buffer 7 ID20x12345678 ID 0x12345678 v Buffer 8 Buffer 10 ID 0x08765432 ID 0x08765432 Figure 4 7 CAN Demo Block Diagram B Usage 1 Define CAN TX RX in the code and compile then program the code into Node A 2 Dont define CAN TX RX in the code and compile then program the code into Node B 3 Connect Node A with Node B When in real usage user can program one node and use the other node to debug cO FUJITSU 4 5 USB Function m Hardware Setting gt Check if
15. I5061_mfserial Create Executable outputhdebug mbSbrS06r_mfserial v Debug Information Create Batch File w Create HEX File v Browse Information Create Library outputhdebug mbSbfS06r_mfserial LIB Figure 5 28 HEX File Generation in Keil IDE 2 User can find the generated file in path output debug 33 co FUJITSU 6 Materials Download The following materials can be downloaded from below web http www fujitsu com cn fss events contest 2010 index download html B Software e FUJITSU Flash MCU Programmer e FUJITSU Flash USB DIRECT Programmer B Document FSSDC 9B506 EVB User Manual FSSDC 9B506 EVB Schematic MB9B506 Series Datasheet MB9B506 Series Peripheral Manual MB9B506 Series Flash Programming Manual Sample code e uart iic rtc ext bus nandflash can usb func mouse usb host catch mouse e icd ad key B IDE Study Material IAR IDE study material e Keil IDE study material 34
16. NameSet Task Monitor PRIO Monitor amp err StartUp 8endif EAD Data temp startup MB9BF50x s key flag 1 lt double click or F2 to add Watch system MB9BFSOx c OSTaskDel OS PRIO SELF deteled by itself atc Source Files wi n d OW ae Ea 2 23 9 2 Serial c Retarget c X main c x Documentation Task name Task AD Abstract txt Task Description This task is used to make LED2 4 6 8 ucos2 ft twinkle at 1Hz frequency E os_tmr c 43 05_ d TATA ACA ACA Ch A Ch A A A A A NK A UN A 5 os dbg c j5 void Task D void pdata os flag c dg 1 os mbox c d whileii 2 os mem c E os mutex c if 1 IOREG DSR UO amp 0x1 amp os a c H E os sem c IOREG SCFD vO os_task c q AD Data temp AD Data temp gt gt 6 os_time c d sprintf disp sd AD Data temp amp os cpu c c q os cpu a s q IOREG SCCR_UO 0x01 AZDC start modules Ied c if abs AD Data temp AD Data gt 20 d PN MAEN m am m m mm sem Um Main eee window SEs rr NI oad F fujitsu arm RTOS ucos mbSbfSxxy_templates fm3_ucos_demo example ARM F
17. al Options CIC4 Compiler Assembler Output Converter Setup Download Images Extra Options Plugins Custom Build Build Actions Driver Iv Run to Linker main Fan Simulator Angel GDB Server ROM monitor J Link J Trace TI Stellaris FTDI dis Device descnption file PE micro RDI Override default ST LINK Bi DIRSSCONFIG debuaggersF ujtsu iamb3bfabr ddi Third Party Driver TN Figure 5 10 Macro File Disabled 3 Set Flash loader file path 8TOOLKIT DIR config flashloader Fujitsu MB9BF506 board in Debug Download table Options for node mb sbf5 br mfserial Category Factory Settings General Options Cll Compiler Assembler Output Converter Setup Download Images Extra Options Plugins Custom Build Build Actions Linker Attach to program v Verify download Suppress download Z Use flash loader s Simulator Angel GDB Server ROM monitor J Link J Trace Stellaris FTOI Macraigar PE micra RDI ST LIME Third Party Driver Cancel Figure 5 11 Flash Load File Path 25 co FUJITSU B Setting for RAM Debug 1 Check the configuration file path S6PROJ_DIR config mb9bf506_ram icf in Linker table Options for node mb Sbf 506r mfserial Category Factory Settings General Options Cll Compiler Assembler Output Converter Config Library Input Optimizations Output List define
18. arrant 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 i e 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 i 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 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
19. en 4M oscillator is used dp Wasik SISAN Short 2 3 when 48M oscillator is used J107 p22 connection Short connect P22 UART_TX0 with MAX3232 Open disconnect a UART a with MAX3232 Short when 5V power is used Mau Open when 3 3V power is used Table 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 Setting UART O DB9 connector Connect with PC via RS232 cable 7106 Oscillator Selection j108 Mode setting 107 P22 connection Table 2 2 Setting for UART On Board Programming 2 4 Setting for USB On Board Programming Pari Number Setting USBFUNCTION USB function connector Connect with PC via USB cable J USB J USB Function Host selection Short 1 2 J105 Mode setting J106 Oscillator Selection Short 1 2 J107 P22 connection e Short when 5V power is used ii WONGE UN ION Open when 3 3V power is used Table 2 3 Setting for USB On Board Programming co FUJITSU 2 5 Setting for Debug Tool B Use IAR J Link Part Number 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 Modesetting Open Table
20. l bus to access Nand Flash uart Use UART to communicate with PC can Implement CAN communication between 2 CAN nodes Implement the USB mouse to demonstrate usb function mose USB function Identify a USB mouse and print the mouse usb host catch mouse 5 position on debug window Icd 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 this case please check following setting B IAR IDE gt type Pre included file gt ICF file gt Flash loader B Keil IDE gt MCUtype gt Pre included file gt ROM amp RAM memory address cO FUJITSU 4 1 UART m Hardware Setting Connect UART 2 with PC via RS232 cable B Flowchart mA Y Initialize MFS channel 3 Send the string press key Send the received data Figure 4 1 UART Sample Code Flowchart B Usage 1 Open a COM assistant software make following setting and open COM port Baud rate Data bits Stop bits Parity Flow control Custom B Figure 4 2 COM Assistant Setting 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
21. lash Blinky AXF rase Done Programming Done erify OK Zim ULINK Cortex Debugger t1 0 00000000sec L 491C 25 CAR uum sce love RAW asd s 49 gt e ey or ma mz me So je BA am En gm uer 5 E mue oar Be 1 AD Data temp 4 Ox000 C CO Cn XL Figure 5 16 Keil IDE Overview B Runan Existed Project 1 Open a project by clicking Project Open Project Project Flash Debug Peripherals Tools SCS Window Help New uvision Project Mew Multi Project Workspace Figure 5 17 Open a Project 28 co FUJITSU 2 Select a project uvproj file Select Project File Recent Documents Documents Metwork File name mbSbfSDEr template uvproi Files of type Project Files umpu uve uv3 5 v Cancel EZ Figure 5 18 Select a Project 3 Rebuild all Debug _ Rebuild all target Files Figure 5 19 Rebuild All Files 4 Start debug e cela en Start Stop Debug Session Ctrl F5 Enter or leave a debug session Figure 5 20 Start Debug 29 cO FUJITSU 5 Use following tool bar to debug step Control Show Windows Command Tool Box Step in out etc Disassembly Symbols Registers can be Call Stack customized
22. loader Fujtsu MBSBFE 7 J Link J Trace TI Stellaris FTDI Edit Macraigar PE micro RDI ST LINK Third Party Driver 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 B How to Make a HEX File 1 Use Flash debug 2 Select Generate additional output in Output Converter table Options for node mb9bf506r_mfserial Category Factory Settings General Options CIC Compiler Assembler Qutput Converter Output Custom Build Build Actions e Generate additional output Linker THEE E m Debugger ki Simulator Motorola Angel uem GDB Server ROM monitor J Link J Trace mbSbf5061_mfserial srec TI Stellaris FTOI Macraigor FE micro RDI ST LIME Third Party Driver W Override default Figure 5 15 Hex File Genration in IAR IDE 3 User can find the generated file in path Debug Exe 2f Tool bar Project list co FUJITSU 5 2 Debug with U Link ME in Keil uVision4 The sample code can also be debugged in Keil uVersion4 with U Link The following figure shows basic debug window W main 4 MEN File Edit View Project Flash Debug Peripherals Tools S CS Window Help JG d zE iE E J 09 BO Be o gt ge g c g wi u Wi gt _ Project nx f maine 5 f as f oscorec kd c Seri z F MB9BF50x Flash OSTask
23. nts Z Toolbox v Watch Windows amp Performance Analyzer Iv Memory Display Aun to maini v Load Application at Startup IY Run to maini Initialization File Ed Debug RAM ini Restore Debug Session Settings v Breakpoints Iw Toolbox v Watch Windows I Memory Display CPU DLL Parameter SARMCM3 DLL MPU Driver DLL Parameter SARMCM3 DLL MPU Dialog DLL Parameter DCM DLL pCM3 Dialog DLL Parameter JTCM DLL Cancel Defaults Figure 5 26 Select Initialization File 32 co FUJITSU 3 Don t Check Update Target before Debugging checkbox Options for Target Debug X Device Target Output Listing User EE Asm Linker Debug Utilities Configure Flash Meru Command Use Target Driver for Flash Programming OLINE Cortes Debugger Y Init File Use External Tool for Flash Programming Command d Arguments Cancel Defaults 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 B How to Make a HEX File 1 Check Create HEX File checkbox This file is Intel Format HEX Options for Target Debug x Device Target Output Listing User Asm Linker Debug Utilities Select Folder for Objects Name of Executable mbSb
24. number and the package is available in LQFP and BGA shown in following table SRAM N LQFP 100 MB9BF500N R 256kB 32kB B N LQFP 100 BGA 112 MB9BF504N R 256kB 32kB l N LQFP 100 BGA 112 MB9BF505N R 384kB 48kB R LQFP 120 N LQFP 100 BGA 112 MB9BF506N R 512kB 64kB R LQFP 120 Table 1 1 Product List 1 3 Board Features 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 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 1x Reset button 1x potentiometer regulating input voltage to AD channel All 120 pins routed to test pads On board 5V and 3V voltage regulators Power LED Power supply via USB Device JTAG or external with 15V power connector cO FUJITSU 2 Hardware Setting 2 1 Main Features DB9 Connector UART channel 0 External Power 15V LED LED2 LED4 P1B P19 DB9 Connector UART channel 2 Di __ 119 B 11201 fl Cah Li LED4 LEDS LED UBRT 0 103 E103 E101 Om T OrC3030302 0305 we Be B SC LL Corio2 LJ LI c ADC JTAG 78107 B sn un D 7 106 C115 LCD Connector LJmos gom nor DT 18104 106171
25. pal Custom Build Build Actions Linker configuration file Debugger Simulator Angel GDB Server IAR ROM monitor J Link J Trace Configuration file symbol definitions fone per line Stellaris FTOI Macraigor FE micro RDI ST LIME Third Party Driver Figure 5 12 ICF File for RAM Debug 2 Select Use macro files in Debugger Setup table Options for node mb9bf506r_mfserial X Category Factory Settings General Options Compiler Assembler Output Converter Setup Download Images Extra Options Plugins Custom Build Build Actions Driver Z Run to Linker J Link Trace m main Simulator Setup macros Angel Iv maerrfi GDB Server MEN PRO_DIRS config Ram_VTOR mac P J Link J Trace TI Stellaris FTOI a Device description file PE micro RDI Override default ST LIMK S TOOLKIT DIRSNCONFIGSdebuggersFujtsuNomb3bf506r ddl E Third Party Driver Figure 5 13 Macro File Enabled 26 cO FUJITSU 3 Don t use Flash loader file Options for node mb9bf506r_mfserial Category Factory Settings General Options IC Compiler Assembler Output Converter Setup Download Images Extra Options Plugins Custom Build Build Actions Linker Z Verify download Suppress download Attach to program Simulator Angel Use flash loader s GDB Server enda default board tile TAR ROM monitor STOOLKIT_DIRS config flash
26. r h core_cm3 c Flash c Download and Debug Figure 5 7 Click Download and Debug 5 Use following tool bar to debug End Debugging SEE p EE Km Step Trace Into Statement Control 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 B Setting for Flash Debug 1 Check the configuration file path 6PROJ_DIR config mb9bf506 icf in Linker table Options for node mb9bf506r mfserial Factory Settings General Options CiC Compiler Assembler Output Converter Config Library Input Optimizations Output List ttdefine D lt gt Custom Build Build Actions Linker configuration file lveride defan Debugger Simulator SPR OJ_DIR config mbSbf506 icf m Angel GDB Server IAR ROM monitor J Link J Trace Configuration file symbol definitions one per line TI Stellaris FTDI Macraigor PE micro RDI ST LINK Third Party Driver Figure 5 9 ICF File for Flash Debug 24 cO FUJITSU 2 Don t select Use macro files in Debugger Setup table Options for node mb 9bf5 6r mfserial x Category Factory Settings Gener
27. sage 1 Make the hardware setting N Enable definition Debug in the code O Run the code Move the USB mouse and watch the mouse position in the terminal IO window as following figure Debug viewer window in Keil IDE Figure 4 10 USB Mouse Position Display cO FUJITSU 4 7 LCD amp AD amp Key m Hardware Setting None B Flowchart Start Initialization clock key Icd led dual timer ad Y Set LCD update Display key Press key flag pressed in LCD N AD convert Pre AD value Set LCD update Display new AD ur AD_calue gt threshold value flag value on LCD Count time 0 Count time Clear LCD update Clear window and flag display logo in LCD Figure 4 11 LCD key AD Sample Code Flowchart m 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 displayed on LCD 20 FUJITSU 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 T i vA nimm LISIJJJUJIAS EESTI y t ded NS e er m rs y lt a ain r4 Us 2 ee RA AK Ru EI
28. the products Any semiconductor devices have an inherent chance of failure You 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 2010 FUJITSU SEMICONDUCTOR SHANGHAI LIMITED All rights reserved co FUJITSU Revision History Vesin D8 2011 04 21 co FUJITSU Table of Contents REVISION HISTORY 3 u 5 1 1 Product Overview a 5 1 2 Nk 5 ta Board FEAU CNN 6 2 HARDWARE SETTING 7 2 1 Main Features 7 LIMES Tad

Download Pdf Manuals

image

Related Search

Related Contents

IT Management Suite 7.1 SP2 MP1 Rollup Version 10 Release Notes  Shanghai Diebold Security Equipment Co., Ltd.  User`s Manual - RF Logics Inc  ICP DAS USA PCI-P16POR16 Computer Hardware User Manual  Liquid Trade  ILa cosmeto r qui redesigne  Canyon Keyboard PS/2 United States Black/Silver, Retail, 1pk  Chorale8 USA (EN) v10  TP-Link TL-SF1048 V3 Declaration of Conformity  VersaTREK Myco - Thermo Scientific  

Copyright © All rights reserved.
Failed to retrieve file