Flexray

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flexray

2,877 Views
AKorn
Contributor I
Hello,
We have purchased several SK-S12XDP512-A evaluation boards
and several Freescale Generic FlexRay Daughter Cards
(FRDC) FLXRAYIPMFR4300.
 
The provided Flexray demo code does not work: when the demo
code is running, both flexray line remains high
and do not change. Also, for instance if I try to read MVR
register from MFR4300, the returned value is not 0x3535 (version number).
Please let me know how we can run the demo code on
SK-S12XDP512-A evaluation board and (FRDC) FLXRAYIPMFR4300,
what needs to be checked or added to the demo code.

Thanks,
0 Kudos
4 Replies

521 Views
Alban
Senior Contributor II
Hello,

There is a common error I have seen with these boards I have never used.
When you look in the debugger where you should see the memory of the daughter board (FRDC) you see an echo of the address as values.

The reason is that the S12X has not been enabled for expanded mode.

Check if external signals are set-up properly.

Flexray is quite new and reserved for Automotive under license (for now).
Thereofre I doubt many people here don't even know what it is about.
A Service Request seems the more efficient way for you.

Cheers,
Alban.
0 Kudos

521 Views
AKorn
Contributor I
Alban,
 
Thanks for the reply.
 
Could you please help me out with the steps that are needed to
run flexray demo code on SK-S12XDP512-A and (FRDC) FLXRAYIPMFR4300?
I guess this would be also helpful for all people who deal with flexray boards.

Please correct my list of steps:
1. Attach each FRDC to its SK-S12XDP512-A.
2. Connect flexray channel connector FR1 on the first FRDC
to the other FR1 on the other FRDC using two wires.
3. FDRC Jumpers: all jumpers are on except:
JG1 set to +5V,
JG14 and JG15 set to connect pins 1 and 2
4. FDRC DIP switches:
SW1: Need to activate Hardware Reset
1 - off // Ext. reset
2 - off // Ext. reset. This duplictaes the switch 1???
3 - ON  // Hardware reset
4 - off // Manual reset
SW2: Need to select S12 synchronous memory interface:
1 - off // IF_SEL1 high is off
2 - ON // IF_SEL1 low is on,  IF_SEL1=LOW
3 - off // CHICLK_CC high is off 
4 - ON // CHICLK_CC low is on, dont care about CHICLK_CC
5 - ON // IF_SEL0 high is on
6 - off // IF_SEL0 low is off,  IF_SEL1=HIGH
7 - off // Unconncted
8 - off // dont care about CHICLK_EN
SW3: We don't need to set up clock output, so don't care about these
1 - off // DBG2/CLK_S0 high is off
2 - ON // DBG2/CLK_S0 low is on
3 - off // BSEL1#/DBG0/CLK_S1 high is off 
4 - ON // BSEL1#/DBG0/CLK_S1 low is on 
5 - off // BSEL0#/DBG1/CLK_S0 high is off 
6 - ON  // BSEL0#/DBG1/CLK_S0 low is on 
7 - off // DBG3/CLK_S1/BGE2 high is off
8 - ON  // DBG3/CLK_S1/BGE2 high is on
5. Install CodeWarrior
6. Install CW Components v4.5
7. Complile and program the available demo project
cfg1_node1.mcp for the first boards.
8. Complile and program the available demo project
cfg1_node2.mcp for the second boards.
 
I guess at this point we should be to detect flexray messages
in the static segment by using a scope on the FR connectors.
I saw just both lines on FR connector were high.
When I modified the code in order to read a version register MVR,
the returned value was 0x1F1F instead of 0x3535.
 
Thank you,
Alex
0 Kudos

521 Views
Alban
Senior Contributor II
Hi Alex,
 
I'm sorry but I don't have the slightest clue.
I only touched them a couple of times and don't have any board now.
The status of jumpers should be reported in the PDF of the MFR4300 FRDC.
 
The other things that is coming back to my mind is that a FRDC connector on the first SofTec boards (same ref you have) was put the wrong way round. But it should have been obvious if you couldn't plug the daughter board.
 
Alban.
0 Kudos

521 Views
vikram_iyengar
Contributor I
Akorn

*Did you get ahead with the project/ fix the MNR problem ?

*In addition to the steps you have listed, you need to connect the GROUNDS of both boards.

When I tried to use a MFR4200 with a S12X eval board that you have, I couldn't read the MNR as expected

The signals (Addr, data and chip select)on the S12X side look correct to me.
I have sent the FRDC board for replacement (with a 4300 FRDC) as I had some other h/w problems with it.

Have you had a chance to use the S12X JTAG debugger ?

Cheers,
Vi

Message Edited by _Alien_ on 2007-02-0110:46 PM

0 Kudos