background image

SHOW TITLE MM/DD/YY

27

SLIDE OWNER

Software

Summary of Contents for FM4-U120-9B560

Page 1: ...Hardware V1 1 Documentation V1 8 Starter Kit User Guide FM4 U120 9B560 FM4 U120 9B560 MEM Document Number 002 09878 Rev B...

Page 2: ...ny security breach such as unauthorized access to or use of a Cypress product In addition the products described in these materials may contain design defects or errors known as errata which may cause...

Page 3: ...ontent by links because of security reasons A viewer called PDF XChange is provided in the software package of this starter kit It s use is free of charge and no additional installation is required La...

Page 4: ...e Examples Tools Flash Programming JTAG CMSIS DAP IAR Embedded Workbench KEIL Vision Contacts and More Additional documents Schematic Factsheet Data sheet MB9B560R Series Peripheral Manual Peripheral...

Page 5: ...ng features Up to 1 MByte Flash Memory and 32 KByte Work Flash Memory Up to 128 KByte RAM Up to 160 MHz clock Up to 2 CAN controller 2 0A B Up to 8 UART LIN SPI I C interfaces USB Host Device interfac...

Page 6: ...V 3 3 V User LEDs Reset LED 3x User LEDs R G B Reset Buttons 3x buttons Reset External Interrupt NMI Potentiometer AN18 0V Onboard voltage 3 3V 5V Debug interface Onboard CMSIS DAP incl Status LEDs co...

Page 7: ...7 SLIDE OWNER Contents FM4 U120 9B560 The FM4 U120 9B560 MEM contents The FM4 U120 9B560 or FM4 U120 9B560 MEM evaluation board One USB mini cable 1 page flyer Box FM4 U120 9B560 MEM USB cable Additio...

Page 8: ...eck Jumper Setting FM4 U120 9B560 supports 5 V and 3 3 V operation FM4 U120 9B560 MEM supports only 3 3 V operation Run LED 3V NMI USBF USBF USB Note Please set J9 USB instead of J7 CMSIS DAP Please s...

Page 9: ...starter kit to CN4 USB with your PC Ensure jumper J9 USB is set for correct power supply Ensure jumper J19 and J20 1 2 are set correctly for use of SIN0 SOT0 Press the Reset Button Check the availabil...

Page 10: ...rst drive drivers driverinstaller exe Connect the starter kit to CN4 USB with your PC Open the PC software drive sw examples testsoftware SK FM4 U120 9B560_demo exe The picture of the board will be sh...

Page 11: ...finished successfully the first test Next section covers The onboard features How to program the Flash Serial ROM Boot loader USB Direct UART0 On board CMSIS DAP JTAG with optional emulator How to sta...

Page 12: ...SHOW TITLE MM DD YY 12 SLIDE OWNER Hardware...

Page 13: ...e Jumper Option Ext JTAG CMSIS DAP Virt COM USB Device Port R11 VBat J25 J24 Expansion Header Pin 1 60 Expansion Header Pin 61 120 2 1 60 59 61 62 119 120 RST INT NMI 5V 3V3 J14 J21 3V 5V J1 J2 J3 J4...

Page 14: ...rt Variable Resistor AN18 VBat P47 P46 Expansion Header Pin 1 60 Expansion Header Pin 61 120 2 1 60 59 61 62 119 120 RST INT NMI 5V 3V3 Prog Run MD1 LED 3V 5V P22 U5V JTAG MD1 MD0 SK DAP JTAG USB NMI...

Page 15: ...dware Bottom Side SD Card interface only FM4 U120 9B560 NAND FLASH FM4 U120 9B560 MEM SDRAM FM4 U120 9B560 MEM Expansion Header Pin 1 60 2 1 60 59 61 62 119 120 5V 3V3 J16 Expansion Header Pin 61 120...

Page 16: ...5 ADTG_1 SIN6_0 RTO15_0 INT07_2 MADATA05_0 SDRAM NAND FLASH 8 P56 SOT6_0 DTTI1X_0 INT08_2 MADATA06_0 SDRAM NAND FLASH 9 P57 SCK6_0 MADATA07_0 SDRAM NAND FLASH 10 P58 SIN4_2 AIN1_0 INT04_2 MADATA08_0 S...

Page 17: ...3C TIOA2_1 ZIN0_0 RTO02_0 MCASX_0 SDRAM 27 P3D TIOA3_1 RTO03_0 MAD00_0 SDRAM 28 P3E TIOA4_1 RTO04_0 MAD01_0 SDRAM 29 P3F TIOA5_1 RTO05_0 MAD02_0 SDRAM 30 VSS GND GND 31 VCC VCC_MCU 3V3 or 5V0 VCC_MCU...

