02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2<br />

Setup and Startup<br />

Download Configuration<br />

It is possible that the NetROM is not correctly configured for downloading code to<br />

the target. Make sure you can download and run a simple piece of code (for<br />

example, to blink an LED — this code should be something simpler than a<br />

complete VxWorks image).<br />

2<br />

Initialization<br />

If you can download code and execute it, the next possibility is that the board<br />

initialization code is failing. In this case, it never reaches the point of trying to use<br />

the NetROM for communication. The code in target/src/config/usrWdb.c makes a<br />

call to wdbNetromPktDevInit( ). If the startup code does not get to this point, the<br />

problem probably lies in the BSP. Contact the vendor that supplied the BSP for<br />

further troubleshooting tips.<br />

RAM Configuration<br />

If the NetROM communication initialization code is being called but is not<br />

working, the problem could be due to a mis-configuration of the NetROM. To test<br />

this, modify the file wdbNetromPktDrv.c. Change the following line:<br />

to:<br />

int wdbNetromTest = 0;<br />

int wdbNetromTest = 1;<br />

NOTE: There are two versions of wdbNetromPktDrv.c. The one for the 400 series<br />

is located in target/src/drv/wdb and the one for the 500 series is located in<br />

target/src/drv/wdb/amc500. Be sure to edit the appropriate one.<br />

When you rerun VxWorks with this modification, the wdbNetromPktDevInit( )<br />

routine attempts to print a message to NetROM debug port. The initialization code<br />

halts until you connect to the debug port (1235), which you can do by typing:<br />

% telnet NetROM_IPaddress 1235<br />

If the debug port successfully connects, the following message is displayed in the<br />

telnet window:<br />

WDB NetROM communication ready<br />

43

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!