Fujitsu Microelectronics Europe User Guide FMEMCU-UG-910017-11 MB88121 SERIES MB91460 SERIES STARTER KIT SK-91F467-FLEXRAY USER GUIDE
SK-91F467-FLEXRAY V1.1 Revision History Revision History Date 22/11/2005 01/06/2006 Issue V1.0, MSt, first official version V1.1, MSt SK-91F467D-208PFV information removed, Getting started chapter changed to new Monitor debugger version This document contains 73 pages.
SK-91F467-FLEXRAY V1.1 Warranty and Disclaimer Warranty and Disclaimer To the maximum extent permitted by applicable law, Fujitsu Microelectronics Europe GmbH restricts its warranties and its liability for the SK-91F467-FLEXRAY and all its deliverables (eg. software include or header files, application examples, target boards, evaluation boards, engineering samples of IC’s etc.
SK-91F467-FLEXRAY V1.1 Contents Contents REVISION HISTORY ............................................................................................................ 2 WARRANTY AND DISCLAIMER ......................................................................................... 3 CONTENTS .......................................................................................................................... 4 1 INTRODUCTION..............................................................................
SK-91F467-FLEXRAY V1.1 Contents 3.6 FlexRay Physical Layer ......................................................................................... 27 3.6.1 Channel A................................................................................................ 27 3.6.2 Channel B................................................................................................ 28 3.6.3 FT1080 Control Settings (S6) .................................................................. 30 3.
SK-91F467-FLEXRAY V1.1 Contents 6.1 Programming internal Flash of MB91F467DA series ............................................. 61 7 TROUBLE SHOOTING .................................................................................................. 64 8 SILK-PLOT OF THE BOARD ........................................................................................ 65 8.1 Top Side................................................................................................................ 65 8.
SK-91F467-FLEXRAY V1.1 Introduction 1 Introduction 1.1 Abstract The SK-91F467-FLEXRAY is a multifunctional development board for the FUJITSU FlexRay communication controller MB88121 and the 32-bit Flash microcontroller MB91F467DA. It can be used stand alone for software development and testing or together with monitordebugger software. The board allows the designer immediately to start with the software and system development, before his own final target system is available.
SK-91F467-FLEXRAY V1.1 Introduction 1.2 Features • Supports 32-bit Flash microcontroller MB91F467D • Supports FlexRay CC MB88121 • 9-12V (2000mA) unregulated external DC power supply • 5V, 3.3V, 2.5V and 1.8V on-board switching regulators with power status-LEDs • Triple supply monitor to watch 5V, 3.3V and selectable 2.5V or 1.
SK-91F467-FLEXRAY V1.1 Introduction 1.3 General Description The SK-91F467-FLEXRAY supports the FUJITSU 32-bit Flash microcontroller MB91F467D and the FUJITSU FlexRay stand alone communication controller MB88121. The Starter Kit can be used as a stand-alone development platform, or if a MCU socket is soldered instead of the Flash MCU MB91F467D, with the emulation system MB91V460 adapter board (MB2198-300) and 208 pin probe cable board (PB-91467D-NLS-208PFV). This User Guide is describing PCB version V1.1.
SK-91F467-FLEXRAY V1.1 Introduction 1.3.1 On Board Memory The starter kit includes 32MBit (4MByte) SRAM memory on board. The SRAM can be used with 5V, or with 3.3V external bus supply voltage. 1.3.2 MCU Clocks The board is supplied with a 4MHz crystal as the main oscillation clock for the MCU. Using the internal PLL of the MCU, internal clock rates up to 100MHz can be achieved. The MCU sub clock is connected to a 32.768 kHz crystal. 1.3.
SK-91F467-FLEXRAY V1.1 Introduction Either the DTR line or the RTS line of X1, X4 or X8 connectors can be selected to generate a system reset. The LIN transceivers (TLE6259) generate the adequate levels to drive the bus line in LINsystems for automotive and industrial applications. 1.3.10 MCU Pins All 208 pins of the microcontroller are connected to the edge connectors J1, J2, J3 and J4 and are directly available to the user. 1.3.
SK-91F467-FLEXRAY V1.1 Installation 2 Installation Remove the board carefully from the shipping carton. First check if there are any damages before power on the starter kit. To supply the starter kit, use the delivered In-Plug AC-DC Adapter (UPA 2000). Select the AC plug adapter suitable for your country power sockets Figure 2-1: AC plug adapter and insert this adapter into the connection terminal on the AC-DC adapter.
SK-91F467-FLEXRAY V1.1 Installation For the power supply of the SK-91F467-FLEXRAY a DC input voltage of 9V – 12V is recommended. The positive voltage (+) must be connected to the shield, and ground (GND) must be connected to the centre of the connector X5! After power-on of the SK-91F467-FLEXRAY, the four red power-on LEDs D24 (5V), D30 (3.3V), D34 (2.5V) and D40 (1.8V) should be light. The reset LED D18 should be off. Additionally the LED D2 and D4 should be on.
SK-91F467-FLEXRAY V1.1 Installation 2.1 Jumper Settings The following table lists all jumpers including its default setting and location on the starter kit. The default jumper setting is described for 16 bit non multiplexed bus communication between MCU and FlexRay CC.
SK-91F467-FLEXRAY V1.
SK-91F467-FLEXRAY V1.1 Installation 2.2 Jumper Location The following picture shows the silk plot of the starter kit with marked default jumper settings.
SK-91F467-FLEXRAY V1.1 Installation 2.3 Software Installation 2.3.1 Installation of Softune Workbench Fujitsu supplies a full working 32bit development environment with the “SK-91F467FLEXRAY” starter kit called Softune Workbench V6. The Softune Workbench also supports a monitor debugger which is pre-programmed into the internal Flash memory of the “SK91F467-FLEXRAY”.
SK-91F467-FLEXRAY V1.
SK-91F467-FLEXRAY V1.1 Jumpers and Switches 3 Jumpers and Switches This chapter describes all jumpers and switches that can be modified on the starter kit. The default setting is shown with a grey shaded area. 3.1 MCU Operating-Mode (S5) The DIP-switch S5 is used to set the operating mode of the MCU. Ensure that the mode pin settings correspond to the operation-mode of the application. For more detailed information please check the Hardware-Manual of the microcontroller.
SK-91F467-FLEXRAY V1.1 Jumpers and Switches 3.2 FlexRay CC Operating-Mode (S2) The DIP-switch S2 is used to set the operating mode of the FlexRay communication controller. Ensure that the mode pin settings correspond to the operation-mode of the application. For more detailed information please check the Hardware-Manual of the FlexRay CC.
SK-91F467-FLEXRAY V1.1 Jumpers and Switches 3.3 FlexRay CC SPI Settings (S1) The DIP-switch S1 is used to set the FlexRay CC SPI settings, if the FlexRay CC is selected to communicate with the MCU over SPI. For more detailed information please check the Hardware-Manual of the FlexRay CC. Note: The DIP-switch (S1) is connected to the FlexRay CC in case the jumpers setting are set to SPI communication mode. Please refer to chapter 3.5 MCU-FlexRay CC Connection.
SK-91F467-FLEXRAY V1.1 Jumpers and Switches 3.4 Power Supply There are four on-board switching regulators to provide the voltages 5V, 3.3V, 2.5V and 1.8V on the starter-kit. With the power ON/OFF-switch S8 or S9 (S9 is a soldering option to use a different switch), the main input voltage from DC-connector X5 will be connected to the VIN voltage of the board.
SK-91F467-FLEXRAY V1.1 Jumpers and Switches Figure 3-4: Voltage Test Points Regulator Test point Voltage U9 J21 +5V U11 J22 +3.3V U14 J23 +2.5V U17 J24 +1.
SK-91F467-FLEXRAY V1.1 Jumpers and Switches 3.4.1 MCU Power Supply Voltage JP21 With this jumper it is possible to connect the MCU external bus interface supply VDD35 to 3.3V. The MCU MB91460 series supports the function to supply the MCU with 5V so that the normal I/O ports work with 5V and supply the external bus interface with 3.3V. JP23 This jumper is used to connect the HVDD5 supply to MCUVcc. The HVDD5 is the MCU supply voltage for the high current ports.
SK-91F467-FLEXRAY V1.
SK-91F467-FLEXRAY V1.1 Jumpers and Switches 3.5 MCU-FlexRay CC Connection at SK-91F467-FLEXRAY The FlexRay communication controller MB88121 provides different communication modes to a microcontroller. The MB88121 has different pin functions in its communication modes. Therefore it is possible to connect the CC in different ways to the MCU, to evaluate the different communication modes.
SK-91F467-FLEXRAY V1.
SK-91F467-FLEXRAY V1.1 Jumpers and Switches JP49 Connects FT1080 module CH-A WAKE to configuration switch S6 JP50 Connects FT1080 module CH-A nSTB to configuration switch S6 JP55 Connects FT1080 module CH-A nERR to MCU port P14_4 JP53 Selects VccPL (supply voltage of CH-A and CH-B FT1080 modules) 3.
SK-91F467-FLEXRAY V1.
SK-91F467-FLEXRAY V1.1 Jumpers and Switches 3.6.3 FT1080 Control Settings (S6) The DIP switch S6 is used to set EN, WAKE and nSTB signals of the FlexRay physical layer driver modules from TZM (FT1080). The control signals can also be connected with jumper to the MCU to give the possibility to set them via user software. Both modules (FT1080) will be set simultaneously, if JP48-JP50 and JP73-JP75 are closed.
SK-91F467-FLEXRAY V1.1 Jumpers and Switches 3.7 CAN0 – CAN2 Three high-speed CAN-transceivers (PCA82C250) are on-board to connect all available onchip CAN to 9-pin D-Sub connectors (X9, X10 and X11).
SK-91F467-FLEXRAY V1.1 Jumpers and Switches 3.8.1 UART 2 UART2 (connector X1) is selected as LIN master at default setting.
SK-91F467-FLEXRAY V1.1 Jumpers and Switches 3.8.2 UART 4 (Flash programming) UART4 (connector X4) is selected as RS-232 at default setting. UART4 is also used to write user software into the Flash of the MCU.
SK-91F467-FLEXRAY V1.1 Jumpers and Switches 3.8.3 UART 5 UART5 (connector X8) is selected as RS-232 at default setting.
SK-91F467-FLEXRAY V1.1 Jumpers and Switches 3.9 User Push Buttons INT0, INT1, INT2 and ICU0/TIN0 There are four user push buttons on the starter kit, which can be connected to the microcontroller.
SK-91F467-FLEXRAY V1.1 Jumpers and Switches 3.11 Reset Generation A system reset can be generated in different ways. The first possibility is to press the user reset push button (SW1). Secondly the supply monitor will generate a reset if an unusual voltage is detected and third a reset is raised if a UART that does a reset is selected. If a system reset is done, it will be displayed by the red reset LED (D18).
SK-91F467-FLEXRAY V1.1 Jumpers and Switches JP57 Select which UART should do the system reset JP29 The polarity of the DTR/RTS signal can be inverted by this jumper.
SK-91F467-FLEXRAY V1.1 Connectors 4 Connectors 4.1 Power Connector (X5) The following figure shows the power connection jack of the starter kit. This connector is used to connect an external unregulated DC power supply voltage (9V-12V DC recommended 2000mA). Shield is connected to positive voltage supply (+) Centre is connected to ground (GND) Table Figure 4-1: Power Connector 4.
SK-91F467-FLEXRAY V1.1 Connectors 4.3 CAN Connector (X9, X10, X11) Three 9-pin D-Sub male connectors are used for the CAN interfaces CAN0, CAN1 and CAN2. Figure 4-3: CAN Connector Pin Number 1 2 3 4 5 6 7 8 9 Shield Pin Signal NC CANL GND NC NC NC CANH NC NC GND Description Not used LOW-level CAN voltage input/output Ground Not used Not used Not used HIGH-level CAN voltage input/output Not used Not used Ground Table 4-2: CAN Connector Signals 4.
SK-91F467-FLEXRAY V1.1 Connectors 4.5 FlexRay Physical Layer Module Connector (X3, X7) To use the FlexRay physical layer driver module from TZM (FT1080) there are two special connectors on board of SK-91F467-FLEXRAY, both for FlexRay channels A and B, to insert the modules. If the modules FT1080 should be used, it is necessary to disable the RS-485 driver modules (see chapter 3.6).
SK-91F467-FLEXRAY V1.1 Connectors 4.6 USER-LEDs and optional LC-Display (D1-D16, J6) There are sixteen user LEDs on-board, D1-D8 connected to MCU port P25 and D9-D16 connected to MCU port P16. To disconnect the LEDs from the MCU, it is possible to remove RN3 (D1-D8 at port P25) and RN2 (D9-D16 at port P16). It is also possible to connect a standard LCD module with backlight to connector J6. With the potentiometer RP1 the contrast of the LCD can be adjusted.
SK-91F467-FLEXRAY V1.1 Connectors 4.7 In-Circuit-Programming Connector (X12) There is a Flash-programming socket on the starter kit which makes it possible to program the Flash MCU with a special programming adapter. Mode pins and reset signal is also available at this connector.
SK-91F467-FLEXRAY V1.1 Connectors 4.9 External Bus Connectors (X13, X14) 4.9.1 VG96ABC DIN 41612 (X13) Pin Name MCU-P. Pin Name MCU-P. Pin Name MCU-P. A1 A2 2.5 V 3.3V - B1 B2 2.5 V 3.3V - C1 C2 2.5 V 3.3V - A3 5.0 V - B3 5.0 V - C3 5.
SK-91F467-FLEXRAY V1.1 Connectors 4.9.2 VG48ABC DIN 41612 (X14) Pin Name MCU-P. Pin Name MCU-P. Pin Name MCU-P. A1 A2 CSX0 CSX2 56 58 B1 B2 GND 1.8V - C1 C2 CSX1 CSX3 57 59 A3 NC - B3 GND - C3 NC - A4 CSX6 60 B4 1.
SK-91F467-FLEXRAY V1.1 Getting Started 5 Getting Started Make sure Softune Workbench for FR is installed on your PC and the “SK-91F467FLEXRAY” or “SK-91F467D-208PFV” is ready to use (power-on (X5), serial connection (UART4) to COM port of the PC). Refer to Chapter 2 Installation for details on the hardware and software installation. 5.1 Introduction to Softune Workbench Start Softune Workbench. Select to load the first example “SK91F467-FLEXRAY_test.wsp”.
SK-91F467-FLEXRAY V1.1 Getting Started Whenever you modify the source-files, you have to re-compile and link the related files to produce a valid load module (ABS-file). This is done using the MAKE-function. MAKE invokes the assembler, C-compiler and linker for FR whenever necessary (only modified files will be re-compiled). If you wish to re-compile the entire project regardless of any changes, you can use the BUILD-function.
SK-91F467-FLEXRAY V1.1 Getting Started 5.2 Project Start-up In order to allow a quick and smooth project start-up Fujitsu Microelectronics Europe supplies a template project as a reference. The easiest way to start a new project is to make a copy of the template project and use this copy as a start-up. The template includes the latest start91460.asm file, MCU header file, IRQ table, basic linker and C-Compiler settings.
SK-91F467-FLEXRAY V1.1 Getting Started Rename “91460_template_91467d” into “my_application” 6. Start Softune Workbench and open your project Figure 5-2: Open Softune Workbench workspace (*.
SK-91F467-FLEXRAY V1.1 Getting Started 7) Select Active Configuration “MONDEBUG” Figure 5-3: Project configuration selection 5.2.2 Use Active Configuration MONDEBUG_INTERNAL With this selection the project is linked to be used with the Softune Workbench monitor debugger. Corresponding linker settings are done for the memory map in order to avoid overwriting of the sections which are used by the monitor debugger.
SK-91F467-FLEXRAY V1.1 Getting Started Note: Always check the memory map of the linker settings and ensure that this memory map is suitable for the application and target system in use. Additionally the *.mp1 file should be checked to ensure correct settings.. Figure 5-4: Open Softune Workbench Linker mapping file Check linker mapping list in the*.mp1 file by right-click on “my_application.abs”, Open List File, *.mp1.
SK-91F467-FLEXRAY V1.1 Getting Started Start Softune Monitor Debugger via the “Debug” Command Figure 5-6: Start Softune Workbench Monitor Debugger 10. After the project is built and debugged successfully switch to the active configuration STANDALONE 5.2.3 Use Active configuration STANDALONE 11. With this selection the project is linked to work in internal flash memory. This configuration will not work with the Softune Workbench monitor debugger.
SK-91F467-FLEXRAY V1.1 Getting Started Note: It is not possible to use the Softune Workbench monitor debugger with this configuration because no code can be debugged which is located in internal Flash. Also this configuration does not support special debugger settings, which are disabled for this configuration. 5.3 Softune Workbench Monitor Debugger 5.3.
SK-91F467-FLEXRAY V1.1 Getting Started Make sure you have connected the “SK-91F467-xxx” starter kit and your monitor-kernel is stored in the internal flash memory of the MB91F467DA series at the starter kit. Then power up and reset the starter kit. Check the following configurations: 1) Correct CPU Mode selection (DIP-Switch S5) After Power on the Monitor debugger indicates via the 8 user-LEDs the current status. The following status indications exist.
SK-91F467-FLEXRAY V1.1 Getting Started After starting the debugger, the source window will be opened which contains locate-arrows for each (possible) source-line, the original source-code, Figure 5-9: SWB debugging window Breakpoint-indicators and the assembler code (in “mixed view”). The current program position will be indicated by a yellow line.
SK-91F467-FLEXRAY V1.1 Getting Started 5.3.2 Basic Debugger Features GO: Executes the program continuously from the memory location pointed to by the current program counter (PC) until a termination factor occurs. STEP IN: Executes the program stepwise according to the listing in the source window (steps in C- or ASM). Note that interrupts are disabled during step execution ! STEP OVER: Executes the program stepwise except call-instructions (which will be executed until return).
SK-91F467-FLEXRAY V1.1 Getting Started ABORT: Forcibly terminates execution. This button is not fully supported by the monitor debugger and may cause malfunction if used to abort “continuous operation” of the MCU. This command button can only be used to abort single code line operations Example: for(k=DELAY_CONSTANT; k>0; k--); Use the button INT0 on the “SK-91F467-xxx” for ABORT function.
SK-91F467-FLEXRAY V1.1 Getting Started The memory window can be very helpful to check the registers or the frame memory of the connected graphic controller ! DISASSEMBLER: Disassembles the content of the code memory beginning from actual PC position and displays the result in a separate window. Individual assembler-lines can be changed using the „inline assemble“-function. DEBUG - STACK: Displays the current stack contents in terms of function calls. Parameters, if any, are displayed in brackets.
SK-91F467-FLEXRAY V1.1 Getting Started A set of commands can be combined to a “macro”. Aliases and macros can be defined using the command window context menu. Example: restart: set register PC=2000000 set break main Run continuously In order to document or save debugging details such as memory contents, all outputs fed to the command console can be written to a file (“logging”). A whole “program” of commands (incl. flow control) can be written to a PRC-file and executed.
SK-91F467-FLEXRAY V1.1 Getting Started 5.5 Memory Configuration for User Applications Valid load module files can only be achieved if the language tool configuration is appropriate. The most convenient way to create owns a project is to copy the provided Template-Projects from the example-directory and use it as “blank sheet”. If the Softune Monitor debugger is being used the following memory areas are reserved by the monitor debugger and must not be used by the application.
SK-91F467-FLEXRAY V1.
SK-91F467-FLEXRAY V1.1 Flash Programming 6 Flash Programming 6.1 Programming internal Flash of MB91F467DA series To program the Monitor debugger or any other Application into the internal Flash memory of MB91F467DA series following steps must be taken. 1) To install the Flash Programming utility on the PC the following steps must be taken a. Browse to the folder “Software\FlashProgramming” of the starter kit CD-ROM and execute the FME_FR_Flashprogrammer_v3_7.exe file.
SK-91F467-FLEXRAY V1.1 Flash Programming 4) Connect starter kit and PC with a RS232 cable. MB91F467 is using UART4 interface for serial Flash Programming. 5) Power-off the board or assert and hold RESET 6) Press “Automatic” button to start automatic Flash Programming Using the “Automatic” button the Programming steps are automatically proceed by the Flash Programmer Utility.
SK-91F467-FLEXRAY V1.1 Flash Programming CAUTION : DO NOT INTERRUPT OR CUT OFF POWER DURING ERASE !!! Chip-erase successful Sending download command loading and programming...
SK-91F467-FLEXRAY V1.1 Trouble shooting 7 Trouble shooting Problem Solution Starter kit does not power-on correctly. Check voltage supply and jumpers : Some or all of the power LEDs (D24, D30, The voltage on DC-Power plug should be in the D34, and D40) do not lit up. range of 9-12V. The plug should have + on shield and – on the centre. The power supply should be able to supply at least 500mA. To support both, the “SK-91F467D-208PFV” and a graphic sub-board the supply should be able to supply 1500mA.
SK-91F467-FLEXRAY V1.1 Silk-Plot of the Board 8 Silk-Plot of the Board 8.1 Top Side A B C D E 1 F G X4 UART4 X1 UART2 H J K L M N X11 CAN2 X8 UART5 1 2 3 3 4 4 C32 B32 A32 2 5 6 6 VG96 (female) X13 5 7 8 9 7 8 9 10 11 11 C1 B1 A1 10 12 12 13 14 14 RST INT1 INT2 ICU0 INT0 16 17 Optional FlexRay phy. Layer Module X3 Optional FlexRay phy.
SK-91F467-FLEXRAY V1.1 Silk-Plot of the Board 8.
SK-91F467-FLEXRAY V1.1 PCB History 9 PCB History 9.1 SK-91F467-FLEXRAY V1.0 Part Problem Fixed U20 Wrong UB/LB connection (WRX2 and WRX3 has to be connected) V1.1 X14 Connect 1.8V supply not directly to X14 (add jumper) V1.1 U6 Additionally pull-up resistors for MCU and ASSP reset line V1.1 U6 Reset button connection (SW1), add further option to activate reset directly when pressing SW1. Actually, SW1 must be pressed 2s to activate reset. (add solder jumper to select one option) V1.
SK-91F467-FLEXRAY V1.1 Appendix 10 Appendix 10.1 Related Products • SK-91460-MAIN • SK-91460-91F467D-208PFV MCU-board incl.
SK-91F467-FLEXRAY V1.1 Appendix 10.2 Information on the WWW Information about FUJITSU MICROELECTRONICS Products can be found on the following Internet pages: Microcontrollers (8-, 16- and 32bit), Graphics Controllers Datasheets and Hardware Manuals, Support Tools (Hard- and Software) http://www.fme.gsdc.de/gsdc.htm Automotive products: MCU, Graphic display controller, MPEG en/decoder, gyro sensors http://www.fujitsu.
SK-91F467-FLEXRAY V1.1 Appendix 10.3 Tables Table 2-1: Jumper settings................................................................................................... 15 Table 3-1: MCU Operating Mode ......................................................................................... 19 Table 3-2: FlexRay CC Operating Mode .............................................................................. 20 Table 3-3: FlexRay CC SPI Settings .............................................................
SK-91F467-FLEXRAY V1.1 Appendix Table 7-1: Trouble shooting ................................................................................................. 64 Table 9-1: History PCB V1.0 ................................................................................................ 67 Table 9-2: History PCB V1.1 ................................................................................................
SK-91F467-FLEXRAY V1.1 Appendix 10.4 Figures Figure 2-1: AC plug adapter ................................................................................................. 12 Figure 2-2: AC plug adapter selection .................................................................................. 12 Figure 2-3: DC voltage selection .......................................................................................... 12 Figure 2-4: Low voltage adapter selection.............................................
SK-91F467-FLEXRAY V1.1 Appendix 10.