Page 18: ...OB1_0 SCS7_1 MAD03_0 SDRAM 48 P4C TIOB2_0 SCK7_1 AIN1_2 MAD04_0 SDRAM 49 P4D TIOB3_0 SOT7_1 BIN1_2 INT13_2 MAD05_0 SDRAM 50 P4E TIOB4_0 SIN7_1 ZIN1_2 FRCK1_1 INT11_1 WKUP2 MAD06_0 SDRAM 51 P70 TX0_0 T...

Page 19: ...0 SDRAM 65 P13 AN03 SIN0_1 IC02_2 INT03_1 MAD10_0 SDRAM 66 P14 AN04 SOT0_1 IC03_2 MAD11_0 SDRAM 67 P15 AN05 SCK0_1 MAD12_0 68 P16 AN06 SIN2_2 INT14_1 MAD13_0 69 P17 AN07 SOT2_2 WKUP3 MAD14_0 SDRAM 70...

Page 20: ...3_0 JTAG JTAG 89 P20 AN18 AIN1_1 INT05_0 MAD24_0 Potentiometer R11 Potentiometer R11 90 VSS GND GND 91 VCC VCC_MCU 3V3 or 5V0 VCC_MCU 3V3 or 5V0 92 P0E TIOB5_2 SCS6_1 IC13_0 S_CLK_0 MDQM1_0 SD Card SD...

Page 21: ...MCSX7_0 JTAG JTAG 107 VSS GND GND 108 P68 TIOB7_2 SCK3_0 INT00_2 Button INT Button INT 109 P67 TIOA7_2 SOT3_0 110 P66 ADTG_8 SIN3_0 INT11_2 111 P65 TIOB7_0 SCK5_1 112 P64 TIOA7_0 SOT5_1 INT10_2 113 P...

Page 22: ...Mode J5 2 pin Operation of MD0 CMSIS DAP Open Run Mode CMSIS DAP Closed Firmware update of CMSIS DAP J6 J9 Power Supply Source Please select just one power source J9 USB Host powered CN4 J8 JTAG power...

Page 23: ..._0 Open SIN0 is disconnected from CMSIS DAP Closed CMSIS DAP s virtual COM port is connected J20 3 pin CMSIS DAP Virtual COM port SOT0_0 2 3 SOT0 P22 is used for USB programming 1 2 CMSIS DAP s virtua...

Page 24: ...HOW TITLE MM DD YY 24 SLIDE OWNER Jumper Default Run mode CMSIS DAP FM4 U120 9B560 supports 5V and 3 3V operation FM4 U120 9B560 MEM supports only 3 3V operation Run LED 3V NMI USBF USBF SIN0 SOT0 DAP...

Page 25: ...SHOW TITLE MM DD YY 25 SLIDE OWNER Prog MD1 3V 5V U5V USB NMI USBF USBF U5V MD0 SIN0 P22 Jumper Programming Mode USB Direct Mode...

Page 26: ...eripheral base board J16 Close jumper J6 by CMSIS DAP CN3 Close jumper J7 default by external JTAG CN2 Close jumper J8 by USB host CN4 Close jumper J9 3 3V or 5V Jumper J15 selects the target voltage...

Page 27: ...SHOW TITLE MM DD YY 27 SLIDE OWNER Software...

Page 28: ...ble for IAR EWARM or KEIL Vision See drive sw examples or www cypress com mb9bf56xr_template Empty project as base for user applications mb9bf56xr_adc_dvm Digital Voltage Meter based on the A D Conver...

Page 29: ...ess com mb9bf56xr_pdl The Peripheral Drivel Library PDL includes an API for all peripherals mb9bf56xr_pdl_adc_dvm Example for ADC mb9bf56xr_pdl_gpio Example for simple IO access mb9bf56xr_pdl_mfs Exam...

Page 30: ...http www cypress com documentation software and drivers cmsis dap spansion cypress fm link FLASH USB DIRECT Programmer Microcontroller Flash programming via CN4 USB Device Port Install the latest vers...

Page 31: ...SHOW TITLE MM DD YY 31 SLIDE OWNER Flash Programming...

Page 32: ...al by use of virtual COM port Install the latest version from here http www cypress com documentation software and drivers flash mcu programmer 1 Install the latest driver of USB Virtual COM port from...

Page 33: ...sition 1 2 MD1 For 5V operation set J15 to 2 3 close J2 and J13 For 3 3V operation set J15 to 1 2 open J2 and J13 Connect the board via USB Device CN4 to the USB Port of the PC If connected for first...

Page 34: ...SHOW TITLE MM DD YY 34 SLIDE OWNER Flash Programming via CN4 USB Direct Jumper setting PRG mode using USB direct Prog MD1 3V 5V U5V USB NMI USBF USBF U5V MD0 SIN0 P22 Connect PC...

