You are here

FlexRay Development Platforms | Cypress Semiconductor

FlexRay Development Platforms

Last Updated: 
Apr 19, 2016

 FlexRay Starter Kit |  FAQ |  Bug history |


FAQ about Cypress FlexRay Evaluation kit

  1. PC serial writer (FLASH MCU Programmer)
  2. Softune Workbench
  3. ICE environment
  4. COMMSTACK
  5. Power supply system
  6. Sample program "Gateway"

1. PC serial writer (FLASH MCU Programmer)

Question 1: The program cannot be downloaded.

Phenomenon

When I clicked "Full Operation" of FLASH MCU Programmer for downloading the program using the FLASH MCU Programmer, the dialog box saying "Please push RESET BUTTON on user board" appeared. I pressed the RESET button, but program downloading did not start and the operating condition stayed the same.

Answer

A wrong COM port may be specified. Check the port number that is connected to the Starter Kit, and change the setting of the COM port number on the FLASH MCU Programmer accordingly.
When the OS is Windows XP, the port number on the PC for debugging can be checked by selecting Windows, Start, Control Panel, and System. Then, check the port (COM and LPT) in the Device Manager in the Hardware tab.
For changing the settings of FLASH MCU Programmer, follow the procedure described in the following figures.

Open the "Set Environment" in the Option, and check whether the port number is matched with the COM port in used on the PC for debugging. If not, correct it.
COM1 to COM8 are available.

Set environment
Set environment

2. Softune Workbench

Question 1: Because the COM port on the PC for debugging is not COM1, I want to change the setting on the Softune Workbench side.

Phenomenon

