I'm using WinXP x64. The strange thing is that xc2.local works with the original firmware in the flash; it ought to work with the application running from RAM.
I've just written the built version to flash. That won't work with xc2.local, but is OK with 169.254.42.23.
XC-2 demo application won't run
-
- XCore Expert
- Posts: 546
- Joined: Thu Dec 10, 2009 10:41 pm
- Location: St. Leonards-on-Sea, E. Sussex, UK.
-
- XCore Addict
- Posts: 146
- Joined: Thu Dec 10, 2009 10:17 pm
What does xc2.local resolve to?leon_heller wrote: I've just written the built version to flash. That won't work with xc2.local, but is OK with 169.254.42.23.
try
ping xc2.local
and note the IP address. Prolly different from the one you got working.
The intial and later runs disagreed on the IP address for the XC-2.
If you can flush the local dns cache (sorry - no clue on windoze) then it will probably start working again automagically.
-
- XCore Expert
- Posts: 546
- Joined: Thu Dec 10, 2009 10:41 pm
- Location: St. Leonards-on-Sea, E. Sussex, UK.
I used my other XC-2 (with the original flash) and found that xc2.local is 169.254.19.16. I tried xc2.local in an IP address converter I found on-line, but it couldn't be resolved, which is rather strange. ping xc2.local gave me 169.254.19.16, as expected. It's different from the value for my other board with the rebuilt firmware, of course, which has caused all this faffing about.
-
- XCore Addict
- Posts: 146
- Joined: Thu Dec 10, 2009 10:17 pm
Each board is distinct - it has a different MAC address (burnt into the MAC controller, but overrideable, probably). So if you get one to respond as xc2.local, then the other won't until you have flushed the local DNS (don's ask me) or power cycled the PC.leon_heller wrote:I used my other XC-2 (with the original flash) and found that xc22..local is 169.254.19.16. I tried xc2.local in an IP address converter I found on-line, but it couldn't be resolved, which is rather strange. ping xc2.local gave me 169.254.19.16, as expected. It's different from the value for my other board with the rebuilt firmware, of course.
That address will not resolve using anything online. The entry linking xc2.local with an IP address is a purely local thing, and transient.
Summary.
xc2.local is just an alias (and entry) for an IP address.
That alias is established on first use of the device, until you power cycle the machine(s) that are storing the entry.
You are asking for trouble if you switch boards and expect an alias to resolve to the new board.
Pesonally, I'd stick with the IP address, and if I was writing code, I'd force manual IP allocation, and be done with it.
Best,
--r.
-
- XCore Expert
- Posts: 546
- Joined: Thu Dec 10, 2009 10:41 pm
- Location: St. Leonards-on-Sea, E. Sussex, UK.
Thanks, Russ. I tried powering the PC down, but xc2.local still didn't work with the XC-2 with the rebuilt firmware; there must be something else going on.
-
- XCore Expert
- Posts: 546
- Joined: Thu Dec 10, 2009 10:41 pm
- Location: St. Leonards-on-Sea, E. Sussex, UK.
I tried Wireshark yesterday, but couldn't see the XC-2 traffic. I just tried it again and found I had been looking at the wrong device. I can see the XC-2 packets now, using the XC-2 with the original code in flash. I'll try my other XC-2 with the updated code. Wireshark does look like an excellent tool for for use with this stuff.
-
- Respected Member
- Posts: 279
- Joined: Fri Dec 11, 2009 1:34 pm
Leon,
Have you tried the advice from the Quick Start guide?
https://www.xmos.com/download/public/XM-000204-UG-1.pdf
Have you tried the advice from the Quick Start guide?
https://www.xmos.com/download/public/XM-000204-UG-1.pdf
X2LEDB LED lights up but browser cannot load http://xc2.local
- Try installing Bonjour for Windows, available from: http://apple.com/downloads.
- Disable any firewall you may have running.
- Configure your PC and XC-2 to use a static IP address. See section 2.2.
-
- XCore Expert
- Posts: 546
- Joined: Thu Dec 10, 2009 10:41 pm
- Location: St. Leonards-on-Sea, E. Sussex, UK.
I remember seeing that, now; I'd forgotten about it.
I tried Bonjour, but it just tries to find a printer which I haven't got on this laptop. It didn't solve the problem. Corin didn't think that there was any round it, and that seemed to be confirmed by some posts on the Microsoft forum - HP suggested to one user with a similar problem that he reformatted his HD! I'll try a static IP address.
I tried Bonjour, but it just tries to find a printer which I haven't got on this laptop. It didn't solve the problem. Corin didn't think that there was any round it, and that seemed to be confirmed by some posts on the Microsoft forum - HP suggested to one user with a similar problem that he reformatted his HD! I'll try a static IP address.
-
- XCore Addict
- Posts: 146
- Joined: Thu Dec 10, 2009 10:17 pm
Hey Leon,
Sorry to see you are still struggling.
Can I ask why you still want to use xc2.local to address the board, rather than the IP address? I understand there is a convenience factor, but local dns is a magical thing, and you strike me as a down-to-earth guy.
I'd go with the IP address, and start having fun.
--r.
Sorry to see you are still struggling.
Can I ask why you still want to use xc2.local to address the board, rather than the IP address? I understand there is a convenience factor, but local dns is a magical thing, and you strike me as a down-to-earth guy.
I'd go with the IP address, and start having fun.
--r.
-
- XCore Expert
- Posts: 546
- Joined: Thu Dec 10, 2009 10:41 pm
- Location: St. Leonards-on-Sea, E. Sussex, UK.
I just wanted to get my second board with the recompiled code working the same as the first, unaltered one, with xc2.local. I'll give that up as it doesn't look as though it is feasible.
I've tried assigning static address 192.168.0.101 to my PC but I can't get it to work. I think I need to do some more reading.
With a little help from Russ I got it working with the static IP address.
I've tried assigning static address 192.168.0.101 to my PC but I can't get it to work. I think I need to do some more reading.
With a little help from Russ I got it working with the static IP address.