Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
XPC Target Boot configuration

Subject: XPC Target Boot configuration

From: Salim

Date: 15 Jul, 2013 18:42:09

Message: 1 of 7

I have two desktop PC. On the host PC, there is matlab2013a.
Connection type: TCP/IP.
 On the target PC I use a network adapter that has RTL8169SC chipset (compatible with 2013a).
Two PC are connected to each other with crossover cable.
Before create boot cd, I started the target pc with windows7 for learning IP number.
In cmd.exe using ipconfig/all I learned ip, subnet, etc.
I created a boot CD on the host pc using the ip address that I learned before.
I think target PC starts normally as I see the blue screen without error.
But when I intend to connect to target PC, I see an error on the host screen that writes check your communication settings.
I also create a boot CD without graphics. I do not see any error message and the writings that is shown on black screen is normal.
So what ca be the problem?

Subject: XPC Target Boot configuration

From: Gordon Weast

Date: 15 Jul, 2013 19:44:17

Message: 2 of 7

Salim,

When Windows boots on the target machine, it will use DHCP to get a
dynamically assigned IP address from your DHCP server. Even if you've
assigned a static address in Windows on the target machine, you don't
need the same one when you boot the xPC Target kernel. These are
unrelated and not a function of the hardware.

When the xPC Target kernel boots, it uses the IP address configured into
it by xPC Explorer.

Since you're using a crossover cable between the two boxes, that means
you have a second Ethernet card in the host machine. You need to set
that one to an IP address in the same range as the one you assign to the
target.

I generally use a simple non-routable address on the second host adapter
and then assign an address in the same range to the target.

Sample config:

     host machine:
        Main Ethernet card: set for DHCP from your corporate network.
It picks
        up IP address and subnet mask from DHCP.

        Second Ethernet card:
            IP address = 10.10.10.10
            Subnet mask = 255.255.255.0

Note that 10.x.y.z for any x y or z is a non-routable address. Those
packets won't go through a router.
You can also use 192.168.y.z for any y or z. Your DHCP addresses could
be in one of these non-routable address groups where all the machines
are using NAT to hide behind a single externally visible address. If
so, use the other one for the target.

     target machine:
            IP address = 10.10.10.11
            Subnet mask = 255.255.255.0

Gordon Weast
xPC Target Development
MathWorks

Salim wrote:
> I have two desktop PC. On the host PC, there is matlab2013a. Connection
> type: TCP/IP.
> On the target PC I use a network adapter that has RTL8169SC chipset
> (compatible with 2013a). Two PC are connected to each other with
> crossover cable. Before create boot cd, I started the target pc with
> windows7 for learning IP number. In cmd.exe using ipconfig/all I learned
> ip, subnet, etc.
> I created a boot CD on the host pc using the ip address that I learned
> before. I think target PC starts normally as I see the blue screen
> without error. But when I intend to connect to target PC, I see an error
> on the host screen that writes check your communication settings.
> I also create a boot CD without graphics. I do not see any error message
> and the writings that is shown on black screen is normal. So what ca be
> the problem?

Subject: XPC Target Boot configuration

From: Salim

Date: 15 Jul, 2013 21:08:07

Message: 3 of 7

Firstly, Thank you very much Gordon for your clear and detailed message.
MY host PC has an onboard network adapter. I do not have second one. But on the target pc, there are two network adapter, one of them is onboard and the second one is a network card which is supprted by XPC Target according to the mathworks' list (RTL8169SC). So I use it.
In MATLAB Help, it is said that both computers must have static IP address when using crossover cable.
So as you mentioned, I assigned static values for host PC:
IP address: 10.10.10.10
Subnet mask: 255.255.255.0

In the XPC Explorer, I assigned an IP address and subnet mask in this range.
Target PC Settings on XPC Explorer:
IP: 10.10.10.11
Subnetmask: 255.255.255.0
Port: 22222
Gateway: Empty
Target Driver: (Actually I should select R8168. But when I select it, target pc gives an error similar to : Ethernet card type is not valid. So I select it as Auto).
USB support and Graphics Mode boxes are checked.
With these configuration settings I created a Boot CD.
But when I intended to boot target PC, its screen did not appear. I see only a black screen.
I recreated a boot CD with unchecked Graphics Mode. On the target PC screen, I can see the values that assigned in Xplorer. And I do not see any error message.
But there is a small detail here;
Board: I8254x
As I mentioned above, I select it as Auto. But it seems as I8254x.
According to the XPC Target Supperted Ethernet Chipset List, it seems below the Driver: R8168 (Realtek Gigabit Ethernet Series) title.

 