The detected COM port on the PC for debugging is not COM1. How can I change the setting of Softune Workbench?
[When I select "Start debugging," an error "*** E4601S: Communication error occurred. "(10)" appears.]

Answer

The connected COM port in the setting of debug (SUP file) of Softune Workbench can be changed. The following shows an example of evaluation procedure using the monitor debugger "standalone," which is a sample program provided with Fujitsu FlexRay Starter Kit.
When the OS is Windows XP, the port number on the PC for debugging can be checked by selecting Windows, Start, Control Panel, and System. Then, check the port (COM and LPT) in the Device Manager in the Hardware tab.

1: After the work space file is opened, select a node, and select MONDEB for the debugger evaluation procedure.
2: Make the SUP file settings. Right-click the sup file in Debug as shown in the following figure, and select "Change the settings."

Select the sup file

3: When the setup wizard starts, select "Monitor Debugger" by the debugger type to go to the window shown below.
In the port name in Details, COM1 to COM4 can be selected.

Select the COM port

Question 2: When I start debugging, the communication error E4601S occurs.

Phenomenon

When I select "Start debugging" in the "Debug" menu on Softune Workbench, an error "*** E4601S: Communication error occurred. "(10)" appears.

Answer

Initialization of the board may be required. Power on the board again, or press the reset button, then start debugging.
In other cases, the COM port of the PC for debugging may not match with the port on Softune Workbench. For the procedure for checking and changing the COM port, click here.

Question 3: I select "Stop" in "Debug" in the Softune Workbench menu, but the program does not stop.

Phenomenon

After I downloaded the program on Softune Workbench, while the program is executed, I tried to stop the program by selecting the "Stop" in the "Debug" menu, but the program did not stop. Why?

Answer

FlexRay Starter Kit (MB2005-01) cannot stop the program by selecting the "Stop" in the "Debug" menu on Softune Workbench. To stop the execution of the program, press the "USER0" button on the CPU369 board.


3. ICE environment

Question 1: What is the EVA chip with built-in FLASH for ICE connection like?

Phenomenon

What is the EVA chip (MB91FV360GA) for ICE connection that is used for connecting ICE to FlexRay Starter Kit?

Answer

It is an EVA chip containing FLASH memory. Normally an EVA chip does not contain FLASH memory. However, for the evaluation using an emulator, the memory space as a virtual ROM area for storing the user program is needed. For the purpose of it, the FLASH memory is provided for the EVA chip with built-in FLASH.

Question 2: When I start debugging during the evaluation using ICE, the program does not start.

Phenomenon

When ICE is connected to FlexRay Starter Kit for evaluation to execute "Debug start" in the "Debug" menu on Softune Workbench, the program does not start. What is the possible cause?

Answer

The Flash memory contained in the EVA chip with built-in Flash of MB91FV360 Series, is used as virtual ROM area. In other words, the program that is supposed to be written to the ROM is written in the Flash area in the EVA chip for use. Accordingly, before executing the program, it is necessary to load the program to the Flash. Execute "Download the target file" in the "Flash Memory2 from Softune Workbench menu.

Question 3: After the program is loaded into FLASH, when the program is executed, the execution is stopped at "H'001105E."

Phenomenon

During the evaluation executed with ICE connected to FlexRay Starter Kit, after the target program is downloaded and the program is loaded into FLASH, when the program is executed, the execution is always stopped at "H'001105E." Why does this happen?

Answer

The EVA chip with built-in FLASH (MB91F360GA) first executes the boot program automatically. This program is supposed to be contained in all EVA chips for FLASH writing. To execute the program for evaluation (application program), execute "MCU reset" in the "Debug" menu on Softune Workbench. The address is changed to "H'50000" and the application program is available for operation.


4. COMMSTACK

Question 1: What is COMMSTACK?

Phenomenon

The CD-ROM for sample program that is supplied with FlexRay Starter Kit (MB2005-01) contains COMSTACK. What is this?

Answer

COMSTACK that is stored in the CD-ROM for sample program is a driver of FlexRay, and it is provided as a library by DECOMSYS. The COMSTACK library belongs to DECOMSYS.

Question 2: When I used Softune Workbench for compilation, an error that indicates that "dcsdriver.h" is not found occurs.

Phenomenon

When I executed "Compile" in the "Project" menu on Softune Workbench, an error that indicates that "dcsdriver.h" is not found occurs. Please advise how to handle this.

Answer

Use the CD-ROM for sample program that is supplied with FlexRay Starter Kit (MB2005-01), and install the COMSTACK library according to "FlexRay First Step Guide Application Note." The above error also occurs if the folder for installation is incorrect.


5. Power supply system

Question 1: Can only J30 be used for power supply system?

Phenomenon

Can only the terminal J30 on the FlexRay main board be used for power supply to FlexRay Starter Kit (2005-01)?

Answer

As you indicated, the terminal J30 on the main board of FlexRay is supposed to be used.

Question 2: What is the polarity of the power supply?

Phenomenon

What is the polarity of the power supply terminal J30 on the FlexRay Starter Kit (MB2005-01)?

Answer

The polarity of the power supply terminal J30 on FlexRay Starter Kit (MB2005-01) is described by using the AC adapter socket which is to be inserted to the power supply terminal J30 on FlexRay main board as shown below.

The polarity of AC adapter socket is as shown below. It is the same as on the power supply terminal J30.

The power supply terminal J30

Terminal inside pin: Vcc
Outside terminal: GND


6. Sample program "Gateway"

Question 1: What are the communication requirements when using the sample program "Gateway"?

Phenomenon

Please explain about CAN and FlexRay communication requirements for the "Gateway" program that is stored in the CD-ROM for sample program supplied with FlexRay Starter Kit (2005-01).

Answer

The communication requirements (default) of CAN and FlexRay are listed in the following tables.

Settings of CAN on the sample program "Gateway"

Item Value Remarks
Communication speed 100kbps  
Operation clock 16MHz  
Bit time 20TQ  
Sample point position 70%  
Frame data for CAN sending and receiving
uint32_t Id; CAN ID
uinit8_t Date[8]; CAN payload data
uinit8_t Flags; Frame mode flag
uinit8_t Length; Data length

Settings of FlexRay on the sample program "Gateway"

Item Value Remarks
Communication speed 10Mbps External clock is 80 MHz
Maximum number of nodes 15 nodes  
Number of static slots 28 60-byte payload data
Number of dynamic slots 0  
Sending and receiving slot ID in use 14, 15 Both Ach and Bch are use
Communication cycle length 3msec  
FlexRay sending and receiving payload data
uint32_t Id; CAN ID
uint8_t Data[8]; CAN payload data
uint8_t Flags; Frame mode flag
uint8_t Length; Data length

(The contents of the CAN receiving and sending frame data are loaded on the payload without any changes.)

Question 2: Please give us the operation outline of the program handling the sending and receiving data.

Phenomenon

In the "Gateway" program that is stored in the CD-ROM for sample program supplied with FlexRay Starter Kit (2005-01), please give us the operation outline of the program that change the data that is received as CAN signal to as FlexRay signal to send.

Answer

The program operation outline is described below.

Outline of receiving CAN signals and sending FlexRay signals

  • With an interrupt of CAN reception, the receiving processing of CAN signals is performed.
  • The timer interrupt processing is performed as listed below to send FlexRay signals.
    • Obtain the data from the CAN receiving frame data.
    • Set the obtained data as the FlexRay payload data.
    • Send FlexRay signal by using COMSTAK API.

If no CAN signal is input, however, COMSTACK API is called by specifying the top data pointer of the CAN receiving frame data, so the FlexRay communication is performed even if there is not CAN receiving data.

Outline of receiving FlexRayCAN signals and sending FlexRay signals

  • Perform the following with the timer interrupt processing.
    • Use COMSTACK API to obtain the FlexRay receiving payload data.
    • Set the FlexRay receiving payload data to the CAN sending frame data.
  • With the CAN sending interrupt processing, send the sending frame data by setting it to the CPU I/O register.
    (There is an Enable processing that can activate the CAN sending interrupt processing only when there is FlexRay receiving data.)

 1     2     3     

 

This content contains information on Cypress products that have been migrated from Spansion's website in conjunction with our merger. Although marked with the name of the company that developed the material (Spansion or Fujitsu), Cypress continues to offer the content to our customers. There is no change to this information as a result of this migration. Future revisions will occur when appropriate, and changes will be noted in the revision history.