Upload
duongthuy
View
217
Download
0
Embed Size (px)
Citation preview
Fujitsu Microelectronics Europe User Guide
FMEMCU-UG-910011-10
FLEXRAY EVALUATION BOARD
FLEXRAY-FPGA-EVA-KIT-369
USER GUIDE
FLEXRAY-FPGA-EVA-KIT-369 Revision History
FMEMCU-UG-910011-10 - 2 - © Fujitsu Microelectronics Europe GmbH
Revision History
Date Issue 2005-05-23 V1.0, MSt
First release
This document contains 71 pages.
FLEXRAY-FPGA-EVA-KIT-369 Warranty and Disclaimer
© Fujitsu Microelectronics Europe GmbH - 3 - FMEMCU-UG-910011-10
Warranty and Disclaimer To the maximum extent permitted by applicable law, Fujitsu Microelectronics Europe GmbH restricts its warranties and its liability for “FLEXRAY-FPGA-EVA-KIT-369” (eg. software include or header files, application examples, target boards, evaluation boards, engineering samples of IC’s etc.), its performance and any consequential damages, on the use of the Product in accordance with (i) the terms of the License Agreement and the Sale and Purchase Agreement under which agreements the Product has been delivered, (ii) the technical descriptions and (iii) all accompanying written materials. In addition, to the maximum extent permitted by applicable law, Fujitsu Microelectronics Europe GmbH disclaims all warranties and liabilities for the performance of the Product and any consequential damages in cases of unauthorised decompiling and/or reverse engineering and/or disassembling. The “FLEXRAY-FPGA-EVA-KIT-369” Board and all its deliverables are intended and must only be used in an evaluation laboratory environment.
1. Fujitsu Microelectronics Europe GmbH warrants that the Product will perform substantially in accordance with the accompanying written materials for a period of 90 days form the date of receipt by the customer. Concerning the hardware components of the Product, Fujitsu Microelectronics Europe GmbH warrants that the Product will be free from defects in material and workmanship under use and service as specified in the accompanying written materials for a duration of 1 year from the date of receipt by the customer.
2. Should a Product turn out to be defect, Fujitsu Microelectronics Europe GmbH´s entire liability and the customer´s exclusive remedy shall be, at Fujitsu Microelectronics Europe GmbH´s sole discretion, either return of the purchase price and the license fee, or replacement of the Product or parts thereof, if the Product is returned to Fujitsu Microelectronics Europe GmbH in original packing and without further defects resulting from the customer´s use or the transport. However, this warranty is excluded if the defect has resulted from an accident not attributable to Fujitsu Microelectronics Europe GmbH, or abuse or misapplication attributable to the customer or any other third party not relating to Fujitsu Microelectronics Europe GmbH.
3. To the maximum extent permitted by applicable law Fujitsu Microelectronics Europe GmbH disclaims all other warranties, whether expressed or implied, in particular, but not limited to, warranties of merchantability and fitness for a particular purpose for which the Product is not designated.
4. To the maximum extent permitted by applicable law, Fujitsu Microelectronics Europe GmbH´s and its suppliers´ liability is restricted to intention and gross negligence.
NO LIABILITY FOR CONSEQUENTIAL DAMAGES
To the maximum extent permitted by applicable law, in no event shall Fujitsu Microelectronics Europe GmbH and its suppliers be liable for any damages whatsoever (including but without limitation, consequential and/or indirect damages for personal injury, assets of substantial value, loss of profits, interruption of business operation, loss of information, or any other monetary or pecuniary loss) arising from the use of the Product.
Should one of the above stipulations be or become invalid and/or unenforceable, the remaining stipulations shall stay in full effect
FLEXRAY-FPGA-EVA-KIT-369 Contents
FMEMCU-UG-910011-10 - 4 - © Fujitsu Microelectronics Europe GmbH
Contents
REVISION HISTORY............................................................................................................ 2
WARRANTY AND DISCLAIMER ......................................................................................... 3
CONTENTS .......................................................................................................................... 4
2 OVERVIEW...................................................................................................................... 7 2.1 Abstract................................................................................................................... 7 2.2 Features.................................................................................................................. 7 2.3 General Description................................................................................................. 8
3 INSTALLATION ............................................................................................................... 9 3.1 Hardware Installation............................................................................................... 9
3.1.1 Power-Supply configuration ....................................................................... 9 3.1.2 FlexRay-FPGA-Eva-Kit-369 configuration................................................ 10 3.1.3 Use as Emulation Target Board for Emulator MB2198-01........................ 11
3.2 Software Installation .............................................................................................. 11 3.2.1 Installation of Softune Workbench ........................................................... 11
4 QUICK PROJECT START-UP / TEST “FLEXRAY-FPGA-EVA-KIT-369”..................... 13
5 COMMSTACK LIBRARY............................................................................................... 15 5.1 Usage of the library ............................................................................................... 15 5.2 Software Samples on FlexRay CD ........................................................................ 15 5.3 License Agreement ............................................................................................... 15
6 FLEXRAY EVALUATION BOARD................................................................................. 16 6.1 Overview ............................................................................................................... 16
6.1.1 Features FlexRay Evaluation Main Board................................................ 16 6.1.2 Features FlexRay Evaluation Daughter Board ......................................... 17 6.1.3 Board Configuration................................................................................. 17
6.2 Jumpers and Switches .......................................................................................... 18 6.2.1 Main board............................................................................................... 18
6.2.1.1 Power Supply Voltage.............................................................. 18 6.2.1.2 Reset ....................................................................................... 20 6.2.1.3 Level Converter (BUS Switch) ................................................. 20 6.2.1.4 Bus Driver Interface (channel Ach) .......................................... 20 6.2.1.5 Bus Driver Interface (Bch)........................................................ 23 6.2.1.6 Reserved Switch...................................................................... 27
FLEXRAY-FPGA-EVA-KIT-369 Contents
© Fujitsu Microelectronics Europe GmbH - 5 - FMEMCU-UG-910011-10
6.2.2 FlexRay Evaluation Daughter Board Settings .......................................... 27 6.2.2.1 Operating Mode Jumper .......................................................... 27 6.2.2.2 FPGA Configuration Jumper .................................................... 28
6.3 Header for Debug Signals ..................................................................................... 28 6.3.1 FlexRay Evaluation Main Board Check Pins ............................................ 28
6.3.1.1 Power supply voltage............................................................... 28 6.3.1.2 Mon 1 (J54) Connector (External Bus Interface) ...................... 29 6.3.1.3 Mon 2 (J55) Connector ............................................................ 31 6.3.1.4 Mon 3 (J56) connector ............................................................. 32
6.3.2 Daughter Board 1 .................................................................................... 33 6.3.2.1 Power supply voltage............................................................... 33 6.3.2.2 IOPORT Monitor J15 (masked part).............................................. 33 6.3.2.3 Configuration Monitor J16 (masked part) ................................. 34
6.4 Connectors............................................................................................................ 35 6.4.1 Power Connector (J30)............................................................................ 35 6.4.2 FlexRay Bus Connector P1, P2 ............................................................... 35 6.4.3 Daughter Board 1 Connectors J2, J3, J4, J5............................................ 35 6.4.4 Daughter Board 2 Connectors J6, J7, J20, J21........................................ 38 6.4.5 SMA Connector (J53) .............................................................................. 40 6.4.6 JTAG Connector J6 (JTAG of Daughter Board 1 for FPGA) .................... 40 6.4.7 CPU Board Connectors J50, J51 ............................................................. 40
6.5 Programming the FPGA ........................................................................................ 43
7 CPU369 BOARD............................................................................................................ 44 7.1 Overview ............................................................................................................... 44 7.2 Features................................................................................................................ 44 7.3 Jumpers and Switches .......................................................................................... 44
7.3.1 Power Supply Voltage (SW1, JP11, JP12, JP13, JP14, JP15, JP25)....... 44 7.3.2 Operating Mode (SW2) settings............................................................... 45 7.3.3 UART (JP21, JP22) settings .................................................................... 45 7.3.4 Chip select enable for FLASH (JP10) ...................................................... 46 7.3.5 Hardware Standby (JP16)........................................................................ 46 7.3.6 Clock Select (JP17, JP18, JP19, JP20) ................................................... 46 7.3.7 CAN controller interface (JP23, JP24) ..................................................... 47 7.3.8 Solder Bridges JP1 and JP2 on MCU top module.................................... 47
7.4 Header for Debug Signals ..................................................................................... 47 7.4.1 Power supply voltage (JP1, JP2, JP3, JP4, JP5, JP6) ............................. 47 7.4.2 MCU Peripheral Signals........................................................................... 48
FLEXRAY-FPGA-EVA-KIT-369 Contents
FMEMCU-UG-910011-10 - 6 - © Fujitsu Microelectronics Europe GmbH
7.4.2.1 Peripheral_1 (JH1) and Peripheral_2 (JH2) Header................. 48 7.5 Connectors............................................................................................................ 50
7.5.1 Power Connector J1 ................................................................................ 50 7.5.2 Serial Interface Connector P1.................................................................. 50 7.5.3 CAN Interface Connector......................................................................... 51
8 GETTING STARTED...................................................................................................... 52 8.1 Introduction to Softune Workbench ....................................................................... 52 8.2 Project Start-up ..................................................................................................... 54 8.3 Using the MB91F369 CPU-module........................................................................ 59 8.4 Softune Workbench Monitor Debugger.................................................................. 60
8.4.1 General Description ................................................................................. 60 8.4.2 Basic Debugger Features ........................................................................ 62 8.4.3 Advanced Monitor Debugger Features .................................................... 63
8.5 Provided Examples ............................................................................................... 65
9 SILK-PLOTS OF THE BOARDS.................................................................................... 66 9.1 Silk-Plot of CPU369 board..................................................................................... 66 9.2 Silk-Plot of FPGA Main Board ............................................................................... 67 9.3 Silk-Plot of FlexRay Daughter Board 1 .................................................................. 68
10 RELATED PRODUCTS ................................................................................................. 69
11 APPENDIX..................................................................................................................... 70 11.1 Figures 70 11.2 Tables 70
FLEXRAY-FPGA-EVA-KIT-369 Chapter 2 Overview
© Fujitsu Microelectronics Europe GmbH - 7 - FMEMCU-UG-910011-10
2 Overview
2.1 Abstract The FLEXRAY-FPGA-EVA-KIT-369 Evaluation board is a multifunctional Evaluation board for the Fujitsu 32-bit Flash microcontroller MB91F369G and Fujitsu FlexRay controller. It can be used standalone for software development and testing using Softune Workbench Monitor debugger or together with the emulator system. The board enables the designer to start immediately with the Software before his own target system is available.
The FLEXRAY-FPGA-EVA-KIT-369 Evaluation board comes with following parts
- Cremson-Starterkit-CPU369 board
- FlexRay Evaluation board, FPGA based
- Power Supply
- Printed version of the user guide “Flexray-MB91369 Evaluation board”
- FLEXRAY-FPGA-EVA-KIT-369 Evaluation board CD-ROM
- Microcontroller CD3.6 or higher
- Addendum sheet with latest important instructions
2.2 Features CPU-369 board
• Supports MB91F369G series
• 2MB external Debugging RAM
• 4MHz crystal
• DC Power supply circuit (incl. Test pins for VCC, GND, power LED and switch)
• 1 MB external Flash available for user code and constant data
• External Reset Button for MCU
• 2 Buttons for ext. Interrupt (USER_0 = ext. Interrupt0, USER_1 = ext. Interrupt1)
• MAX232 + DB9 (female) connector for internal UART
• CAN transceiver and DB9 (male) for internal CAN0
• 2 LEDs (on Port N)
• All peripheral pins are available by the connectors ‘Peripheral_1’ and ‘Peripheral_2’
• Sub board support
o 96pin + 48pin VG connector
FlexRay Main board
• DC Power-supply circuit for the entire system
• Supports FlexRay Controller FPGA and stand-alone version via Daughter Board 1 exchange.
• Flexible transceiver selection
o RS485 Transceiver on the board (default)
o FlexRay transceiver via “Daughter Board 2"
FLEXRAY-FPGA-EVA-KIT-369 Chapter 2 Overview
FMEMCU-UG-910011-10 - 8 - © Fujitsu Microelectronics Europe GmbH
• Terminal layout of Daughter board 2 has compatible terminal layout of “FlexPL Module TJA1080/UJA1081” manufactured by TZM
• The switch control of "WAKE, EN, STBN signal" between CC and Bus Driver can be done.
• 2 Channel carries the outside interface Dsub-9 (male) for FlexRay Bus.
• External bus connector for the CPU Board Interface connection.
• BUS Level Converter (3.3V-5.0V) that does the change of all the signals of External bus Connector.
• All the pins (except for the power supply) of External bus connector are connected with Daughter Board 1.
• Various jumpers for individual configuration
• SPI Interface between DaughterBoard1 and DaughterBoard2
• 16 LEDs by the control of Daughter Board 1.
• Header pin of 32 I/O Ports by the control of Daughter Board 1
• The reset circuit between FlexRay Evaluation Board and CPU Board can be divided.
FlexRay Evaluation daughter board
• Hosted on FlexRay Evaluation Main Board
• The interface of all the pins (except for the power supply) of External bus connector for CPU Board Interface is possible
• FPGA: ALTERA Device Stratix EP1S25F672C
• Hosted Configuration FLASHROM: ALTERA Device EPC16QC100
• Configuration FLASHROM can be written in via JTAG
• Various jumpers for individual configuration
• 16 LEDs on Main Board connected to FPGA
• 32 IOPORTs on Main Board connected to FPGA
2.3 General Description
The “FlexRay-FPGA-Eva-Kit-369” supports the MB91F369 microcontroller series and the FPGA based FlexRay Communication Controller (E-Ray). It can be used as a standalone evaluation board or together with an emulator system.
The Evaluation board support following package at CPU board: FPT-160P-M15.
On CPU board the microcontroller is supplied with a 4MHz crystal; via the internal PLL the max. CPU frequency of 64MHz can be achieved. The FPGA based communication controller is supplied with a 80 MHz oscillator at the FlexRay daughter board.
FLEXRAY-FPGA-EVA-KIT-369 Chapter 3 Installation
© Fujitsu Microelectronics Europe GmbH - 9 - FMEMCU-UG-910011-10
3 Installation
3.1 Hardware Installation
3.1.1 Power-Supply configuration The Flexray-FPGA-MB91F389 Evaluation board contains a universal AC/DC power-supply adapter. Use power-supply plug on FPGA FlexRay controller board. Before connecting the power-supply to the evaluation board ensure the correct configuration of the power-supply:
1. Voltage selection to 12V
2. Appropriate DC plug is plugged into the socket.
3. Connect CPU board and FPGA board via the two VG-connectors.
4. Power-on the FLEXRAY-FPGA-EVA-KIT-369 via SW6 at FPGA board. On FPGA board the red ‘power’ LED, on Daughter board the green LED D1 should be lightning. At CPU369 board, the five green power LED’s D4, D7, D10, D13 and D16 should lightning. Following picture will illustrate the LED position.
Figure 1: LED lightning after power-on
FLEXRAY-FPGA-EVA-KIT-369 Chapter 3 Installation
FMEMCU-UG-910011-10 - 10 - © Fujitsu Microelectronics Europe GmbH
3.1.2 FlexRay-FPGA-Eva-Kit-369 configuration
Carefully remove the board from the shipping carton. Check if there are any damages first before power on the Starter kit.
For the power supply a DC input voltage of 12V-18V / >1A is recommended The positive voltage (+) must be connected to the centre pin, and ground (GND) must be connected to the shield X1! The following picture shows the default jumper settings as a short reference. For details please check the chapter 5.2 Jumpers and Switches or 6.3 Jumpers and Switches
Figure 2: CPU369 default Jumper setting
Figure 3: FPGA-board jumper setting
FLEXRAY-FPGA-EVA-KIT-369 Chapter 3 Installation
© Fujitsu Microelectronics Europe GmbH - 11 - FMEMCU-UG-910011-10
3.1.3 Use as Emulation Target Board for Emulator MB2198-01 The “Flexray-FPGA-MB91F389 Evaluation board” can also be used as an emulator target board. In this case the user must remove the MCU-adapter-board with MB91F369 Flash MCU, U1 and plug in the Starterkit91360-ADA160, including a socket, instead. The probe cable must be mounted to the socket; no MCU must be inserted in this case. Take care of pin 1 marking onto the socket and fix the probe cable with screws.
Do not use other probe cable than FR360-PROBE-160 only!
Connect the probe cable to the emulation pod. Check all DIP-switch-settings of the evaluation board and the emulation pod.
For the power on sequence the emulator system must be switched on first. Then switch on the evaluation board. Please look at the corresponding user manuals for the emulator how to set up the emulator system. After the power on the Reset-LED of the emulator must be off and the Vcc-LED (D22) must be on. If the Reset-LED is still on, check the Vcc voltage switch-settings of the emulator system and the power supply of the evaluation board.
For more details please check the following application notes for MB2198-01
MB2198-01 Installation Guide MB2198-01 AN-910026-11-MB2198INST.pdf
MB2198-01 Getting Start AN-910027-10-MB2198Start.pdf
MB2198-01 Emulation and Debugging with Softune AN-910028-10-MB2198emu.pdf
3.2 Software Installation
3.2.1 Installation of Softune Workbench Fujitsu supplies a full working 32bit development environment with the “Flexray-FPGA-MB91F369 Evaluation board” called Softune Workbench V6. The Softune Workbench also supports a monitor debugger, which is pre-programmed into the external Flash memory of the “Flexray-FPGA-MB91F369 Evaluation board” on CPU369 board. To develop own software and to work with the Monitor Debugger of “Flexray-FPGA-MB91F369 Evaluation board” the Softune Workbench development environment must be installed first. Follow the instructions for successful installation of the Softune Workbench.
1. Before starting the installation setup ensure that you are logged in with administrator or power user permissions, otherwise the Softune installation will fail! Be aware that Softune does not support multi-user support. Therefore install- and user login must be the same.
2. Browse on the Microcontroller CD-ROM CD2 (V3.6 or later) into the directory “FME_36_Tools\pdf” and start the FRSTAPACK600005FME01.exe
You can also start the installation using a browser by opening the start.html of the CD-ROM. Use the link “Software\Softune WB-32\” in the left side frame and start the “Softune Workbench Version Propack600005” (FRSTAPACK600005FME01.exe)
3. Follow the installation instructions
4. For the default installation path it is recommended to use c:\Softune32
5. After the installation is finished, Softune Workbench for FR can be started via the Windows “Start” menu
FLEXRAY-FPGA-EVA-KIT-369 Chapter 3 Installation
FMEMCU-UG-910011-10 - 12 - © Fujitsu Microelectronics Europe GmbH
6. When Softune Workbench is started the following window will be shown
FLEXRAY-FPGA-EVA-KIT-369 Chapter 4 Quick Project Start-up / Test “FLEXRAY-FPGA-EVA-KIT-369”
© Fujitsu Microelectronics Europe GmbH - 13 -
4 Quick Project Start-up / Test “FLEXRAY-FPGA-EVA-KIT-369”
To open a project with Softune Workbench and to work with the monitor debugger, Softune Workbench must be started first. To open a project the following steps must be taken.
5. Ensure that no other windows application is using the COM1 port
6. Ensure correct jumper setting of SW11 position of CPU369 board (MCU Operating Mode)
7. Ensure that the “FlexRay Evaluation Kit” is connected via serial cable (P1, UART0 of CPU369 board) with COM1 of the PC.
Open the test-project using the <File>, <Open Workspace> dialog. Browse into the sample folder: e.g.: c:\..\software\examples\StarterkitMB91302_Test\ and select the file StarterkitMB91302_Test.wsp
8. Ensure that the configuration “MONDEBUGGER” is selected! Start the Monitor Debugger by double click on MonDeb 57K6 COM1 in the following menu.
MonDeb 57K6 COM1.sup
Select Configuration MONDEBUG
FMEMCU-UG-910011-10
FLEXRAY-FPGA-EVA-KIT-369 Chapter 4 Quick Project Start-up / Test “FLEXRAY-FPGA-EVA-KIT-369”
FMEMCU-UG-910011-10 - 14 - © Fujitsu Mi
If a different COM port is used please use MonDeb 57K6 COM2.sup for COM2 or right-click on the “MonDeb 57K6 COM1” and select change. Follow the wizard to modify settings.
9. Now the debugger starts and a download progress bar is shown indicating that the application program is downloaded to the “FLEXRAY-FPGA-EVA-KIT-369”.
10. After downloading the application successfully into the external SRAM of the “FLEXRAY-
FPGA-EVA-KIT-369” the following Softune Workbench screen is shown. The debugger offers now versatile features as “Run continuously, Step-In, Step-over, Step-out, ...” which can be used via the Icon list. Using the right mouse button opens a context menu offering more settings as “Set Breakpoints, …”.
11. Use the button “Run Continuously” to start the application and the “FLEXRAY-FPGA-EVA-KIT-369” to abort the Continuous pfor FlexRay communication two Nodes are necessary.
Note:
The command “Abort” to stop program execution is not supportemonitor debugger and might cause malfunction of the debuggerexecution, use the button “USER_0I” on the “FLEXRAY-FPGA-E
12. For more details about Softune Workbench monitor debugger ple
Right mouse click Context dialog
croelectronics Europe GmbH
use the “USER_0” button on rogram execution. Be aware
d by the Softune Workbench if used. To “Abort” program VA-KIT-369”.
ase check chapter 8.4
FLEXRAY-FPGA-EVA-KIT-369 Chapter 5 COMMSTACK Library
© Fujitsu Microelectronics Europe GmbH - 15 - FMEMCU-UG-910011-10
5 COMMSTACK Library
5.1 Usage of the library The COMMSTACK Library can be used to access the FlexRay Communication Controller register. The Library must be installed, before usage.
Browse to “Software\Commstack\” folder at FlexRay “FlexRay-FPGA-Eva-Kit-369” CD and execute the commstack-lib.exe
5.2 Software Samples on FlexRay CD The Samples “Gateway” and “Keyboard” are using the COMMSTACK library. (“Software\Samples” folder)
Install the Library into the root folder of these examples, in case of modifying these examples.
5.3 License Agreement
COMMSTACK Library License Agreement
The COMMSTACK Library is provided by DECOMSYS. It is the property of that company. Fujitsu Microelectronics Europe GmbH expressly disclaims all warranty, expressed, implied or statutory, including but not limited to any implied warranty of merchantability, fitness for a particular purpose or non-infringement.
The COMMSTACK Library must be used with Fujitsu Evaluation boards, only.
For any other purposes, including but not limited to licensing issues, technical problems contact DECOMSYS.
Contact Details:
DECOMSYS - Dependable Computer Systems,
Hardware und Software Entwicklung GmbH
Stumpergasse 48/28
A-1060 Vienna, Austria
Web: http://www.decomsys.com
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
FMEMCU-UG-910011-10 - 16 - © Fujitsu Microelectronics Europe GmbH
6 FlexRay Evaluation Board
6.1 Overview The FlexRay Evaluation Board is a Sub board of FLEXRAY-FPGA-EVA-KIT-369 Evaluation Kit. It is used by the combination with MB91F369CPU board.
The FlexRay board consists of several boards.
- Main board
- FlexRay Evaluation daughter board
The FlexRay Evaluation Main Board is used as baseboard providing plug in for the FlexRay Evaluation Daughter Board with the FlexRay controller and two physical layer modules with FlexRay transceiver. The physical layer modules are optional components that need to be ordered separately from third party (i.e. TZM). The FlexRay Evaluation Main Board carries the power supply for all secondary voltages and provides the connectivity to the host processor and both FlexRay channels.
The FlexRay Evaluation Daughter Board is currently using an FPGA as FlexRay controller device. The default physical layer for FlexRay communication is provided by two RS485 transceivers. These transceivers can be bypassed with physical layer modules that plug into the provided terminals on the FlexRay Evaluation Main Board. Instead of the default RS485 transceiver a true physical layer representation can be established then.
6.1.1 Features FlexRay Evaluation Main Board
• DC Power-supply circuit for the entire system
• Supports FlexRay Controller FPGA and stand-alone version via Daughter Board 1 exchange.
• Flexible transceiver selection
o RS485 Transceiver on the board (default)
o FlexRay transceiver via “Daughter Board 2"
• Terminal layout of Daughter board 2 has compatible terminal layout of “FlexPL Module TJA1080/UJA1081” manufactured by TZM
• The switch control of "WAKE, EN, STBN signal" between CC and Bus Driver can be done.
• 2 Channel carries the outside interface Dsub-9 (male) for FlexRay Bus.
• External bus connector for the CPU Board Interface connection.
• BUS Level Converter (3.3V-5.0V) that does the change of all the signals of External bus Connector.
• All the pins (except for the power supply) of External bus connector are connected with Daughter Board 1.
• Various jumpers for individual configuration
• SPI Interface between DaughterBoard1 and DaughterBoard2
• 16 LEDs by the control of Daughter Board 1.
• Header pin of 32 IOPORTs by the control of Daughter Board 1
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
© Fujitsu Microelectronics Europe GmbH - 17 - FMEMCU-UG-910011-10
• The reset circuit between FlexRay Evaluation Board and CPU Board can be divided.
• Board size is 250mm * 178mm.
6.1.2 Features FlexRay Evaluation Daughter Board
• Hosted on FlexRay Evaluation Main Board
• The interface of all the pins (except for the power supply) of External bus connector for CPU Board Interface is possible
• FPGA: ALTERA Device Stratix EP1S25F672C
• Hosted Configuration FLASHROM: ALTERA Device EPC16QC100
• Configuration FLASHROM can be written in via JTAG
• Various jumpers for individual configuration
• 16 LEDs on Main Board connected to FPGA
• 32 IOPORTs on Main Board connected to FPGA
• Board size is 90mm * 90mm
6.1.3 Board Configuration
This section shows the available board configuration for this system.
Figure 4:FlexRay Evaluation kit configuration
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
FMEMCU-UG-910011-10 - 18 - © Fujitsu Microelectronics Europe GmbH
Available FlexRay Evaluation Board Available CPU Board
Main Board Daughter Board1
MB91F369 Daughter Board1 for FPGA
MB91F460 series (planning)
Main Board
Daughter Board1 for ASSP (planning)
Table 1: Available boards
6.2 Jumpers and Switches This chapter describes all jumpers and switches, which can be modified, on the “FlexRay Evaluation Kit”. The default setting is shown with a grey shaded area. All jumpers and switches are named directly on the board, so it is very easy to set the jumpers according to the features.
6.2.1 Main board
6.2.1.1 Power Supply Voltage
No. Item PartNo. Setting Description AXIS
1-2 Power ON 1 Power supply voltage
(switch) SW6 2-3 Power OFF
F1
ON (Closed) selected 1.2V 2 J37
OFF (Open) unselected 1.2V E5
ON (Closed) selected 1.5V 3 J36
OFF (Open) unselected 1.5V E5
ON (Closed) selected 1.8V 4
VccINT_1 power supply(jumper)
J35 OFF (Open) unselected 1.8V
E5
ON (Closed) selected 1.8V 5 J39
OFF (Open) unselected 1.8V E6
ON (Closed) selected 2.5V 6
VccINT_2 power supply(jumper)
J38 OFF (Open) unselected 2.5V
E6
ON (Closed) When VccINT_1 was selected in 1.2V or 1.5V.
7VccINT_1 supply voltage Monitor (jumper)
J41 OFF (Open) When VccINT_1 was
selected in 1.8V.
E1
8 PullUp Voltage for Daughter J76 1-2 selected 3.3V E1
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
© Fujitsu Microelectronics Europe GmbH - 19 - FMEMCU-UG-910011-10
No. Item PartNo. Setting Description AXIS
Board1 (jumper)
2-3 selected 5.0V
1-21 selected 3.3V 9 PullUp Voltage of Bus Switch
for CPU Board (jumper) J71 2-3 selected 5.0V
A8
1-2 selected 3.3V 10 PullUp Voltage of Bus Switch
for Daughter Board1 (jumper) J72 2-3 selected 5.0V
A8
ON (Closed) unified digital VCC 11 A_VccINT_1 Analog Power
supply for FPGA (jumper) J31 OFF (Open) separated analog VCC
A7
ON (Closed) unified digital GND 12 A_GND Analog Grand for
FPGA (jumper) J33 OFF (Open) separated analog GND
A7
ON (Closed) connected Vbat 13 Vbat Power for Daughter
board2 (jumper) J32 OFF (Open) unconnected Vbat
E3
ON (Closed) connected 5V0 14 Vcc Power for Daughter
board2 (jumper) J42 OFF (Open) unconnected 5V0
E2
1-2 connected 3V3 15 Vio Power for Daughter board2
(jumper) J73 2-3 connected 5V0
E2
1-2 connected 3V3 16 V3V3 Power for Daughter
board2 (jumper) J74 2-3 connected 5V0
E2
1-2 connected VccINT_1 17 V1V8 Power for Daughter
board2 (jumper) J75 2-3 connected VccINT_2
E1
ON (Closed) Power supply 18 Power supply for LED of Power
supply Monitor (jumper) J29 OFF (Open) No Power supply
F2
ON (Closed) Power supply 19 Power supply for LEDs
(jumper) J28 OFF (Open) No Power supply
A3
Table 2: FlexRay board power supply jumper settings
1 Select 5.0V when ICE by the CPU board is used.
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
FMEMCU-UG-910011-10 - 20 - © Fujitsu Microelectronics Europe GmbH
6.2.1.2 Reset This chapter describes the Reset connection of FlexRay board and the CPU board.
By default the Reset signal of the CPU board is connected to the FlexRay Main board reset signal. To ensure proper reset signal of all components.
No. Item PartNo. Setting Description AXIS
1 Reset Switch (switch) SW7 OFF ON / OFF A4
ON (Closed) CPU Board reset enable 2 Reset signal from/to CPU
Board (jumper) J34OFF (Open) CPU Board reset disable
F2
Table 3: FlexRay main board, reset settings
6.2.1.3 Level Converter (BUS Switch)
No. Item PartNo. Setting Description AXIS
ON (Closed) forced connect Mode 1 Bus Enable of BUS Switch
(jumper) J1OFF (Open) CPU Board supply Monitor Mode
A7
Table 4: FlexRay main board, BUS Switch
6.2.1.4 Bus Driver Interface (channel Ach)
In this chapter the Jumper settings of transceiver settings are listed.
By default RS485 jumper settings are set. When using FlexRay transceiver using daughter board 2 interface, see chapter 6.2.1.4.2. Changes are highlighted in red colour.
6.2.1.4.1 Bus Driver device using onboard RS485
No. Item PartNo. Setting Description AXIS
WAKE signal (SW1/1) OFF WAKE ON/OFF
EN signal (SW1/2) OFF EN ON/OFF
RSTN/STBN signal (SW1/3) OFF RSTN/STBN ON/OFF 1
Reserved (SW1/4)
SW1
OFF Reserved
A2
ON (Closed) TxD of RS485 enable 2 TXD of RS485 Transceiver
(jumper) J67OFF (Open) TxD of RS485 disable
E3
ON (Closed) RxD of RS485 enable 3 RXD of RS485 Transceiver
(jumper) J64OFF (Open) RxD of RS485 disable
E3
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
© Fujitsu Microelectronics Europe GmbH - 21 - FMEMCU-UG-910011-10
No. Item PartNo. Setting Description AXIS
ON (Closed) TxEN of RS485 enable 4 TXEN of RS485 Transceiver
(jumper) J65OFF (Open) TxEN of RS485 disable
E3
ON (Closed) BP of RS485 enable 5 BP of RS485 Transceiver
(jumper) J45OFF (Open) BP of RS485 disable
C2
ON (Closed) BM of RS485 enable 6 BM of RS485 Transceiver
(jumper) J46OFF (Open) BM of RS485 disable
C2
ON (Closed) Termination of RS485 enable 7
Termination of RS485 Transceiver
(jumper) J47
OFF (Open) Termination of RS485 disable C1
ON (Closed) Termination of RS485 enable 8
Termination of RS485 Transceiver
(jumper) J48
OFF (Open) Termination of RS485 disable C1
ON (Closed) WAKE enable 9 WAKE between Daughter
Board 1 and BD (jumper) J8 OFF (Open) WAKE disable
D3
ON (Closed) INH1 enable 10 INH1 between Daughter Board
1 and BD (jumper) J10OFF (Open) INH1 disable
D3
ON (Closed) EN enable 11 EN between Daughter Board 1
and BD (jumper) J11OFF (Open) EN disable
D3
ON (Closed) RSTN/STBN enable 12
RSTN/STBN between Daughter Board 1 and BD
(jumper) J12
OFF (Open) RSTN/STBN disable D3
ON (Closed) SDI enable 13 SDI between Daughter Board 1
and BD (jumper) J13OFF (Open) SDI disable
D3
ON (Closed) SDO enable 14 SDO between Daughter Board
1 and BD (jumper) J14OFF (Open) SDO disable
D3
ON (Closed) SCK enable 15 SCK between Daughter Board
1 and BD (jumper) J15OFF (Open) SCK disable
D3
ON (Closed) SCSN enable 16 SCSN between Daughter
Board 1 and BD (jumper) J16OFF (Open) SCSN disable
E3
ON (Closed) Power supply 17 Power supply for LED of WAKE
(jumper) J9 OFF (Open) No Power supply
D3
Table 5: Flexray board RS485 Bus Driver device jumper settings (Ach)
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
FMEMCU-UG-910011-10 - 22 - © Fujitsu Microelectronics Europe GmbH
6.2.1.4.2 Bus Driver device select the Daughter Board 2 using FlexRay transceiver (Ach)
No. Item PartNo. Setting Description AXIS
WAKE signal (SW1/1) OFF WAKE ON/OFF
EN signal (SW1/2) OFF EN ON/OFF
RSTN/STBN signal (SW1/3) OFF RSTN/STBN ON/OFF 1
Reserved (SW1/4)
SW1
OFF Reserved
A2
ON (Closed) TxD of RS485 enable 2 TXD of RS485 Transceiver
(jumper) J67OFF (Open) TxD of RS485 disable
E3
ON (Closed) RxD of RS485 enable 3 RXD of RS485 Transceiver
(jumper) J64OFF (Open) RxD of RS485 disable
E3
ON (Closed) TxEN of RS485 enable 4 TXEN of RS485 Transceiver
(jumper) J65OFF (Open) TxEN of RS485 disable
E3
ON (Closed) BP of RS485 enable 5 BP of RS485 Transceiver
(jumper) J45OFF (Open) BP of RS485 disable
C2
ON (Closed) BM of RS485 enable 6 BM of RS485 Transceiver
(jumper) J46OFF (Open) BM of RS485 disable
C2
ON (Closed) Termination of RS485 enable 7
Termination of RS485 Transceiver
(jumper) J47
OFF (Open) Termination of RS485 disable C1
ON (Closed) Termination of RS485 enable 8
Termination of RS485 Transceiver
(jumper) J48
OFF (Open) Termination of RS485 disable C1
ON (Closed) WAKE enable 9 WAKE between Daughter
Board 1 and BD (jumper) J8 OFF (Open) WAKE disable
D3
ON (Closed) INH1 enable 10 INH1 between Daughter
Board 1 and BD (jumper) J10OFF (Open) INH1 disable
D3
ON (Closed) EN enable 11 EN between Daughter Board
1 and BD (jumper) J11OFF (Open) EN disable
D3
ON (Closed) RSTN/STBN enable 12
RSTN/STBN between Daughter Board 1 and BD
(jumper) J12
OFF (Open) RSTN/STBN disable D3
ON (Closed) SDI enable 13 SDI between Daughter Board
1 and BD (jumper) J13OFF (Open) SDI disable
D3
ON (Closed) SDO enable 14 SDO between Daughter
Board 1 and BD (jumper) J14OFF (Open) SDO disable
D3
ON (Closed) SCK enable 15 SCK between Daughter
Board 1 and BD (jumper) J15OFF (Open) SCK disable
D3
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
© Fujitsu Microelectronics Europe GmbH - 23 - FMEMCU-UG-910011-10
No. Item PartNo. Setting Description AXIS
ON (Closed) SCSN enable 16 SCSN between Daughter
Board 1 and BD (jumper) J16OFF (Open) SCSN disable
E3
ON (Closed) Power supply 17
Power supply for LED of WAKE
(jumper) J9
OFF (Open) No Power supply D3
Table 6: FlexRay board: Bus Driver device jumper settings for daughter board 2 (Ach)
NOTE:
When using FlexRay transceiver via daughter board 2 check also power supply jumpers in Table 2: FlexRay board power supply jumper settings
6.2.1.5 Bus Driver Interface (Bch)
By default RS485 jumper settings are set. When using FlexRay transceiver using daughter board 2 interface, see chapter 6.2.1.5.2. Changes are highlighted in red colour.
6.2.1.5.1 Bus Driver device using onboard RS485
No. Item PartNo. Setting Description AXIS
WAKE signal (SW2/1) OFF WAKE ON/OFF
EN signal (SW2/2) OFF EN ON/OFF
RSTN/STBN signal (SW2/3) OFF RSTN/STBN ON/OFF 1
Reserved (SW2/4)
SW2
OFF Reserved
A3
ON (Closed) TxD of RS485 enable
2 TXD of RS485 Transceiver (jumper) J70
OFF (Open) TxD of RS485 disable C3
ON (Closed) RxD of RS485 enable
3 RXD of RS485 Transceiver (jumper) J68
OFF (Open) RxD of RS485 disable C3
ON (Closed) TxEN of RS485 enable
4 TXEN of RS485 Transceiver(jumper) J69
OFF (Open) TxEN of RS485 disable C3
ON (Closed) BP of RS485 enable
5 BP of RS485 Transceiver (jumper) J58
OFF (Open) BP of RS485 disable A2
6 BM of RS485 Transceiver (jumper) J59 ON
(Closed) BM of RS485 enable A2
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
FMEMCU-UG-910011-10 - 24 - © Fujitsu Microelectronics Europe GmbH
No. Item PartNo. Setting Description AXIS
OFF (Open) BM of RS485 disable
ON(Closed) Termination of RS485 enable
7Termination of RS485
Transceiver (jumper)
J49OFF (Open) Termination of RS485 disable
A1
ON (Closed) Termination of RS485 enable
8Termination of RS485
Transceiver (jumper)
J57OFF (Open) Termination of RS485 disable
A1
ON (Closed) WAKE enable
9 WAKE between Daughter Board 1 and BD (jumper) J25
OFF (Open) WAKE disable B3
ON (Closed) INH1 enable
10 INH1 between Daughter Board 1 and BD (jumper) J22
OFF (Open) INH1 disable B3
ON (Closed) EN enable
11 EN between Daughter Board 1 and BD (jumper) J24
OFF (Open) EN disable B3
ON (Closed) RSTN/STBN enable
12 RSTN/STBN between
Daughter Board 1 and BD (jumper)
J27OFF (Open) RSTN/STBN disable
B3
ON (Closed) SDI enable
13 SDI between Daughter Board 1 and BD (jumper) J23
OFF (Open) SDI disable B3
ON (Closed) SDO enable
14 SDO between Daughter Board 1 and BD (jumper) J17
OFF (Open) SDO disable B3
ON (Closed) SCK enable
15 SCK between Daughter Board 1 and BD (jumper) J18
OFF (Open) SCK disable B3
ON (Closed) SCSN enable
16 SCSN between Daughter Board 1 and BD (jumper) J19
OFF (Open) SCSN disable B3
ON (Closed) Power supply
17 Power supply for LED of WAKE(jumper) J26
OFF (Open) No Power supply B3
Table 7: FlexRay board RS485 Bus Driver device jumper settings (Bch)
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
© Fujitsu Microelectronics Europe GmbH - 25 - FMEMCU-UG-910011-10
6.2.1.5.2 Bus Driver device select the Daughter Board 2 using Flexray transceiver (Bch)
No. Item PartNo. Setting Description AXIS
WAKE signal (SW2/1) OFF WAKE ON/OFF
EN signal (SW2/2) OFF EN ON/OFF
RSTN/STBN signal (SW2/3) OFF RSTN/STBN ON/OFF 1
Reserved (SW2/4)
SW2
OFF Reserved
A3
ON (Closed) TxD of RS485 enable
2 TXD of RS485 Transceiver (jumper) J70
OFF (Open) TxD of RS485 disable
C3
ON (Closed) RxD of RS485 enable
3 RXD of RS485 Transceiver (jumper) J68
OFF (Open) RxD of RS485 disable
C3
ON (Closed) TxEN of RS485 enable
4 TXEN of RS485 Transceiver(jumper) J69
OFF (Open) TxEN of RS485 disable
C3
ON (Closed) BP of RS485 enable
5 BP of RS485 Transceiver (jumper) J58
OFF (Open) BP of RS485 disable
A2
ON (Closed) BM of RS485 enable
6 BM of RS485 Transceiver (jumper) J59
OFF (Open) BM of RS485 disable
A2
ON (Closed) Termination of RS485 enable
7Termination of RS485
Transceiver (jumper)
J49OFF
(Open) Termination of RS485 disable A1
ON (Closed) Termination of RS485 enable
8Termination of RS485
Transceiver (jumper)
J57OFF
(Open) Termination of RS485 disable A1
ON (Closed) WAKE enable
9 WAKE between Daughter Board 1 and BD (jumper) J25
OFF (Open) WAKE disable
B3
ON (Closed) INH1 enable
10 INH1 between Daughter Board 1 and BD (jumper) J22
OFF (Open) INH1 disable
B3
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
FMEMCU-UG-910011-10 - 26 - © Fujitsu Microelectronics Europe GmbH
No. Item PartNo. Setting Description AXIS
ON (Closed) EN enable
11 EN between Daughter Board 1 and BD (jumper) J24
OFF (Open) EN disable
B3
ON (Closed) RSTN/STBN enable
12 RSTN/STBN between
Daughter Board 1 and BD (jumper)
J27OFF
(Open) RSTN/STBN disable B3
ON (Closed) SDI enable
13 SDI between Daughter Board 1 and BD (jumper) J23
OFF (Open) SDI disable
B3
ON (Closed) SDO enable
14 SDO between Daughter Board 1 and BD (jumper) J17
OFF (Open) SDO disable
B3
ON (Closed) SCK enable
15 SCK between Daughter Board 1 and BD (jumper) J18
OFF (Open) SCK disable
B3
ON (Closed) SCSN enable
16 SCSN between Daughter Board 1 and BD (jumper) J19
OFF (Open) SCSN disable
B3
ON (Closed) Power supply
17 Power supply for LED of WAKE(jumper) J26
OFF (Open) No Power supply
B3
Table 8: Bus Driver device jumper settings for daughter board 2 (Bch)
NOTE:
When using FlexRay transceiver via daughter board 2 check also power supply jumpers in Table 2: FlexRay board power supply jumper settings
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
© Fujitsu Microelectronics Europe GmbH - 27 - FMEMCU-UG-910011-10
6.2.1.6 Reserved Switch
No. Item PartNo. Setting Description AXIS
1 INT Push Switch (Reserved) SW3 OFF
ON / OFF (This Switch is connected with
FlexRay Evaluation Daughter Board)A6
2 SWA Push Switch (Reserved) SW4 OFF
ON / OFF (This Switch is connected with
FlexRay Evaluation Daughter Board)A5
3 SWB Push Switch (Reserved) SW5 OFF
ON / OFF (This Switch is connected with
FlexRay Evaluation Daughter Board)A5
Table 9: Reserved Switches
6.2.2 FlexRay Evaluation Daughter Board Settings
6.2.2.1 Operating Mode Jumper The mode of operation for FPGA is selected with four jumpers. Their function is listed in the table below. The jumpers are located on the FlexRay Evaluation Daughter Board.
No. Item PartNo. Setting Description AXIS
ON (Closed) 0 (Low) 1 MOD0
(jumper) J13OFF (Open) 1 (High)
A3
ON (Closed) 0 (Low) 2 MOD1
(jumper) J11OFF (Open) 1 (High)
A3
ON (Closed) 0 (Low) 3 MOD2
(jumper) J12OFF (Open) 1 (High)
A3
1-2 selected a SMA connector of Main Board4 Clock Select
(jumper) J12-3 selected an OSC of Daughter Board 1
B3
Table 10: FPGA operation mode setting
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
FMEMCU-UG-910011-10 - 28 - © Fujitsu Microelectronics Europe GmbH
6.2.2.2 FPGA Configuration Jumper Change settings when updating the FPGA content. By default Jumper set for run mode.
No. Item PartNo. Setting Description AXIS
ON (Closed) Flash ROM 0Page setting 1 PGM0
(jumper) J10OFF (Open) Flash ROM 1Page setting
C2
ON (Closed) JTAG disable 2 TRST
(jumper) J7 OFF (Open) JTAG enable
C2
ON (Closed) 100mS setting 3 PORSEL
(jumper) J8 OFF (Open) 2mS setting
C2
ON (Closed) serial data mode 4 MSEL1
(jumper) J9 OFF (Open) parallel data mode
C2
Table 11: FlexRay Evaluation Daughter Board: FPGA configuration jumper
6.3 Header for Debug Signals
6.3.1 FlexRay Evaluation Main Board Check Pins
All pins provided to check the board functionality are described in this chapter.
6.3.1.1 Power supply voltage
No. Item PartNo. Description AXIS
1 Checker pin (Vbat) TP25 Vbat (DCin) E3
2 Checker pin (9V) TP26 9V E7
3 Checker pin (5V) TP27 5V E3
4 Checker pin (3.3V) TP28 3.3V E4
5 Checker pin (VccINT_2) TP30 VccINT_2 (1.8/2.5V) E6
6 Checker pin (VccINT_1) TP29 VccINT_1 (1.2/1.5/1.8V) E5
7 Checker pin (GND) TP31 GND B4
8 Checker pin TP32 GND A8
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
© Fujitsu Microelectronics Europe GmbH - 29 - FMEMCU-UG-910011-10
No. Item PartNo. Description AXIS
(GND)
9 Checker pin (GND) TP33 GND E8
10 Checker pin (GND) TP34 GND E4
11 Header pin (GND) J40 GND A3
12 Checker pin (analog VccINT_1) TP35 Analog VccINT_1 ( 1.2/1.5/1.8V) A7
13 Checker pin (analog GND) TP37 Analog GND A7
14 Checker pin (analog GND) TP38 Analog GND A7
15 Header pin (analog GND) J43 Analog GND A6
16 Power supply for LED D26 5V F2
Table 12: FlexRay Main board: Power supply check pins
Via above listed pins it is possible to check correct power supply of the FPGA main board.
6.3.1.2 Mon 1 (J54) Connector (External Bus Interface) At Connector J54 the Address and Data lines of the external Bus Interface are routed. Via this pins it is possible to check / monitor the external Bus Interface. Additionally I/O port pins PS[7:0] are connected.
PIN No Description
PIN No Description
1 Ext. BUS Data0 41 Ext. BUS Address8
2 Ext. BUS Data1 42 Ext. BUS Address9
3 Ext. BUS Data2 43 Ext. BUS Address10
4 Ext. BUS Data3 44 Ext. BUS Address11
5 Ext. BUS Data4 45 Ext. BUS Address12
6 Ext. BUS Data5 46 Ext. BUS Address13
7 Ext. BUS Data6 47 Ext. BUS Address14
8 Ext. BUS Data7 48 Ext. BUS Address15
9 Ext. BUS Data8 49 Ext. BUS Address16
10 Ext. BUS Data9 50 Ext. BUS Address17
11 Ext. BUS Data10 51 Ext. BUS Address18
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
FMEMCU-UG-910011-10 - 30 - © Fujitsu Microelectronics Europe GmbH
PIN No Description
PIN No Description
12 Ext. BUS Data11 52 Ext. BUS Address19
13 Ext. BUS Data12 53 Ext. BUS Address20
14 Ext. BUS Data13 54 Ext. BUS Address21
15 Ext. BUS Data14 55 Ext. BUS Address22
16 Ext. BUS Data15 56 Ext. BUS Address23
17 Ext. BUS Data16 57 Ext. BUS Address24
18 Ext. BUS Data17 58 Ext. BUS Address25
19 Ext. BUS Data18 59 Ext. BUS Address26
20 Ext. BUS Data19 60 Ext. BUS Address27
21 Ext. BUS Data20 61 Ext. BUS Address28
22 Ext. BUS Data21 62 Ext. BUS Address29
23 Ext. BUS Data22 63 Ext. BUS Address30
24 Ext. BUS Data23 64 Ext. BUS Address31
25 Ext. BUS Data24 65 IOPort PS0
26 Ext. BUS Data25 66 IOPort PS1
27 Ext. BUS Data26 67 IOPort PS2
28 Ext. BUS Data27 68 IOPort PS3
29 Ext. BUS Data28 69 IOPort PS4
30 Ext. BUS Data29 70 IOPort PS5
31 Ext. BUS Data30 71 IOPort PS6
32 Ext. BUS Data31 72 IOPort PS7
33 Ext. BUS Address0 73 B01
34 Ext. BUS Address1 74 B02
35 Ext. BUS Address2 75 B03
36 Ext. BUS Address3 76 B04
37 Ext. BUS Address4 77 B05
38 Ext. BUS Address5 78 B06
39 Ext. BUS Address6 79 B07
40 Ext. BUS Address7 80 B08
Table 13: FPGA Main board: Mon 1 (J54) Connector (Bus I/F) pins
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
© Fujitsu Microelectronics Europe GmbH - 31 - FMEMCU-UG-910011-10
6.3.1.3 Mon 2 (J55) Connector At MON 2 (J55) Signal pins of external Bus Interface and additionally I/O ports of FPGA are connected.
PIN No Description PIN
No Description
1 B09 41 IOPORT2
2 B10 42 IOPORT3
3 B11 43 IOPORT4
4 C11 44 IOPORT5
5 B12 45 IOPORT6
6 B13 46 IOPORT7
7 C16 47 IOPORT8
8 BCLK 48 IOPORT9
9 CS0 49 IOPORT10
10 CS1 50 IOPORT11
11 CS2 51 IOPORT12
12 CS3 52 IOPORT13
13 CS4 53 IOPORT14
14 CS5 54 IOPORT15
15 CS6 55 IOPORT16
16 RDY 56 IOPORT17
17 BGRNT 57 IOPORT18
18 BRQ 58 IOPORT19
19 RDX 59 IOPORT20
20 WR0 60 IOPORT21
21 WR1 61 IOPORT22
22 WR2 62 IOPORT23
23 WR3 63 IOPORT24
24 AS 64 IOPORT25
25 ALE 65 IOPORT26
26 DREQ0 66 IOPORT27
27 DACK0 67 IOPORT28
28 DEOP0 68 IOPORT29
29 InterruptA 69 IOPORT30
30 I2C(SDA) 70 IOPORT31
31 InterruptB 71 SWBDA
32 I2C(SCL) 72 SWBDB
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
FMEMCU-UG-910011-10 - 32 - © Fujitsu Microelectronics Europe GmbH
PIN No Description PIN
No Description
33 Uart-RxD 73 SWINT
34 Uart-TxD 74 GND
35 Uart-Clock 75 GND
36 Reset 76 GND
37 SCLK 77 GND
38 GND 78 GND
39 IOPORT0 79 GND
40 IOPORT1 80 GND
Table 14: FPGA Main board: Mon 2 (J55) Connector (Bus I/F) pins
6.3.1.4 Mon 3 (J56) connector Via Mon 3 (J56) connector it is possible to monitor the FlexRay bus signals.
PIN No Description PIN
No Description
1 WAKE_A 21 ERRN/INTN_B
2 MT_A 22 INH1_B
3 BGT_A 23 TXD_B
4 ERRN/INTN_A 24 RXD_B
5 INH1_A 25 BGE_B
6 TXD_A 26 RXEN_B
7 RXD_A 27 TXEN_B
8 BGE_A 28 EN_B
9 RXEN_A 29 RSTN/STBN_B
10 TXEN_A 30 ARM_B
11 EN_A 31 SDI_B
12 RSTN/STBN_A 32 SDO_B
13 ARM_A 33 SCK_B
14 SDI_A 34 SCSN_B
15 SDO_A 35 GND
16 SCK_A 36 GND
17 SCSN_A 37 GND
18 WAKE_B 38 GND
19 MT_B 39 GND
20 BGT_B 40 GND
Table 15: FPGA Main board: Mon 3 (J56) Connector (Bus I/F) pins
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
© Fujitsu Microelectronics Europe GmbH - 33 - FMEMCU-UG-910011-10
6.3.2 Daughter Board 1
Following functionality at daughter board are routed to pins / connectors enabling monitoring of these functions/signals.
6.3.2.1 Power supply voltage Following pins at daughter board 1
No. Item PartNo. Description AXIS
1 Checker pin(5V) TP53 5V A3
2 Checker pin(3.3V) TP54 3.3V B3
3 Checker pin(1.5V) TP55 1.5V A1
4 Checker pin(GND) TP50 GND A1
5 Checker pin(GND) TP51 GND C3
6 Checker pin(analog 1.5V) TP56 Analog 1.5V A1
7 Checker pin(analog GND) TP52 Analog GND A3
5 Checker pin(GND) TP51 GND C3
6 Checker pin(analog 1.5V) TP56 Analog 1.5V A1
7 Checker pin(analog GND) TP52 Analog GND A3
Table 16: FlexRay daughter board 1: Power supply monitor pins
6.3.2.2 IOPORT Monitor J15 (masked part)
PIN No Description PIN
No Description
1 n.c 11 CONF_DONE
2 DATA0 12 NCONFIG
3 DATA1 13 INIT_DONE
4 DATA2 14 NCEO
5 DATA3 15 TDI
6 DATA4 16 TRST
7 DATA5 17 M_SEL1
8 DATA6 18 PORSEL
9 DATA7 19 GND
10 NSTATUS 20 GND
Table 17: FlexRay daughter board 1: IO Port Monitor (J15) pins
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
FMEMCU-UG-910011-10 - 34 - © Fujitsu Microelectronics Europe GmbH
There are no connectors soldered at J15. At this Connector additional I/O ports of the FPGA are connected which are not connected to the main board via Jumper J2, J3, J4 or J5.
These ports are unused.
6.3.2.3 Configuration Monitor J16 (masked part)
PIN No Description PIN
No Description
1 IOPORT32 17 IOPORT48
2 IOPORT33 18 IOPORT49
3 IOPORT34 19 IOPORT50
4 IOPORT35 20 IOPORT51
5 IOPORT36 21 IOPORT52
6 IOPORT37 22 IOPORT53
7 IOPORT38 23 IOPORT54
8 IOPORT39 24 IOPORT55
9 IOPORT40 25 IOPORT56
10 IOPORT41 26 IOPORT57
11 IOPORT42 27 IOPORT58
12 IOPORT43 28 IOPORT59
13 IOPORT44 29 IOPORT60
14 IOPORT45 30 GND
15 IOPORT46 31 GND
16 IOPORT47 32 GND
Table 18: FlexRay daughter board 1: J16 pins There are no connectors soldered at J15. At this Connector additional I/O ports of the FPGA are connected which are not connected to the main board via Jumper J2, J3, J4 or J5.
These ports are unused.
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
© Fujitsu Microelectronics Europe GmbH - 35 - FMEMCU-UG-910011-10
6.4 Connectors
6.4.1 Power Connector (J30)
The DC Jack J30 is used to connect an external regulated DC power supply voltage (12V-20V DC) to the evaluation board. (It is recommended to use 12V to keep the power dissipation to a minimum.)
Figure 5: Power Connector (J30) (EIAJ RC5320A Type5) Centre is connected to Positive Voltage supply (+).
Shield is connected to ground (GND)
6.4.2 FlexRay Bus Connector P1, P2
FlexRay Bus Connector P1 and P2 are used for FlexRay BUS Interface through the 9-pin D-Sub male connector. The following diagram shows the connection of the 9-pin D-Sub male connector.
Figure 6: 9-pin D-Sub male Connector (Top View) Note:
On the FPGA main board terminal resistors are onboard for RS485 level transmission.
Select / unselect the terminal resistor via Jumper (Ach: J47, J48 / Bch: J49, J57).
6.4.3 Daughter Board 1 Connectors J2, J3, J4, J5
Via the Daughter board 1 Connectors J2, J3, J4 and J5 the connection between FPGA Main board and FPGA daughter board 1 is established.
Jumper J2, J3 and J4 includes all pins related to CPU board connection.
Jumper J5 includes all pins related to FlexRay transceiver side. RS385 or FlexRay transceiver via FlexRay daughter board 2 connectors.
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
FMEMCU-UG-910011-10 - 36 - © Fujitsu Microelectronics Europe GmbH
PIN No Connector No1
J2
Connector No2
J3
Connector No3
J4
Connector No4
J5
1 Ext. BUS Data0 IOPort PS0 GND IOPORT00
2 Ext. BUS Data1 IOPort PS1 GND IOPORT0
3 Ext. BUS Data2 IOPort PS2 WAKE_A IOPORT02
4 Ext. BUS Data3 IOPort PS3 MT_A IOPORT03
5 GND GND BGT_A GND
6 5.0V 5.0V GND 3.3V
7 Ext. BUS Data4 IOPort PS4 GND IOPORT04
8 Ext. BUS Data5 IOPort PS5 ERRN/INTN_A IOPORT05
9 Ext. BUS Data6 IOPort PS6 INH1_A IOPORT06
10 Ext. BUS Data7 IOPort PS7 TXD_A IOPORT07
11 Ext. BUS Data8 CS0 RXD_A IOPORT08
12 Ext. BUS Data9 B01 BGE_A IOPORT09
13 Ext. BUS Data10 GND RXEN_A IOPORT10
14 Ext. BUS Data11 3.3V TXEN_A IOPORT11
15 GND CS1 EN_A GND
16 3.3V CS2 RSTN/STBN_A 5.0V
17 Ext. BUS Data12 B02 GND IOPORT12
18 Ext. BUS Data13 CS3 GND IOPORT13
19 Ext. BUS Data14 CS4 ARM_A IOPORT14
20 Ext. BUS Data15 B03 SDI_A IOPORT15
21 Ext. BUS Data16 GND SDO_A IOPORT16
22 Ext. BUS Data17 5.0V SCK_A IOPORT17
23 Ext. BUS Data18 CS5 SCSN_A IOPORT18
24 Ext. BUS Data19 CS6 GND IOPORT19
25 GND B04 GND GND
26 5.0V RDY WAKE_B 3.3V
27 Ext. BUS Data20 BGRNT MT_B IOPORT20
28 Ext. BUS Data21 B05 BGT_B IOPORT21
29 Ext. BUS Data22 GND GND IOPORT22
30 Ext. BUS Data23 3.3V GND IOPORT23
31 Ext. BUS Data24 BRQ ERRN/INTN_B IOPORT24
32 Ext. BUS Data25 RDX INH1_B IOPORT25
33 Ext. BUS Data26 B06 TXD_B IOPORT26
34 Ext. BUS Data27 WR0 RXD_B IOPORT27
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
© Fujitsu Microelectronics Europe GmbH - 37 - FMEMCU-UG-910011-10
PIN No Connector No1
J2
Connector No2
J3
Connector No3
J4
Connector No4
J5
35 GND 5.0V BGE_B GND
36 3.3V WR1 RXEN_B 5.0V
37 Ext. BUS Data28 B07 TXEN_B IOPORT28
38 Ext. BUS Data29 WR2 EN_B IOPORT29
39 Ext. BUS Data30 5.0V RSTN/STBN_B IOPORT30
40 Ext. BUS Data31 WR3 GND IOPORT31
41 Ext. BUS Address0 B08 GND VccINT_2
42 Ext. BUS Address1 AS ARM_B VccINT_2
43 Ext. BUS Address2 3.3V SDI_B VccINT_2
44 Ext. BUS Address3 ALE SDO_B VccINT_2
45 GND B09 SCK_B VccINT_2
46 5.0V GND SCSN_B VccINT_2
47 Ext. BUS Address4 CLK GND VccINT_2
48 Ext. BUS Address5 5.0V GND VccINT_2
49 Ext. BUS Address6 DREQ0 LED0 VccINT_2
50 Ext. BUS Address7 B10 LED1 VccINT_2
51 Ext. BUS Address8 DACK0 LED2 VccINT_2
52 Ext. BUS Address9 3.3V LED3 VccINT_2
53 Ext. BUS Address10 DEOP0 LED4 VccINT_2
54 Ext. BUS Address11 B11 LED5 VccINT_1
55 GND C11 LED6 VccINT_1
56 3.3V InterruptA LED7 VccINT_1
57 Ext. BUS Address12 GND GND VccINT_1
58 Ext. BUS Address13 B12 GND VccINT_1
59 Ext. BUS Address14 I2C(SDA) LED8 VccINT_1
60 Ext. BUS Address15 InterruptB LED9 VccINT_1
61 Ext. BUS Address16 GND LED10 VccINT_1
62 Ext. BUS Address17 B13 LED11 VccINT_1
63 Ext. BUS Address18 I2C(SCL) LED12 VccINT_1
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
FMEMCU-UG-910011-10 - 38 - © Fujitsu Microelectronics Europe GmbH
PIN No Connector No1
J2
Connector No2
J3
Connector No3
J4
Connector No4
J5
64 Ext. BUS Address19 Uart-RxD LED13 VccINT_1
65 GND VccINT_2 LED14 VccINT_1
66 5.0V VccINT_2 LED15 GND
67 Ext. BUS Address20 Uart-TxD GND GND
68 Ext. BUS Address21 VccINT_2 GND AGND
69 Ext. BUS Address22 VccINT_2 VccINT_1 A_VccINT_1
70 Ext. BUS Address23 Uart-Clock VccINT_1 AGND
71 Ext. BUS Address24 VccINT_2 VccINT_1 A_VccINT_1
72 Ext. BUS Address25 Reset VccINT_1 AGND
73 Ext. BUS Address26 VccINT_2 VccINT_1 A_VccINT_1
74 Ext. BUS Address27 C16 VccINT_1 AGND
75 GND VccINT_2 VccINT_1 A_VccINT_1
76 3.3V GND VccINT_1 GND
77 Ext. BUS Address28 MCLK VccINT_1 GND
78 Ext. BUS Address29 GND VccINT_1 SWB
79 Ext. BUS Address30 VccINT_2 VccINT_1 SWA
80 Ext. BUS Address31 VccINT_2 VccINT_1 SWINT
Table 19: Daughter Board 1 Connectors J2, J3, J4, J5
6.4.4 Daughter Board 2 Connectors J6, J7, J20, J21
The Daughter board 2 Connectors (Ach: J6, J7; Bch: J20,J21) have pin compatible layout as the “FlexPL Module TJA1080/UJA1081” manufactured by TZM.
When using FlexRay transceiver instead of RS485 transceiver, remove Jumper to RS485 transceiver, plug FlexRay module to main board.
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
© Fujitsu Microelectronics Europe GmbH - 39 - FMEMCU-UG-910011-10
Pin Signal Name Description Remark
1 WAKE Local wake output VBAT level
2 BP Transceiver bus line 1 Flexray-BUS
3 BM Transceiver bus line 2 Flexray-BUS
4 Vio IO voltage level output 3.3V supply
5 BGT BG tick signal 3.3V level
6 MT BG Macrotick signal 3.3V level
7 ERRN/INTN Error/Interrupt intput 3.3V �evel
8 INH1 Inhibit intput VBAT level
9 n.c. - -
10 TxD Transmit intput 3.3V level
11 INH2 Inhibit intput unused
12 RxD Receive data intput 3.3V level
13 Vcc Supply voltage +5V
14 GND Ground transceiver -
15 Vbat Battery supply -
Table 20: Daughter Board 2 Connectors J6, J20
Pin Signal Name Description Remark
1(30) RES Reserved -
2(29) SCSN SPI slave select output 3.3V level
3(28) SCK SPI clock output 3.3V level
4(27) SDO SPI data output 3.3V level
5(26) SDI SPI data input 3.3V level
6(25) ARM Arm signal input 3.3V level
7(24) RSTN/STBN BG reset output /STBN output to TJA1080 for power modes
3.3V levelUJA1081:RSTN -> Bus Guardian
ResetTJA1080:STBN -> Standby
8(23) EN BD enable output (used for power modes) 3.3V level
9(22) TXEN Transmit enable output 3.3V level
10(21) RXEN Receive enable input 3.3V level
11(20) BGE BG enable output 3.3V level
12(19) GND Ground -
13(18) V1V8 1.8V supply unused
14(17) GND Ground -
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
FMEMCU-UG-910011-10 - 40 - © Fujitsu Microelectronics Europe GmbH
Pin Signal Name Description Remark
15(16) V3V3 3.3V I/O supply -
Table 21: Daughter Board 2 Connectors J7, J21
6.4.5 SMA Connector (J53)
Via SMA Connector (J53) a Function Generator, etc, can be connected. E.g. as clock monitor function.
6.4.6 JTAG Connector J6 (JTAG of Daughter Board 1 for FPGA)
Via JTAG Connector (J6) of Daughter Board 1 it is possible to update FPGA configuration.
Figure 7: JTAG Connector J6 (TOP View)
6.4.7 CPU Board Connectors J50, J51
The CPU board interface signals are connected to J50 and J51. Two connectors are used, 96-pin VG-connector (J50) and 48-pin VG-connector (J51).
Pin Name Description Pin Name Description Pin Name Description
A1 2.5V B1 2.5V C1 2.5V
A2 3.3V B2 3.3V C2 3.3V
A3 5.0V B3 5.0V C3 NC.
A4 GND B4 GND C4 GND
A5 D0 Ext. Bus DATA bit0 B5 D1 Ext. Bus DATA bit1 C5 D2 Ext. Bus DATA bit2
A6 D3 Ext. Bus DATA bit3 B6 D4 Ext. Bus DATA bit4 C6 D5 Ext. Bus DATA bit5
A7 D6 Ext. Bus DATA bit6 B7 D7 Ext. Bus DATA bit7 C7 D8 Ext. Bus DATA bit8
A8 D9 Ext. Bus DATA bit9 B8 D10 Ext. Bus DATA bit10 C8 D11 Ext. Bus DATA bit11
A9 D12 Ext. Bus DATA bit12 B9 D13 Ext. Bus DATA bit13 C9 D14 Ext. Bus DATA bit14
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
© Fujitsu Microelectronics Europe GmbH - 41 - FMEMCU-UG-910011-10
Pin Name Description Pin Name Description Pin Name Description
A10 D15 Ext. Bus DATA bit15 B10 D16 Ext. Bus DATA bit16 C10 D17 Ext. Bus DATA bit17
A11 D18 Ext. Bus DATA bit18 B11 D19 Ext. Bus DATA bit19 C11 D20 Ext. Bus DATA bit20
A12 D21 Ext. Bus DATA bit21 B12 D22 Ext. Bus DATA bit22 C12 D23 Ext. Bus DATA bit23
A13 D24 Ext. Bus DATA bit24 B13 D25 Ext. Bus DATA bit25 C13 D26 Ext. Bus DATA bit26
A14 D27 Ext. Bus DATA bit27 B14 D28 Ext. Bus DATA bit28 C14 D29 Ext. Bus DATA bit29
A15 D30 Ext. Bus DATA bit30 B15 D31 Ext. Bus DATA bit31 C15 GND
A16 GND B16 GND C16 GND
A17 A0 Ext. Bus Address bit0 B17 A1 Ext. Bus Address bit1 C17 A2 Ext. Bus Address bit2
A18 A3 Ext. Bus Address bit3 B18 A4 Ext. Bus Address bit4 C18 A5 Ext. Bus Address bit5
A19 A6 Ext. Bus Address bit6 B19 A7 Ext. Bus Address bit7 C19 A8 Ext. Bus Address bit8
A20 A9 Ext. Bus Address bit9 B20 A10 Ext. Bus Address bit10 C20 A11 Ext. Bus Address bit11
A21 A12 Ext. Bus Address bit12 B21 A13 Ext. Bus Address bit13 C21 A14 Ext. Bus Address
bit14
A22 A15 Ext. Bus Address bit15 B22 A16 Ext. Bus Address bit16 C22 A17 Ext. Bus Address
bit17
A23 A18 Ext. Bus Address bit18 B23 A19 Ext. Bus Address bit19 C23 A20 Ext. Bus Address
bit20
A24 A21 Ext. Bus Address bit21 B24 A22 Ext. Bus Address bit22 C24 A23 Ext. Bus Address
bit23
A25 A24 Ext. Bus Address bit24 B25 A25 Ext. Bus Address bit25 C25 A26 Ext. Bus Address
bit26
A26 A27 Ext. Bus Address bit27 B26 A28 Ext. Bus Address bit28 C26 A29 Ext. Bus Address
bit29
A27 A30 Ext. Bus Address bit30 B27 A31 Ext. Bus Address bit31 C27 GND
A28 PortS0 IO Port PS0 B28 PortS1 IO Port PS1 C28 PortS2 IO Port PS2
A29 PortS3 IO Port PS3 B29 PortS4 IO Port PS4 C29 PortS5 IO Port PS5
A30 PortS6 IO Port PS6 B30 PortS7 IO Port PS7 C30 GND
A31 2.5_2V B31 2.5_3V C31 GND
A32 GND B32 GND C32 GND
Table 22: CPU Board Connector J50 (96-pin DIN Connector)
Figure 8: Pin Layout of the 96-polar DIN Connector
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
FMEMCU-UG-910011-10 - 42 - © Fujitsu Microelectronics Europe GmbH
Pin Name Description Pin Name Description Pin Name Description
A01 CS0 Ext. Bus: Chip Select0 B01 Res. C01 CS1 Ext. Bus: Chip Select1
A02 CS2 Ext. Bus: Chip Select2 B02 Res. C02 CS3 Ext. Bus: Chip Select3
A03 CS4 Ext. Bus: Chip Select4 B03 Res. C03 CS5 Ext. Bus: Chip Select5
A04 CS6 Ext. Bus: Chip Select6 B04 Res. C04 RDY Ext. Bus : Bus Ready
A05 BGRNT
Ext. Bus: Bus Grant B05 Res. C05 BRQ Ext. Bus: Bus Request
A06 RDX Exit. Bus: Read Enable B06 Res. C06 WR0 Exit Bus: Write Enable0
A07 WR1 Exit Bus: Write Enable1 B07 Res. C07 WR2 Exit Bus: Write Enable2
A08 WR3 Exit Bus: Write Enable3 B08 Res. C08 AS Ext. Bus: Addres strobe
A09 ALE Exit Bus: Address Latch Enable(It isn't uesd with 91360 series)
B09 Res. C09 CLK Ext. Bus: Bus Clock
A10 DREQ0
Ext. Bus: DMA Request0
B10 Res. C10 DACK0 Ext. Bus: DMA ACK
A11 DEOP0
Ext. Bus: DMA EOP0 B11 Res. C11 Res.
A12 InterruptA
InterruptA B12 Res. C12 I2C(SDA) I2C SDA
A13 InterruptB
InterruptB B13 Res. C13 I2C(SCL) I2C SCL
A14 Uart-RxD
Uart-RxD B14 9.0V Power Supply(9V) to the CPU board
C14 Uart-TxD Uart-TxD
A15 GND B15 9.0V Power Supply(9V) to the CPU board
C15 Uart-Clock
Uart-Clock
A16 Reset B16 9.0V Power Supply(9V) to the CPU board
C16 Res.
Table 23: CPU Board Connector J51 (48-polar DIN Connector)
Figure 9: Pin Layout of the 48-pin DIN Connector
FLEXRAY-FPGA-EVA-KIT-369 Chapter 6 FlexRay Evaluation Board
© Fujitsu Microelectronics Europe GmbH - 43 - FMEMCU-UG-910011-10
6.5 Programming the FPGA
This section explain s how to update FPGA content. To program the Altera FPGA the Software Quartus II 4.2 is required. This software is available at Alteras Webpage. Additionally a programmer is needed:
• ByteBlaster II / ByteBlasterMV (Parallel Port TYPE) • USB-Blaster (USB TYPE) • MasterBlaster (RS-232 TYPE / USB TYPE)
Programming steps
a. Connect the Programmer via JTAG Connector J6 at Daughter Board 1 with FPGA
b. Open the TRST of Daughter Board 1 (disconnect J7 jumper) the enable JTAG mode
c. Power-on FPGA Main board d. Start Programmer Software (QuartusII) at PC e. To select the FPGA Programmer type use “Hardware Setup” button and
select Hardware Settings TAB (5.1) Select Programmer in Currently selected Hardware field (5.2) A list of installed Programmer is shown in Available Hardware Items (5.3) If no Hardware is already installed, add Hardware via “Add Hardware” button
f. Use “Auto detect button” to detect FPGA and Configuration device i. EPC16 Configuration Device and EP1S25 FPGA should be detected
g. Load new *.pof file to program the configuration device (EPC16) i. Double click in “File” entry or use “Add File” button
h. Check “Program”, “Verify” and “Blank check” i. Use “Start button” to start reprogramming
FLEXRAY-FPGA-EVA-KIT-369 Chapter 7 CPU369 board
FMEMCU-UG-910011-10 - 44 - © Fujitsu Microelectronics Europe GmbH
7 CPU369 board
7.1 Overview
The Fujitsu CPU369-Modul is a low cost multifunctional evaluation board for Fujitsu’s 32-Bit Flash microcontroller MB91F369 that makes it easy to evaluate and demonstrate almost all features of the microcontroller. It can be used stand alone for software development and testing as a simple target board. It gives you the possibility to develop and evaluate applications the new FlexRay-controller family. Its modular concept makes it available to use with FlexRay Communication Controller sub boards or one of several graphic device sub boards just by plugging them to the CPU board.
The board allows the designer immediately to start the software development and perform debugging before his own final target system is available.
7.2 Features • MCU MB91F369
• 2MB external Debugging RAM
• 4MHz crystal
• DC Power supply circuit (incl. Test pins for VCC, GND, power LED and switch)
• 1 MB external Flash available for user code and constant data
• External Reset Button for MCU
• 2 Buttons for ext. Interrupt (USER_0 = ext. Interrupt0, USER_1 = ext. Interrupt1)
• MAX232 + DB9 (female) connector for internal UART
• CAN transceiver and DB9 (male) for internal CAN0
• 2 LEDs (on Port N)
• All peripheral pins are available by the connectors ‘Peripheral_1’ and ‘Peripheral_2’
• Sub board support
o 96pin + 48pin VG connector
7.3 Jumpers and Switches This chapter describes all jumpers and switches, which can be modified on the evaluation board. The default setting is shown with a grey shaded area. All jumpers and switches are named directly on the board by its meaning, so it is very easy to set the jumpers according to the features. For more information please refer to the Hardware Manual of the microcontroller and the Data Sheet of the Flash-ROM 29LV400TC.
7.3.1 Power Supply Voltage (SW1, JP11, JP12, JP13, JP14, JP15, JP25)
Switch setting Description
1 - 2 Power ON Power supply voltage (SW1)
2 - 3 Power OFF
Table 24: CPU369 board: Power supply Switch setting (SW1)
FLEXRAY-FPGA-EVA-KIT-369 Chapter 7 CPU369 board
© Fujitsu Microelectronics Europe GmbH - 45 - FMEMCU-UG-910011-10
Jumper setting Description
ON (closed) Power supply 3V3 power supply (JP11)
OFF (open) NO Power supply
ON (closed) Power supply 5V0 power supply (JP12)
OFF (open) NO Power supply
ON (closed) Voltage regulator enable Bypass Capacitor Pin (JP13)
OFF (open) Voltage regulator disable
ON (closed) Power supply Power supply for SMT (JP14)
OFF (open) NO Power supply
ON (closed) Analogue Power supply 5V0 Power supply (JP15)
OFF (open) NO Analogue Power supply
ON (closed) Power supply Power supply voltage (SW1)
OFF (open) NO Power supply
Table 25: CPU369 board: Power Supply Jumper settings
NOTE: The supply voltage for the core and the IO Pins must be set. Otherwise it could happen that the controller does not work correctly!
7.3.2 Operating Mode (SW2) settings
Jumper setting SW2 DIP switch setting Logical value Description
Boot signal (SW2/1) ON 0 (low) Boot signal
MD2 (SW2/2) ON 0 (low)
MD1 (SW2/3) ON 0 (low)
MD0 (SW2/4) ON 0 (low)
Boot signal (SW2/1) ON 0 (low)
Internal ROM mode
Table 26: CPU369 board: Operation mode settings
7.3.3 UART (JP21, JP22) settings
Jumper setting Description
ON (closed) UART0 Output enable SOT_0 (JP21)
OFF (open) UART0 Output disable
ON (closed) UART0 Input enable SIN_0 (JP22)
OFF (open) UART0 Input disable
Table 27: CPU369 board: UART Jumper setting
FLEXRAY-FPGA-EVA-KIT-369 Chapter 7 CPU369 board
FMEMCU-UG-910011-10 - 46 - © Fujitsu Microelectronics Europe GmbH
Reserved Jumpers for future extensions:
Description
SIN_2 (JP7) UART2 Input enable
SOT_2 (JP8) UART2 Output enable
UART2 clock (JP9) UART2 clock enable
Table 28: CPU 369 board: reserved UART settings
7.3.4 Chip select enable for FLASH (JP10)
CS Jumper setting Description
CS2 closed 1-2 Ext. Flash – Chip-Select2
CS3 closed 2-3 Ext. Flash – Chip-Select3
Table 29: CPU 369 board: external Flash CS setting
7.3.5 Hardware Standby (JP16)
Jumper setting Description
HSTX(JP16) 1-2 HSTX request is released
2-3
Table 30: CPU369 board: Hardware standby jumper setting
7.3.6 Clock Select (JP17, JP18, JP19, JP20)
Select which clock signals on CPU board should be connected to MCU.
Signal Jumper setting Description
1-2 Clock enable SELCLK (JP17)
2-3 Clock disable
1-2 4MHz clock enable 4MHz clock
(JP18) 2-3 4MHz clock disable
1-2 32kHz clock enable 32kHz clock
(JP19) 2-3 32kHz clock disable
1-2 Low pass filter for clock enable Low pass filter
(JP20) 2-3 Low pass filter for clock disable
Table 31: CPU369 board: Clock selection jumper
FLEXRAY-FPGA-EVA-KIT-369 Chapter 7 CPU369 board
© Fujitsu Microelectronics Europe GmbH - 47 - FMEMCU-UG-910011-10
7.3.7 CAN controller interface (JP23, JP24)
When using CAN interface close this jumpers to connect MCU CAN RX-,TX-signals to CAN transceiver onboard.
Signal Jumper setting Description
ON (closed) Transmit data enable CAN transmit
(JP23) OFF (open) Transmit data disable
ON (closed) Receive data enable CAN receive
(JP24) OFF (open) Receive data disable
Table 32: CAN interface Jumper (JP23, JP24)
7.3.8 Solder Bridges JP1 and JP2 on MCU top module
Close solder jumper JP1 and JP2 at CPU module, to connect SOT3 and SCK3 port to onboard LED0 and 1. By default jumpers are open.
Signal Jumper setting Description
ON (closed) LED0,1 on port N enabled LED / SIO3 select(JP1,2)
OFF (open) SIO3 (SOT3,SCK3) enabled
Table 33: CPU369 board: MCU module URAT / LED selection
7.4 Header for Debug Signals
7.4.1 Power supply voltage (JP1, JP2, JP3, JP4, JP5, JP6)
All power supply voltage levels can be checked via these jumpers. Two pins of the jumpers are connected to GND the other two to the mentioned power supply level.
NOTE:
In case of voltage supply via FlexRay Main board, voltage at Jumper JP1 is 9V !
FLEXRAY-FPGA-EVA-KIT-369 Chapter 7 CPU369 board
FMEMCU-UG-910011-10 - 48 - © Fujitsu Microelectronics Europe GmbH
No. Item PartNo. Description
1 Checker pin (12V) JP1 12V – GND header
2 Checker pin (5V) JP2 5V – GND header
3 Checker pin (3.3V) JP3 3.3V – GND header
4 Checker pin (2.5V) JP4 2.5_1V – GND header
5 Checker pin (2.5V) JP5 2.5_2V – GND header
6 Checker pin (2.5V) JP6 2.5_3V – GND header
Table 34: CPU369 board: power supply header
7.4.2 MCU Peripheral Signals
7.4.2.1 Peripheral_1 (JH1) and Peripheral_2 (JH2) Header
Peripheral_1 Pin MB91F369 Pin Peripheral_2 Pin MB91F369 Pin 2 PH0 AN0 2 PM0 SGO
3 PH1 AN1 3 PM1 SGA 4 PH2 AN2 4 PN0 SOT4
5 PH3 AN3 5 PN1 SIN4 6 PH4 AN4 6 PN2 SCK4
7 PH5 AN5 7 PN3 SIN3
8 PH6 AN6 8 PN4 SOT3 (or LED0) 9 PH7 AN7 9 PN5 SCK4 (or LED1)
10 PG0 AN8 10 PO0 OCPA0 11 PG1 AN9 11 PO1 OCPA1
12 PG2 12 PO2 OCPA2 13 PG3 13 PO3 OCPA3
14 PG4 14 PO4 OCPA4
15 PG5 15 PO5 OCPA5 16 PG6 16 PO6 OCPA6
17 PG7 17 PO7 OCPA7 18 PI3 ATGX 18 PP2 TX1
FLEXRAY-FPGA-EVA-KIT-369 Chapter 7 CPU369 board
© Fujitsu Microelectronics Europe GmbH - 49 - FMEMCU-UG-910011-10
Peripheral_1 Pin MB91F369 Pin Peripheral_2 Pin MB91F369 Pin 19 DA0 DA0 19 PP3 RX1 20 DA1 20 PP4
21 ALARM ALARM 21 PP5
22 PK4 INT4 22 PQ2 23 PK5 INT5 23 PQ3
24 PK6 INT6 24 PQ4 25 PK7 INT7 25 PQ5
26 PL0 26 PR0 27 PL1 27 PR1
28 PL2 28 PR2
29 PL3 29 PR3 30 PL4 30 PR4
31 PL5 31 PR5 32 PL6 32 PR6
33 PL7 33 PR7
Table 35: CPU369 board: Pin Assignment of Peripheral Jumpers (JH1, JH2)
Note:
Some of the Pins of Peripheral_1 and Peripheral_2 are not connected! This is because the original CPU board was designed for the MCU MB91F362 and this MCU has some additional resources (e.g. stepper-motor drivers, more ADC channels etc.). Please refer to the attached schematics which pins are left open.
Figure 10: CPU369 board: Pin Assignment of Peripheral Jumpers
FLEXRAY-FPGA-EVA-KIT-369 Chapter 7 CPU369 board
FMEMCU-UG-910011-10 - 50 - © Fujitsu Microelectronics Europe GmbH
7.5 Connectors
7.5.1 Power Connector J1
The following figure shows the power connection jack J1. This connector is used to connect an external unregulated DC power supply voltage (6V-9V DC) to the evaluation board.
Power Connector J1:
7.5.2 Serial Interface Connector P1
The following diagram shows the connection of the 9-pin D-Sub female connector P1, which is used for the serial interfaces.
Figure 11: CPU369 board: Serial Interface Connector P1
TXD is the transmit output, RXD is the receive input. The DTR signal is used as an input, which can be connected to generate a reset.
Note: CTS and RTS must be connected to each other because of the serial monitor debugger communication protocol – if you have problems with the monitor communication, please check if these two signals are connected to each other!
GND DTR RxD TxD
CTS RTS DSR
1
6
5
9
Shield is connected to positive voltage supply
Centre is connected to ground (GND)
FLEXRAY-FPGA-EVA-KIT-369 Chapter 7 CPU369 board
© Fujitsu Microelectronics Europe GmbH - 51
7.5.3 CAN Interface Connector
The following diagram shows the connection of the 9-pin D-Sub male connector P2 which is used for the CAN interface.
For the CAN interface the resistor trimmer R1that the slew rate is adjusted according to the lotransfer rate)
5
9
CANL
1
6
CANH
- FMEMCU-UG-910011-10
8 is used to adjust the slew rate. Take care cal environment (CAN network configuration,
FLEXRAY-FPGA-EVA-KIT-369 Chapter 8 Getting Started
FMEMCU-UG-910011-10 - 52 - © Fujitsu Microelectronics Europe GmbH
8 Getting Started Make sure Softune Workbench for FR is installed on your PC and the “FLEXRAY-FPGA-EVA-KIT-369” is ready to use (power-on (J30/J52), serial connection (P1) to COM1 of the PC). Refer to Chapter 3 for details on the hardware and software installation.
8.1 Introduction to Softune Workbench Start Softune Workbench. Select <File> <Open Workspace> to load the first example “FPGA_standalone_flexray_demo.wsp”. All examples can be found in the folder \software\examples on FlexRay CD-ROM. It is recommended to copy this folder to the local hard-drive. In the project tree on the left side, you can open the “source”-folder, which contains the source-files registered to this project. A double-click on one of the files will invoke the built-in editor, which supports syntax highlighting, tags and various other functions.
Figure 12: Softune Workbench main window
Note:You may customize the editor by a right-click on the editor window.
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. To check for syntax-errors on a specific source-file, use the COMPILE/ASSEMBLE function.
FLEXRAY-FPGA-EVA-KIT-369 Chapter 8 Getting Started
© Fujitsu Microelectronics Europe GmbH - 53 - FMEMCU-UG-910011-10
These three functions are available on the button-bar or from the main menu (Project – Compile / Make / Build / Abort).
Click on MAKE or BUILD. Messages from the individual language tools will be fed into the output window at the bottom of the main screen. If the tool chain (C-compiler → Assembler → Linker) was completed successfully, the message “No Error” will appear.
If you get any errors during compilation, an appropriate message will be generated. Try this with a simple syntax-error (e.g. delete a semicolon “;” from the end of a C-line) and click on MAKE again. You will now see a message like this: Now Making... --------------------Configuration: Node2.prj - MONDEB-------------------- MAIN_coldstart_node2.c *** C:\Softune\sample\FPGA_standalone_flexray_demo\Src\MAIN_coldstart_node2.c(89) E4065B: expected a ";" *** C:\Softune\sample\FPGA_standalone_flexray_demo\Src\MAIN_coldstart_node2.c(104) W1012B: warning: parsing restarts here after previous syntax error 1 error detected in the compilation of "C:\Softune\sample\FPGA_standalone_flexray_demo\Src\MAIN_coldstart_node2.c". ------------------------------ Error detected. ------------------------------
To locate the position in the source-file, where the error has occurred, double-click on the message. The editor will open the appropriate source-file, indicating the error highlighted in red, depending on the customise settings of the editor. Correct the error and re-compile the project as explained above.
If more errors occurred, you can go through the error list step by step using the menu “Edit – Top/Previous/Next/Bottom Error” or using the appropriate buttons, which have the same functions:
Note:To get on-line help about a specific error, select the error message and press F1. In many cases, you can get some useful hints how to solve the problem. Of course, you can also use the HELP-menu anytime during development or debugging.
FLEXRAY-FPGA-EVA-KIT-369 Chapter 8 Getting Started
FMEMCU-UG-910011-10 - 54 - © Fujitsu Microelectronics Europe GmbH
8.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 startup.asm file, MCU header file, IRQ table, basic linker and C-Compiler settings.
Note:
Create a new project: 1. In order to start a new user-project use the “Template” project 2. Copy the folder Template and rename the folder to e.g. my_application
3. Enter the folder “my_application” Rename “template.prj” into “my_application.prj” Rename “template.wsp” into “my_application.wsp”
4. Edit “my_application.prj” Rename “template” -> “my_application”
5. Edit “my_application.wsp” Rename “template” -> “my_application”
In any case the settings done in the template must be checked and have to be adjusted to the specific needs and settings of the final application. The template is providing an example for building up a new project. THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR/ELIGIBILITY FOR ANY PURPOSES. (C) Fujitsu Microelectronics Europe GmbH
FLEXRAY-FPGA-EVA-KIT-369 Chapter 8 Getting Started
© Fujitsu Microelectronics Europe GmbH - 55 - FMEMCU-UG-910011-10
6. Start Softune Workbench and open your project
Rename “Template” into “my_application”
FLEXRAY-FPGA-EVA-KIT-369 Chapter 8 Getting Started
FMEMCU-UG-910011-10 - 56 - © Fujitsu Microelectronics Europe GmbH
7. Select Active Configuration “MONDEBUG”
Use Active Configuration MONDEBUG 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. The code is linked in this configuration for external SRAM, otherwise it is not possible to debug code with the Softune Workbench monitor debugger. Additionally the MACRO SWBMonDeb is switched on in the assembler settings. This affects settings in startup.asm, which are mandatory to work with the Softune Workbench monitor debugger.
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.
8. Check MCU settings in the module startup.asm. Be careful regarding any modifications. If the peripheral clock speed is modified it can happen that the communication between Softune Workbench and monitor debugger is lost. In the module startup some basic MCU settings are done and some initial data copy transfers are performed for specific data sections e.g INIT. Check if the macro “ABORT” is enabled (default) in the Assember options (<Project>, <Setup Project>, <Assembler>, category <Define Macro>.
9. Check module intvects.inc if any interrupts are used for proper vector table set-up.
10. Write application code in the module main.c or add any other module to the project.
11. Write and modify source code and settings corresponding to the needs of the application. Finally use “Make”, or “Build” to compile and link the project. The
FLEXRAY-FPGA-EVA-KIT-369 Chapter 8 Getting Started
© Fujitsu Microelectronics Europe GmbH - 57 - FMEMCU-UG-910011-10
generated output files can be found in the sub-folder MONDEBUGGER of the project folder. The *.mhx file (Motorola S-Record) is located in the ABS sub-folder.
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.
Check linker mapping list in the*.mp1 file by right-click on “my_application.abs”, Open List File, *.mp1.
FLEXRAY-FPGA-EVA-KIT-369 Chapter 8 Getting Started
FMEMCU-UG-910011-10 - 58 - © Fujitsu Microelectronics Europe GmbH
12. Start Softune Monitor Debugger via the “Debug” Command
13. After the project is built and debugged successfully switch to the active configuration STANDALONE
Use Active configuration STANDALONE 14. With this selection the project is linked to work in internal flash memory. Check that
the macro “ABORT” is switched off (default) in the Assembler options (<Project>, <Setup Project>, <Assembler>, category <Define Macro>.
This configuration will not work with the Softune Workbench monitor debugger In this configuration the code is linked to work in internal Flash memory, only.
15. Use “Make”, or “Build” to compile and link the project for external Flash memory. The generated output files can be found in the sub-folder STANDALONE of the project folder. The *.mhx file (Motorola S-Record) is located in the ABS sub-folder.
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.
16. Program the generated *.mhx file (Motorola S-Record) with the Flash programming utility into the internal Flash. See Chapter x “Programming the internal Flash Memory” for more details.
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.
FLEXRAY-FPGA-EVA-KIT-369 Chapter 8 Getting Started
© Fujitsu Microelectronics Europe GmbH - 59 - FMEMCU-UG-910011-10
8.3 Using the MB91F369 CPU-module If you have a system with the MB91F369 CPU module, you are able to use the monitor debugger of Softune Workbench. Hence, the examples are linked for the additional debugging RAM of the F369 CPU-module (80:0000…8F:FFFF). Your application will be downloaded to the debugging RAM automatically by starting the debugger.
Alternatively, you can also program the application to the embedded flash of the MB91F369 to create a stand-alone application which starts immediately after a reset. To do so, you have to re-link the application to the internal flash area (08:0000..0F:FFFF).
Creating applications for this board configuration can follow this sequence:
1. Modify an existing project for the F369 CPU board and the FlexRay sub-board.
2. Compile and link (Build) the project to create a valid ‘loadmodule‘ for the external RAM.
3. Start the debugger to download the application to the external RAM.
4. Test and debug the application.
5. Return to the development area of Softune Workbench to apply changes.
6. Continue at step 2 as long as the project needs changes.
7. Change the linker settings in order to run the program from internal flash (for details refer to the appendix).
8. Use the MB91360 flash programmer tool to program the embedded flash memory.
9. Test the application.
10. If necessary continue at step 1, but be aware to change the linker-settings beforehand.
NOTE: Make sure to not overwrite the “security vector” (0x0FFEF4) – see hardware manual
Use the provided templates to make sure the sections are located correctly
FLEXRAY-FPGA-EVA-KIT-369 Chapter 8 Getting Started
FMEMCU-UG-910011-10 - 60 - © Fujitsu Microelectronics Europe GmbH
8.4 Softune Workbench Monitor Debugger
8.4.1 General Description
Whenever you have successfully created a valid load module, you may switch from the development mode to the debugging mode of Softune Workbench.
Basically, there are 3 types of debugging systems supported:
The software simulator: This type of debugger is always present and does not require any special hardware extensions. The simulator will cover the FR-core features, but no peripheral functions. Therefore, you can use the simulator to verify program flow, check for dynamic errors, look at the generated assembler code and so on.
The monitor debugger: This debugger type requires an evaluation board like the modular Starter kit (MB91F369 module) connected to one of the COM-ports of your PC. Therefore, make sure you have the evaluation board connected and powered-up as described before. Explanations in this manual refer to the monitor debugger only.
The emulator debugger: The in-circuit-emulator (ICE) is a system, which allows a connection to any target system using a probe-cable. The appropriate system for the MB91360 series is the MB2198-01 system. More information about this system can be found on the Fujitsu website.
Which debugger is used for the actual project can be configured in the Project tree as shown below or in the “Project – Setup Project – Debug” menu. By default, the monitor debugger is selected for MB91F369 project examples:
The default settings for the monitor debugger are : COM-Port 1 at 57600Baud. If you wish to change the COM-port, please right-click on the “MonDeb 57k6 COM1” entry and select change.
Note : If you wish to change the Baud rate, you have to change the UART-settings in the debugging kernel source project, re-compile and flash the new kernel to your MB91F369 first before you can use another baud rate.
If these settings are correct, start your debugging session:
First please make sure you are using the F369 CPU-board and your monitor-kernel is stored in the flash memory of the MB91F369. Then please power up and reset the starter kit.
Start the debugger by double clicking the “MonDeb 57k6 COM1” entry in the project/debug tree - or by using “Debug – Start Debug” from the menu. You should see a progress bar indicating the download process.
If nothing happens, there will be an error message after some time (“Invalid communication status”). Double-check the settings again as explained above. Also make sure the
FLEXRAY-FPGA-EVA-KIT-369 Chapter 8 Getting Started
© Fujitsu Microelectronics Europe GmbH - 61 - FMEMCU-UG-910011-10
evaluation-board is powered on, ready to use and the RS232-cable is connected properly. Also see the trouble-shooting section in the appendix.
After starting the debugger, additional windows will appear which contain locate-arrows for each (possible) source-line, the original source-code,
Figure 13: SWB Debugging window breakpoint-indicators and the assembler code (in “mixed view”). A yellow line indicates the actual program position.
Note:You can choose “mixed view” from the context menu (right-click) to display source and assembly code at the same time. To easily locate the actual line, use “go to current”!
FLEXRAY-FPGA-EVA-KIT-369 Chapter 8 Getting Started
FMEMCU-UG-910011-10 - 62 - © Fujitsu Microelectronics Europe GmbH
8.4.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). Interrupts are not disabled during a continuous CALL...RETURN execution.
STEP OUT: Executes the program continuously to the parent function (until RETURN). Interrupts are enabled. Note, that debug information is required for this function.
EXECUTE UNTIL CURSOR: Automatically sets a breakpoint at the actual cursor position and executes continuously until this breakpoint, which will be deleted afterwards.
Each valid code line in a debugger window automatically has a locator (blue arrow) and a breakpoint-option (circle). Note that some C-lines may not be displayed with locators and breakpoints, because the compiler has created “optimized” assembler-code. Select “mixed view” in order to check the compiler output.
Instead of single-steps, you may also use the arrows to directly execute your program until a certain line of your source-code:
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 USER_0 on the “CPU369 board” for ABORT function.
To ABORT continuous execution on the “CPU369 board”, you have to use the USER_0 button on the “CPU369 board”.
FLEXRAY-FPGA-EVA-KIT-369 Chapter 8 Getting Started
© Fujitsu Microelectronics Europe GmbH - 63 - FMEMCU-UG-910011-10
8.4.3 Advanced Monitor Debugger Features
TOGGLE BREAKPOINT: Sets or deletes breakpoint at the current source line:
To set or delete a breakpoint, click the circles at the beginning of a source-line.
A indicates an active breakpoint. Hit “Run Continuously” to execute code until reaching this line. A list of all breakpoints can be found under the “Debug – Breakpoint” menu. 255 Software-Breakpoints (using TRAP replacement) are possible.
Note:To set breakpoints at positions which are currently not visible (e.g. because the source window of that module is not open), you can also enter a symbolic label directly in the “Breakpoint” menu. Example: Enter “main” in the address-field and confirm. The new breakpoint will automatically be assigned to the address of the “main()”-function.
REGISTER WINDOW: Displays the CPU-register window. Updated registers appear in red. Setup in context menu defines which Registers should be displayed.
WATCH WINDOW: Displays the current variables to „watch“. Double-click on any variable in your code then specify watch in context menu to add to watch window. All listed variables in a watch window can be displayed in any number format. Use Edit to directly change the
contents.
MEMORY WINDOW: Displays memory areas in various formats defined by Setup (context menu). Changing of address/data is possible when debugger is not executing.
Note:If you modify the ROM-area (200.0000’H to 27F.FFFF’H) it can affect the currently loaded program!
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.
DEBUG - VECTOR: Reads out and displays the actual interrupt-vector table. Use the „jump“ function to display any code areas pointed to by an interrupt vector (e.g. interrupt service routines used in your program).
DEBUG - CALL: This function can be used to „call“ any routine defined in your code when the debugger is on hold.
DEBUG – LOAD TARGET FILE: Starts a new download of the current load module (ABS file). Usually this function will be executed automatically after starting the debugger (defined in debug
FLEXRAY-FPGA-EVA-KIT-369 Chapter 8 Getting Started
FMEMCU-UG-910011-10 - 64 - © Fujitsu Microelectronics Europe GmbH
settings; see „Project-Setup-Debug“). However, this function can be useful to re-initialize the debugger for the current debug session.
VIEW - SYMBOL: This function displays all (global) symbols of the current project. Information about the type (char, integer etc.) and the location (address in RAM or register) can be shown using „detail“.
VIEW - LOCAL: Similar to View-Symbol, but only local variables of the current function are shown.
VIEW - COMMAND: From this window, the debugger can be controlled using a command line input. All GUI functions are available as individual commands.
Example:
Run continuously
Step
examine PDRG
set break main
Dump/Halfword 0x2000000..0x20000FF Shortcuts to complex commands can be defined (“alias”) and parameter strings can be substituted by variables. Example: mydump = Dump/Halfword 2000000..20000ff
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. Procedure-files are simple text-files with the extension “PRC” and can be created by the Softune Workbench editor or any other text editor. To execute a procedure-file, use the command window menu or the “file-open” menu during debugging.
Note:Procedure-files can be very helpful to configure the debug-environment automatically, perform automated tests (e.g. when a new C-module has to be tested) or to enhance basic emulator functions such as breakpoints. Using a procedure file, breakpoints can be defined dynamically depending on program conditions. See the “Command Reference Manual” (on-line help) for detailed information about the available command and parameter syntax. Some procedure files exist already included in the example project directory.
FLEXRAY-FPGA-EVA-KIT-369 Chapter 8 Getting Started
© Fujitsu Microelectronics Europe GmbH - 65 - FMEMCU-UG-910011-10
8.5 Provided Examples On the “FlexRay Evaluation Kit” CD-ROM and on the MCU website some example projects are provided. The projects can be found in \Software\Examples and are regularly updated on the website. Please check http://www.fme.gsdc.de/gsdc.htm for latest information and version.
Use the “Template” project as a reference to start your own application software. The “Template” project offers a quick start-up and includes basic MCU initialisation files and tools settings (e.g. linker memory map).
Note:In any case all settings must ALWAYS be checked and corrected corresponding to specific application requirements. Be aware that the Softune Workbench monitor debugger is only able to debug code located in RAM! It is not possible to debug code located in Flash memory!
FLEXRAY-FPGA-EVA-KIT-369 Chapter 9 Silk-Plots of the boards
FMEMCU-UG-910011-10 - 66 - © Fujitsu Microelectronics Europe GmbH
9 Silk-Plots of the boards
9.1 Silk-Plot of CPU369 board
Figure 14: CPU369 board: Silk-plot
FLEXRAY-FPGA-EVA-KIT-369 Chapter 9 Silk-Plots of the boards
© Fujitsu Microelectronics Europe GmbH - 67 - FMEMCU-UG-910011-10
9.2 Silk-Plot of FPGA Main Board
Figure 15: Main Board Silk-Plot
FLEXRAY-FPGA-EVA-KIT-369 Chapter 9 Silk-Plots of the boards
FMEMCU-UG-910011-10 - 68 - © Fujitsu Microelectronics Europe GmbH
9.3 Silk-Plot of FlexRay Daughter Board 1
Figure 16: Daughter Board 1 Silk-Plot
FLEXRAY-FPGA-EVA-KIT-369 Chapter 10 Related Products
© Fujitsu Microelectronics Europe GmbH - 69 - FMEMCU-UG-910011-10
10 Related Products
< “FlexRay-FPGA-Eval-Kit-369” Evaluation board for FlexRay
< MB2198-01 Emulator debugger main unit
< MB2198-10 DSU cable (not included in main unit)
< MB2197-120 Evaluation chip adapter board
< FR360-PROBE-160 Emulator probe adapter for package FPT-160P-M15
< MB91FV360G Evaluation chip for MB91360 series
< MB91F369GA Flash-Microcontroller
< NQPack160SE Socket for package FPT-160P-M15 (Tokyo Eletech Corp. www.tetc.co.jp/e_tet.htm)
< HQPack160SE Header for FPT-160P-M15
FLEXRAY-FPGA-EVA-KIT-369 Chapter 11 Appendix
FMEMCU-UG-910011-10 - 70 - © Fujitsu Microelectronics Europe GmbH
11 Appendix
11.1 Figures Figure 1: LED lightning after power-on................................................................................... 9 Figure 2: CPU369 default Jumper setting............................................................................. 10 Figure 3: FPGA-board jumper setting................................................................................... 10 Figure 4:FlexRay Evaluation kit configuration ...................................................................... 17 Figure 5: Power Connector (J30) (EIAJ RC5320A Type5) .................................................. 35 Figure 6: 9-pin D-Sub male Connector (Top View)............................................................... 35 Figure 7: JTAG Connector J6 (TOP View) ........................................................................... 40 Figure 8: Pin Layout of the 96-polar DIN Connector............................................................. 41 Figure 9: Pin Layout of the 48-pin DIN Connector ................................................................ 42 Figure 10: CPU369 board: Pin Assignment of Peripheral Jumpers ...................................... 49 Figure 11: CPU369 board: Serial Interface Connector P1 .................................................... 50 Figure 12: Softune Workbench main window ....................................................................... 52 Figure 13: SWB Debugging window..................................................................................... 61 Figure 14: CPU369 board: Silk-plot...................................................................................... 66 Figure 15: Main Board Silk-Plot............................................................................................ 67 Figure 16: Daughter Board 1 Silk-Plot.................................................................................. 68
11.2 Tables Table 1: Available boards..................................................................................................... 18 Table 2: FlexRay board power supply jumper settings ......................................................... 19 Table 3: FlexRay main board, reset settings ........................................................................ 20 Table 4: FlexRay main board, BUS Switch........................................................................... 20 Table 5: Flexray board RS485 Bus Driver device jumper settings (Ach) .............................. 21 Table 6: FlexRay board: Bus Driver device jumper settings for daughter board 2 (Ach) ....... 23 Table 7: FlexRay board RS485 Bus Driver device jumper settings (Bch) ............................. 24 Table 8: Bus Driver device jumper settings for daughter board 2 (Bch)................................ 26 Table 9: Reserved Switches................................................................................................. 27 Table 10: FPGA operation mode setting .............................................................................. 27 Table 11: FlexRay Evaluation Daughter Board: FPGA configuration jumper ........................ 28 Table 12: FlexRay Main board: Power supply check pins .................................................... 29 Table 13: FPGA Main board: Mon 1 (J54) Connector (Bus I/F) pins..................................... 30 Table 14: FPGA Main board: Mon 2 (J55) Connector (Bus I/F) pins..................................... 32 Table 15: FPGA Main board: Mon 3 (J56) Connector (Bus I/F) pins..................................... 32
FLEXRAY-FPGA-EVA-KIT-369 Chapter 11 Appendix
© Fujitsu Microelectronics Europe GmbH - 71 - FMEMCU-UG-910011-10
Table 16: FlexRay daughter board 1: Power supply monitor pins......................................... 33 Table 17: FlexRay daughter board 1: IO Port Monitor (J15) pins.......................................... 33 Table 18: FlexRay daughter board 1: J16 pins..................................................................... 34 Table 19: Daughter Board 1 Connectors J2, J3, J4, J5 ........................................................ 38 Table 20: Daughter Board 2 Connectors J6, J20.................................................................. 39 Table 21: Daughter Board 2 Connectors J7, J21.................................................................. 40 Table 22: CPU Board Connector J50 (96-pin DIN Connector).............................................. 41 Table 23: CPU Board Connector J51 (48-polar DIN Connector) .......................................... 42 Table 24: CPU369 board: Power supply Switch setting (SW1)............................................. 44 Table 25: CPU369 board: Power Supply Jumper settings.................................................... 45 Table 26: CPU369 board: Operation mode settings ............................................................. 45 Table 27: CPU369 board: UART Jumper setting.................................................................. 45 Table 28: CPU 369 board: reserved UART settings ............................................................. 46 Table 29: CPU 369 board: external Flash CS setting ........................................................... 46 Table 30: CPU369 board: Hardware standby jumper setting................................................ 46 Table 31: CPU369 board: Clock selection jumper ................................................................ 46 Table 32: CAN interface Jumper (JP23, JP24)..................................................................... 47 Table 33: CPU369 board: MCU module URAT / LED selection............................................ 47 Table 34: CPU369 board: power supply header................................................................... 48 Table 35: CPU369 board: Pin Assignment of Peripheral Jumpers (JH1, JH2)...................... 49
-- END --