Subject: XPC Target Boot configuration

From: Gordon Weast

Date: 16 Jul, 2013 13:09:35

Message: 4 of 7

Salim,

It sounds like the onboard Ethernet adapter is in the I8245x group.
Have you tried plugging the cable into the builtin port?

If you're still having trouble, then you should contact MathWorks tech
support. It will get the attention of our group but we may need more
information.

Gordon Weast
xPC Target Development
MathWorks

Salim wrote:
> Firstly, Thank you very much Gordon for your clear and detailed message.
> MY host PC has an onboard network adapter. I do not have second one. But
> on the target pc, there are two network adapter, one of them is onboard
> and the second one is a network card which is supprted by XPC Target
> according to the mathworks' list (RTL8169SC). So I use it.
> In MATLAB Help, it is said that both computers must have static IP
> address when using crossover cable. So as you mentioned, I assigned
> static values for host PC:
> IP address: 10.10.10.10
> Subnet mask: 255.255.255.0
>
> In the XPC Explorer, I assigned an IP address and subnet mask in this
> range. Target PC Settings on XPC Explorer:
> IP: 10.10.10.11
> Subnetmask: 255.255.255.0
> Port: 22222
> Gateway: Empty
> Target Driver: (Actually I should select R8168. But when I select it,
> target pc gives an error similar to : Ethernet card type is not valid.
> So I select it as Auto).
> USB support and Graphics Mode boxes are checked. With these
> configuration settings I created a Boot CD. But when I intended to boot
> target PC, its screen did not appear. I see only a black screen. I
> recreated a boot CD with unchecked Graphics Mode. On the target PC
> screen, I can see the values that assigned in Xplorer. And I do not see
> any error message. But there is a small detail here;
> Board: I8254x
> As I mentioned above, I select it as Auto. But it seems as I8254x.
> According to the XPC Target Supperted Ethernet Chipset List, it seems
> below the Driver: R8168 (Realtek Gigabit Ethernet Series) title.
>

Subject: XPC Target Boot configuration

From: Salim

Date: 16 Jul, 2013 15:06:06

Message: 5 of 7

Yes I also tryed the onboard ethernet adapter.
I do not think that onboard Ethernet adapter is in that group. As I disabled the onboard adapter from the BIOS when I use the ethernet card that I pluged.
Today, I changed the desktop PC that I use as a Target PC. And I also removed the compatible ethernet card (RTL8169SC) from the old Target and I have assembled it on to new Target machine.
Selected values on the XPC Explorer;
IP: 10.10.10.11
Subnet Mask: 255.255.255.0
Port:Empty
Gateway:Empty
Target Driver: R8168
USB Support, Multicore CPU, and Graphics Mode boxes are checked.
Boot mode: CD.
When I boot the Target with this CD, I can see the Target PC blue screen.
I tryed to connect to the Target PC from the Host machine, it gives an error like this;
'Target PC1' Unable to connect. Check communication settings.
On the Target PC's blue screen I see the values that I set from the XPC Explorer (including, Board: R8168).

Subject: XPC Target Boot configuration

From: Salim

Date: 17 Jul, 2013 15:02:11

Message: 6 of 7

Dear Gordon,
I found a bug report in mathworks.com.
Can this be the reason for me? or it is fixed in 2013a?
Below, I attached the description of bug.

784428
Summary
xpctargetping fails when a RealTek Gigabit Ethernet card is used for host-target communication.

Description
Hosts cannot communicate correctly with xPC targets via a RealTek Gigabit Ethernet card. Certain Ethernet cards are not properly initialized because the PHY registers on the Ethernet cards take a very long time to modify (especially those with device ID 0x8167).

Subject: XPC Target Boot configuration

From: Gordon Weast

Date: 17 Jul, 2013 18:03:09

Message: 7 of 7

Please contact MathWorks tech support. The person who worked on the bug
will be contacted for more information if needed.



Salim wrote:
> Dear Gordon, I found a bug report in mathworks.com. Can this be the
> reason for me? or it is fixed in 2013a?
> Below, I attached the description of bug.
> 784428
> Summary
> xpctargetping fails when a RealTek Gigabit Ethernet card is used for
> host-target communication.
>
> Description
> Hosts cannot communicate correctly with xPC targets via a RealTek
> Gigabit Ethernet card. Certain Ethernet cards are not properly
> initialized because the PHY registers on the Ethernet cards take a very
> long time to modify (especially those with device ID 0x8167).

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us