Page 35: ...c or hex IAR see subfolder project example IAR output release exe ARM KEIL see subfolder project example ARM output release Adjust the corresponding virtual COM port Use Full Operation Download Erase...

Page 36: ...SHOW TITLE MM DD YY 36 SLIDE OWNER Flash Programming via CN4 USB Direct Jumper setting RUN mode using USB direct 3V 5V U5V USB NMI USBF USBF U5V SIN0 SOT0 Run LED Connect PC...

Page 37: ...2 SOT0 Set J21 to position 1 2 MD1 Check jumper setting J14 2 3 P60 Connect the board via USB CMSIS DAP CN3 to the USB Port of the PC When connected for first time Windows OS may ask for spansionusbv...

Page 38: ...SHOW TITLE MM DD YY 38 SLIDE OWNER Flash Programming via CN3 Serial Jumper setting PRG mode using CMSIS DAP serial communication Prog MD1 3V 5V U5V NMI USBF USBF U5V MD0 SIN0 SOT0 DAP Connect PC...

Page 39: ...ubfolder project example IAR output release exe ARM KEIL see subfolder project example ARM output release Adjust the corresponding virtual COM port Reset jumpers and return to Run mode jumper setting...

Page 40: ...SHOW TITLE MM DD YY 40 SLIDE OWNER Flash Programming via CN3 Serial Jumper setting RUN mode using CMSIS DAP serial communication 3V 5V U5V NMI USBF USBF U5V SIN0 SOT0 DAP Run LED Connect PC...

Page 41: ...SHOW TITLE MM DD YY 41 SLIDE OWNER JTAG Debugger...

Page 42: ...firmware Select debugger CMSIS DAP in your tool chain Any other JTAG adapter can be connected to CN2 too Select used JTAG adapter within IDE tool chain No jumper setting is required Additional virtual...

Page 43: ...e see instructions coming with Firmware update package Install latest version from here http www cypress com documentation software and drivers cmsis dap spansion cypress fm link CMSIS DAP Virt COM Pr...

Page 44: ...www cypress com documentation software and drivers cmsis dap spansion cypress fm link Connect the starter kit to CN3 CMSIS DAP with your PC Ensure jumper J7 CMSIS DAP is set for correct power supply...

Page 45: ...ITLE MM DD YY 45 SLIDE OWNER JTAG Adapter CMSIS DAP Using IAR Setup in IAR EWARM 1 Navigate to project options Via Files List Right click at the project Select Options Or via menu tab Project Select O...

Page 46: ...OWNER JTAG Adapter CMSIS DAP Using IAR Setup in IAR EWARM 2 Setup Project Debbuger Options 1 Navigate to Debugger 2 Select tab Setup 3 Select driver CMSIS DAP 4 Select in CMSIS DAP 5 Select tab JTAG...

Page 47: ...ITLE MM DD YY 47 SLIDE OWNER JTAG Adapter CMSIS DAP Using Keil Setup in Keil Vision 1 Navigate to project options Via Project Right click at the project Select Options Or via menu tab Project Select O...

Page 48: ...MM DD YY 48 SLIDE OWNER JTAG Adapter CMSIS DAP Using Keil Setup in Keil Vision 2 Setup Debug Utilities 1 Select tab Debug 2 Select CMSIS DAP Debugger 3 Select tab Utilities 4 Select CMSIS DAP Debugge...

Page 49: ...SHOW TITLE MM DD YY 49 SLIDE OWNER IAR Embedded Workbench Installation Getting Started Open Project Build Project Debug Project...

Page 50: ...om IAR CD or download latest version from IAR Website EWARM size limited 32k or time limited full Evaluation Version http supp iar com Download SW item EWARM EVAL Start EWARM Workbench Choose File Ope...

Page 51: ...Main Window IAR Workbench Workspace on left side of Workbench window If hidden then View Workspace Source files on right side of Workbench window as tabbed windows Project open File Open Workspace ew...

Page 52: ...Bar File Control new open save etc Edit Control cut copy paste undo redo Configuration Control e g RAM or ROM debugging Navigation Control Find Bookmarks File Navigation etc Build Control compile make...

Page 53: ...SHOW TITLE MM DD YY 53 SLIDE OWNER IAR Workbench Workspace IAR Workspace Window Project Name Sub Folder Modules Main Modules Module Includes Project Description Project Built Output...

Page 54: ...D YY 54 SLIDE OWNER IAR Workbench Making Project Making the Project Use Make Icon F7 or Menu Project Make Check for no errors in Output window below Build errors are indicated by or In Output window a...

Page 55: ...Target Download to Target and Start Debugging Use Icon Ctrl D or Project Download and Debug A new menu bar will occur on sucessful connection to target Reset Target Stop Step Over Step Into Step Out...

