Page 1
Getting Started NXHX 52-JTAG Hilscher Gesellschaft für Systemautomation mbH www.hilscher.com DOC131004GS02EN | Revision 2 | English | 2013-11 | Released | Public...
Using the EtherCAT Slave Loadable Firmware ............8 2.2.1 Loadable Firmware and Second Stage Bootloader ..........9 2.2.2 Downloading SSBL and LFW to Serial Flash of NXHX 52-JTAG Board .....9 2.2.3 Using cifX Toolkit....................10 Using the Application Examples on the Product DVD ..........10 2.3.1...
Page 3
Using Bootwizard to Create an Executable Binary Firmware File from ELF File..29 5.5.1 Overview......................29 5.5.2 Prerequisites.......................29 5.5.3 Step-by-Step Instructions ...................29 Downloading Executable Binary Image to Serial Flash of the NXHX 52-JTAG via USB ..........................33 5.6.1 Overview......................33 5.6.2 Prerequisites.......................33 5.6.3 Step-by-Step Instructions ...................34 Downloading NXF Firmware to Serial Flash of the NXHX 52-JTAG via USB...44...
Introduction 4/89 1 Introduction About this Document 1.1.1 Description of the Contents This Getting Started Guide describes typical use cases for the Hilscher NXHX 52-JTAG Development Board. 1.1.2 List of Revisions Index Date Chapter Revisions 2013-10-25 Created 2013-11-13 Settings for Parallel Dual-Port Memory 16 Bit Mode at Switch S2 updated according to hardware revision 3.
There is no entitlement to revisions of delivered documents. The manual delivered with the product applies. Hilscher Gesellschaft für Systemautomation mbH is not liable under any circumstances for direct, indirect, incidental or follow-on damage or loss of earnings resulting from the use of the information contained in this publication.
6/89 1.2.3 Exclusion of Liability The software was produced and tested with utmost care by Hilscher Gesellschaft für Systemautomation mbH and is made available as is. No warranty can be assumed for the performance and flawlessness of the software for all usage conditions and cases and for the results produced when utilized by the user.
2 Descriptions of the Use Cases Overview The product DVD of the NXHX 52-JTAG board provides a loadable EtherCAT slave (V4.2) firmware file with limited IO data exchange (2 Bytes), which can be downloaded to the NXHX board. The NXHX board can thus be operated as slave device in an EtherCAT network for testing and evaluation purposes.
Important: Please note that this NETX51-BSL.bin SSBL stored in the Tools\2nd Stage Bootloader directory needs to be patched before it can be used on the NXHX 52-JTAG board. Instructions for this can be found in the README file in the root directory of the DVD.
Bootloader file, because both files are in essence executable binary images. Instructions for this are provided in the Downloading Executable Binary Image to Serial Flash of the NXHX 52-JTAG via USB section on page 33. For more detailed information about the Bootwizard, please refer to the Operating Instruction Manual netX Bootwizard, DOC070502OIxxEN, which is stored in the Documentation\4.
Device Drawing and Positions of the NXHX 52-JTAG 12/89 3 Device Drawing and Positions of the NXHX 52-JTAG Figure 1: NXHX 52-JTAG Printed Circuit Board No. in Name Description figure Host interface RJ45 Connector Ethernet interface CH1 Matrix-Label RJ45 Connector Ethernet interface CH0...
Page 13
Device Drawing and Positions of the NXHX 52-JTAG 13/89 No. in Name Description figure Drilling for attaching fieldbus interface to X6 Boot strap options Power On Reset Mini-B USB connector JTAG Interface, plug connector 20 pin Host Interface Mode / Boot Mode...
14/89 4 Connecting Power Supply The NXHX 52-JTAG Development Board is powered by an external DC supply voltage of 24 V (±6V). Use the Hilscher NXAC Power adapter (part number 7930.000). Device Destruction! Use only the permissible supply voltage of 24V DC (±6V) to operate the NXHX 52-JTAG.
Waf build framework and the Eclipse IDE as tool for compiling the C source code provided on the product DVD. 5.1.2 Prerequisites NXHX 52-JTAG Product DVD. You have access to the internet (for downloading Code Sourcery). 5.1.3 Step-by-Step Instructions ...
5.5.2 Prerequisites You have installed the Hilscher netX Bootwizard application on your PC. (In the menu of the NXHX 52-JTAG product DVD, choose Software and Tools > Bootwizard to open the Tools\Bootwizard folder, then dou- ble-click bootwizard_1.3.xxxxx.x_setup.exe file.) The compiler/linker toolchain that was used to build the ELF file (i. e.
Page 31
Open the right drop-down list and select Generic SPI Flash netX51/52, 10MHz entry. Note: Because Quad SPI Flash is used on the NXHX 52-JTAG board, the setting you choose in the right drop-down list of the Source device parameter is actually of no consequence. However, any one of these entries must be selected;...
Page 32
ELF, you can follow the instructions provided in the Downloading Executable Binary Image to Serial Flash of the NXHX 52-JTAG via USB section on page 33; simply select the executable binary firmware instead of the SSBL file for download.
Manuals\Bootwizard directory of the product DVD. Note: To ensure successful download, the serial flash memory of the NXHX 52-JTAG board needs to be empty. The NXHX board is delivered with an empty serial flash memory. If you have already downloaded any file to the serial flash, use the Bootwizard application to erase it before you proceed to download the binary image.
Page 37
The SYS LED on the NXHX board (see position in Device Drawing and Positions of the NXHX 52-JTAG chapter on page 12) which up to this point has been blinking yellow (on/off) now alternates between brighter and darker yellow, indicating serial boot mode.
Page 39
Note or write down the number of the COM port (you will need the COM number in the next step), then close the Device Manager. NXHX 52-JTAG | Getting Started DOC131004GS02EN | Revision 2 | English | 2013-11 | Released | Public...
Page 40
Note or write down the number of the COM port (you will need the COM number in the next step), then close the Device Manager. NXHX 52-JTAG | Getting Started DOC131004GS02EN | Revision 2 | English | 2013-11 | Released | Public...
Page 42
Figure 35: Flashing Successful Message The SYS LED on the NXHX board (see position in Device Drawing and Positions of the NXHX 52-JTAG chapter on page 12) shows steady yellow. 10. Change boot mode and reset the NXHX board.
Page 43
Step By Step Instructions for Typical Use Cases 43/89 Push the Reset button (T1) on the NXHX board (see position Device Drawing and Positions of the NXHX 52-JTAG chapter on page 12). The executable binary image is loaded from flash memory and then runs in the internal RAM of the netX 52.
Toolkit\USB Driver directory, then double-click setup.exe file. Follow the instructions of the installation wizard) You have inserted the NXHX 52-JTAG product DVD into the DVD drive of your development PC (in order to be able to access the netHOST Device Test Application).
1. Run the Second Stage Bootloader on the NXHX board. Use the S1 switch on the NXHX board (see position in Device Drawing and Positions of the NXHX 52-JTAG chapter on page 12) to set the boot strap options to FLASH boot mode. Use the following settings:...
Page 47
Step By Step Instructions for Typical Use Cases 47/89 4. Open the netHOST Device Test Application on your PC. Insert the NXHX 52-JTAG product DVD into your local DVD drive. Use the Windows Explorer to open the directory Tools\netX Transport on the DVD.
Page 50
Disconnect the USB cable from the NXHX board. Push the Reset button (T1) on the NXHX board (see position Device Drawing and Positions of the NXHX 52-JTAG chapter on page 12). The firmware is loaded by the Second Stage Bootloader. Running...
This section describes how to download a LFW or a LOM firmware in NXF format via the PCI interface of your development PC to the flash memory of your NXHX 52-JTAG board via Host Interface by using the cifX Driver Setup Utility and the NXPCA-PCI Adapter Board. This is an alternative method to the procedure described in the Downloading NXF Firmware to Serial Flash of the NXHX 52-JTAG via USB on page 44.
Page 53
Connect the other end of the CAB-NXPCA-PCI cable to the host interface connector X1 of the NXHX 52-JTAG board (see position Device Drawing and Positions of the NXHX 52-JTAG chapter on page 12). Reconnect your development PC to power supply and switch it on.
Page 54
Setting Table 6: Set Parallel Dual-Port Memory 16 Bit Mode at Switch S2 for Hardware Revision 2 If you are using an NXHX 52-JTAG board hardware revision 3, use the following settings: Setting Table 7: Set Parallel Dual-Port Memory 16 Bit Mode at Switch S2 for Hardware Revision 3 ...
Page 55
RAM of the netX 52, searching for firmware to boot. This is indicated by the SYS LED (see position in Device Drawing and Positions of the NXHX 52-JTAG chapter on page 12) alternating between yellow and green. 6. Enable/disable the NXPCA-PCI driver before firmware download.
Page 59
59/89 Note: This checking of the device number is only necessary if you have connected more than one Hilscher device to your development PC, e. g. the NXHX board and also a PC Card cifX. In the Device List, in the folder Active Devices > cifX0 (), click CH#0 entry.
Page 61
For details on how to enable/disable the NXPCA-PCI driver, see step 6. NXHX 52-JTAG | Getting Started DOC131004GS02EN | Revision 2 | English | 2013-11 | Released | Public...
51. You have installed the SYCON.net configuration software version 1.360 or higher on your PC (on the NXHX 52-JTAG product DVD, open the Software\SYCON.net directory, then double-click SYCONnet netX setup.exe file. Follow the instructions of the installation wizard).
Figure 57: cifX Driver Setup Utility Start Screen 2. Select communication channel of the NXHX board. Note: If you have connected two Hilscher devices, i. e. the NXHX board and the PC Card cifX, you first need to check out the right device assignment by clicking on the cifX0 and cifX1 board identifier entries in the Device List.
Page 68
Step By Step Instructions for Typical Use Cases 68/89 Select Hilscher NETX52 limited RE ECS V4.2.X file, then click Open. The file is imported and the following dialog opens: Figure 65: Reload Catalog Confirmation Dialog Click Yes.
Page 74
NXHX board, the LED COM 0 on the NXHX board shows steady green light (see position in Device Drawing and Positions of the NXHX 52-JTAG chapter on page 12). NXHX 52-JTAG | Getting Started DOC131004GS02EN | Revision 2 | English | 2013-11 | Released | Public...
51. You have installed the SYCON.net configuration software version 1.360 or higher on your PC. (On the NXHX 52-JTAG product DVD, open the Software\SYCON.net directory, then double-click SYCONnet netX setup.exe file. Follow the instructions of the installation wizard.) ...
SYCON.net establishes an online connection with the PC Card cifX. This is indicated by a green label above the symbol of the PC Card cifX. NXHX 52-JTAG | Getting Started DOC131004GS02EN | Revision 2 | English | 2013-11 | Released | Public...
Page 78
ON are green. If this is the case, a functioning communication between the PC Card cifX and the NXHX board has been established. NXHX 52-JTAG | Getting Started DOC131004GS02EN | Revision 2 | English | 2013-11 | Released | Public...
Page 81
In the Length field of the Process Data Input Image area, enter the value 2. This is the number of Bytes which can be received. NXHX 52-JTAG | Getting Started DOC131004GS02EN | Revision 2 | English | 2013-11 | Released | Public...
Page 82
The data is sent from the EtherCAT slave (i. e. the NXHX board) to the EtherCAT master (i. e. the PC Card cifX) via Ethernet cable. NXHX 52-JTAG | Getting Started DOC131004GS02EN | Revision 2 | English | 2013-11 | Released | Public...
Page 83
The data which has been sent from the EtherCAT slave (i. e. the NXHX board) is displayed in the Input data area of the IO Monitor. NXHX 52-JTAG | Getting Started DOC131004GS02EN | Revision 2 | English | 2013-11 | Released | Public...
Page 84
The data is sent from the EtherCAT master (i. e. the PC Card cifX) to the EtherCAT slave (i. e. the NXHX board) via Ethernet cable. NXHX 52-JTAG | Getting Started DOC131004GS02EN | Revision 2 | English | 2013-11 | Released | Public...
Table 7: Set Parallel Dual-Port Memory 16 Bit Mode at Switch S2 for Hardware Revision 3 Table 8: Set Flash Boot Mode at Switch S1 NXHX 52-JTAG | Getting Started DOC131004GS02EN | Revision 2 | English | 2013-11 | Released | Public...
Need help?
Do you have a question about the NXHX 52-JTAG and is the answer not in the manual?
Questions and answers