Page 56: ...Workbench Debug 1 Source Window The Source windows do not change contents but get additional information Current line PC Halted on Breakpoint Halted on Data break example Disassembly Window Shows pure...

Page 57: ...atch Window Watch Expressions Variables have to be added by user and are updated by Halt Breakpoint Quick Watch The Quick watch allows the user to calculate and recalculate expressions even with varia...

Page 58: ...SHOW TITLE MM DD YY 58 SLIDE OWNER IAR Workbench Simulator Simulator Mark Project File in Workspace Choose Project Options Choose Simulator in Debugger Setup Start Simulator with usual Icon...

Page 59: ...SHOW TITLE MM DD YY 59 SLIDE OWNER KEIL Vision Installation Getting Started Open Project Build Project Debug Project...

Page 60: ...Evaluation Version https www keil com demo eval arm htm Registration required Install ULINK ME Special installation is not needed because ULINK ME acts as a USB Human Interface Device HID and thus ne...

Page 61: ...SHOW TITLE MM DD YY 61 SLIDE OWNER KEIL Vision Getting Started Choose Menu Project Open Project Browse to drive sw examples mb9bf56xr_gpio v11 example ARM Choose mb9bf56xr_gpio uvproj...

Page 62: ...DE OWNER KEIL Vision Main Window KEIL Vision Project window on left side of IDE window Choose View Project Window if hidden Source files on right side of IDE window as tabbed windows Output window on...

Page 63: ...et floating File Control new open save etc Edit Control cut copy paste etc indention commenting Navigation Control Bookmarks search etc Text search search in files etc Debug Control Start Stop Debug S...

Page 64: ...Can be moved in bar window area or set floating Build Control Compile Translate Build Rebuild etc Download to Target Configuration Control e g RAM or ROM debugging Target Options Manage Books File Ex...

Page 65: ...IL Vision Project Window Vision Project Window Project Name Startup Code Subfolder Startup Code Source and Header Files Main Project Code Subfolder Main Project Code Source and Header Files Project De...

Page 66: ...sion Making Project Making the Project Use Rebuild Icon or Project Rebuild all target files Check for no errors in Output window below Build errors are shown in Output window Can be double clicked by...

Page 67: ...rget first when MCU Flash does not contain the current application openend and built in the IDE Use Download Icon or Menu Flash Download Start Debug Session Use Start Stop Debug Icon or Menu Debug Sta...

Page 68: ...be visible a new icon bar Reset Target Start Stop Application Step Control Step in out etc Show Source Code Line of current PC Show Windows Command Disassembly Symbols Registers Call Stack Show multi...

Page 69: ...sion Debug 3 Source View The Source windows do not change contents but get additional information Active Breakpoint Disabled Breakpoint Current Program Counter Current Cursor Line of Source Code Code...

Page 70: ...Y 70 SLIDE OWNER KEIL Vision Debug 4 Disassembly View Mixed mode is selectable and deselectable Active Breakpoint Disabled Breakpoint Current Program Counter Current Cursor Line of Code highlighted in...

Page 71: ...o 4 Memory windows can be displayed in tabs Memory is updated during runtime Memory window tabs are shared with Watch windows Register View Register view is a tab of the Project window Changes are hig...

Page 72: ...y and Local views Updated during runtime Any changes are highlighted in dark blue text backround color Displayed values can be changed by user during break Local View The local view shares the tab wit...

Page 73: ...SHOW TITLE MM DD YY 73 SLIDE OWNER KEIL Vision Trace ULINK ME Trace via ITM Simple Trace views via Instrumentation Trace Macro is supported by LINK ME Records Exceptions Counters...

Page 74: ...SHOW TITLE MM DD YY 74 SLIDE OWNER KEIL Vision Trace ULINK Pro 1 Trace via ETM Check settings in menu Flash Configure Flash Tools Tab Debug enables ETM pins...

Page 75: ...D YY 75 SLIDE OWNER KEIL Vision Trace ULINK Pro 2 Instruction Trace Real Time Trace recording Output can be filtered by several ETM and ITM events Trace buffer is held in PC memory and transfered to V...

Page 76: ...IDE OWNER KEIL Vision Simulator Simulator The Core Simulator can be selected by the menu Flash Configure Flash Tools Debug and then choosing Use Simulator Look feel is like using ULINK debugger Contro...

Page 77: ...SHOW TITLE MM DD YY 77 SLIDE OWNER Finally...

Page 78: ...SHOW TITLE MM DD YY 78 SLIDE OWNER Cypress Support Please check the following website for any available updates www cypress com...

Page 79: ...r Entsorgung schicken Sie das Ger t bitte an die folgende Adresse Valid for European Union Countries According to the European WEEE Directive and its implementation into national laws we take this dev...

Reviews: