hilscher NETX50-BSL User manual

www.hilscher.com
User Manual
netX 2nd Stage Bootloader
Language: English

2nd Stage Bootloader Overview •2
Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim
Edition 8 – 2nd Stage Bootloader#EN – 2011/07
Rev Date Name Revisions
1 07.03.07 RM Created
2 23.07.07 MT Added:
- Boot loader update + Flashing via DPM on first run
3 18.04.08 MT Updated to V0.911 including netX50
4 02.12.08 MT/CT/RM Updated Startup Sequence
WIF pin description corrected in startup sequence diagram
Added configuration options to disable interfaces/states (V0.913 and later)
Added support for netTAP
5 23.01.09 MT Updated to V0.914
- Bootup handling changed. Bootloader will not flash itself anymore
(there is a flag in the bootheader to use this feature)
- Added Parallel Flash support (without parallel flash filesystem)
- Medium detection priority list added
6 22.07.09 MT - Updated to V0.915
- Configuration via tag list added
- PCI Support (cifX) added
- ISA Support
- Extended mailbox layout corrected in overview (mailbox only consists
of raw packet data, without administrative information)
7 09.11.09 MT - Updated to V1.3.0.0
- TAG List support added
- Firmware Validation added
- Configuration through netX Bootheader removed
- When using bootwizard to modify a .NXF or bootloader file,
NXUpdate needs to be run for the modified file
- Rotary Switch support for device class
(RCX_HW_DEV_CLASS_CIFX) added
- Filenames changed to "NETX100-BSL.bin" for netX100/500 and
NETX50-BSL.bin for netX50
8 25.07.11 MT - Updated “Implemented rcX Packets/Commands packet”
Version V1.3.5.0 and above
- new Fast Startup Pinning added
Version: 1.3.7.0 and above
- Added Backup partition support
- File System Position and Size added
Version:V1.4.0.0 (not released)
- netX10 Support
- MMIO Configuration
This software contains parts of the libfat library, Copyright (c) 2006 Michael "Chishm" Chisholm.
(available at http://chishm.drunkencoders.com/libfat, http://devkitpro.org).

2nd Stage Bootloader Overview •3
Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim
Edition 8 – 2nd Stage Bootloader#EN – 2011/07
Table of Contents
1Overview.........................................................................................................................................5
1.1 Features ..................................................................................................................................... 5
1.2 Limitations .................................................................................................................................. 5
2Bootloader Functions....................................................................................................................6
2.1 Overview..................................................................................................................................... 6
2.2 INT-RAM Memory Layout...........................................................................................................7
2.3 2nd Stage Loader DPM Layout ................................................................................................... 8
2.4 SDRAM Parameter..................................................................................................................... 8
2.5 Default DPM Parameters ........................................................................................................... 9
2.5.1 netX50, 100, 500..............................................................................................................................9
2.5.2 netX 10.............................................................................................................................................9
2.6 Rotary Switch Support (Slot Number)........................................................................................ 9
2.7 Configuration through Tag List................................................................................................. 10
2.7.1 Tag List Element Definitions ..........................................................................................................10
2.7.1.1 Generic Header....................................................................................................... 10
2.7.1.2 SDRAM Parameter ................................................................................................. 10
2.7.1.3 HIF/DPM Parameters (netX 50/100/500)................................................................ 11
2.7.1.4 SD/MMC Parameter................................................................................................ 12
2.7.1.5 UART ...................................................................................................................... 12
2.7.1.6 USB......................................................................................................................... 13
2.7.1.7 Destination Medium (Volume)................................................................................. 13
2.7.1.8 External Chip Select Configuration (EXT_SRAM).................................................. 14
2.7.1.9 Hardware Data Parameters.................................................................................... 14
2.7.1.10 Fast Startup Parameters......................................................................................... 15
2.7.1.11 MMIO Configuration (netX50)................................................................................. 16
2.7.1.12 MMIO Configuration (netX10)................................................................................. 17
2.7.1.13 HIF/DPM Parameters (netX 10).............................................................................. 18
2.7.1.14 USB Descriptor setup ............................................................................................. 19
2.7.1.15 File System Position and Size ................................................................................ 20
2.7.1.16 Backup Partition...................................................................................................... 21
2.8 Default detection of supported media ...................................................................................... 23
2.8.1 PCI Mode.......................................................................................................................................23
2.8.2 DPM Mode.....................................................................................................................................23
2.9 RAM Disk Layout...................................................................................................................... 24
2.10 Serial Flash Layout / Flash Disc / File System......................................................................... 24
2.11 Parallel Flash support............................................................................................................... 25
2.12 SQIROM / Execute in Place support (netX10 only) ................................................................. 26
2.13 Restore the Flash File System from SD/MMC......................................................................... 27
2.14 Flashing Bootloader via DPM................................................................................................... 28
2.15 Updating the Bootloader via DPM............................................................................................ 28
2.16 Updating the 2nd Stage Loader or Firmware ............................................................................ 29
2.16.1 Enter 2nd Stage Loader "Command Mode" from a running Firmware........................................29
2.16.2 Enter 2nd Stage Loader "Command Mode" from netX ROM loader...........................................29
2.16.3 Updating a firmware..................................................................................................................30
2.17 netX Boot Mode Definitions......................................................................................................31
2.18 Bootloader Start Sequence...................................................................................................... 32
2.19 SQIROM / XiP Firmware Update (netX10 only)....................................................................... 33
2.20 Bootloader Information for the Firmware.................................................................................. 34
2.21 Security FLASH Handling.........................................................................................................34
2.22 Bootloader Identification........................................................................................................... 34
2.23 Implemented rcX Packets/Commands..................................................................................... 35
2.24 Parameter Passing................................................................................................................... 36
2.24.1 Flash Disk Parameters..............................................................................................................37
2.24.2 RAM disk parameters................................................................................................................37
2.24.3 License Code Parameters.........................................................................................................37
2.24.4 RAM Size Parameters...............................................................................................................38
2.24.5 Hardware Parameters...............................................................................................................38
3Using the Bootloader ..................................................................................................................39

2nd Stage Bootloader Overview •4
Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim
Edition 8 – 2nd Stage Bootloader#EN – 2011/07
3.1 Configuration............................................................................................................................ 39
3.2 Startup Procedure.................................................................................................................... 40
3.3 Firmware Validation.................................................................................................................. 41
3.4 Startup error detection.............................................................................................................. 43
3.5 Entering Bootloader Mode........................................................................................................44
3.5.1 Entering UART Boot Mode.............................................................................................................44
3.5.2 Entering USB/DPM Boot Mode......................................................................................................44
4Tools .............................................................................................................................................45
4.1 Tag List Editor .......................................................................................................................... 45
4.2 Bootwizard................................................................................................................................ 45
4.3 Supported serial flashes........................................................................................................... 45
4.4 Supported Flashes for netX SQIROM / XiP Mode................................................................... 46
5Contact..........................................................................................................................................47

2nd Stage Bootloader Overview •5
Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim
Edition 8 – 2nd Stage Bootloader#EN – 2011/07
1 Overview
The 2nd stage bootloader is necessary to setup a dual port memory and to offer functionalities to get a
netX based hardware basically running and being able to download firmware files larger than 64kB via
DPM.
File names:
NETX50-BSL.bin for netX 50 based hardware
NETX100-BSL.bin for netX 100/500 based hardware
1.1 Features
Bootloader program Size < 64 Kbyte binary code to allow loading via DPM on netX100/500
Serial COM support
USB / CDC support
DPM support (including host interrupt enabled in DPM mode)
Security FLASH read / write access to user data area
File System FAT based (format / read / write) on serial flash only
Standard DPM layout for "System Channel" and "Handshake Channel"
(like defined in netX DPM Manual)
Extended read and write mailboxes for faster firmware download
System channel hardware information handling
Hardware independent (executed in netX internal memory)
Bootloader Update
File System Restore from SD/MMC (SDHC and SDXC cards are not supported)
License Update
ISA, DPM and PCI support
1.2 Limitations
The bootloader does not include a FTL (Flash Translation Layer) and limited to a FAT file
system on the serial flashes only.
Wear-leveling is not available
For entering USB bootmode of the 2nd stage loader, it is necessary to add an additional
jumper/switch (see netX ROM Loader documentation on how to enter extension bus bootmode,
to design your hardware)
Ethernet support not included
DMA data transfer not included
Firmware cannot be loaded into internal RAM, as this is used by Bootloader
Only serial flashes with the feature "erase single pages" are supported (see list in appendix)
License codes currently not readable on a netX50 based hardware
License Updates can not be executed on a netX50 / netX10 based hardware
SDRAM and DPM cannot be used simultaneously on netX10

2nd Stage Bootloader Bootloader Functions •6
Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim
Edition 8 – 2nd Stage Bootloader#EN – 2011/07
2 Bootloader Functions
2.1 Overview
The loader is executed from the netX internal RAM, because this is always known and makes
the loader independent from the hardware.
To be able to start the 2nd stage bootloader via the DPM, the DPM area must be 64 Kbyte.
Otherwise the netX registers, necessary to restart the netX ROM loader to load the 2nd stage
loader, are not reachable.
The 2nd stage loader creates a "System Channel" and a "Handshake Channel" at DPM offset
0x0 to 0x2FF like defined in the "netX DPM Interface Manual".
The rest of the DPM is used as a separate mailbox system. The mailboxes do not include the
standard administration data (pending packets) and consist only of the raw packet data. The
mailbox size differs from the standard channel mailboxes:
- The size of the new send mailbox is calculated in the following way:
SendMBX size = DPM size - Size of std. channels - Fixed size new RecvMBX
Example:
DPM size = 8192 Byte (0x2000)
Std channel size = 768 Byte (0x300)
Std. Recv MBX size = 124 Byte (NETX_SYSTEM_MAILBOX_MIN_SIZE)
==> Send MBX size = 8192 - 768- 124 = 7300 Byte (0x1C84)
- The new mailbox system has separate handshake pairs in the standard "System Channel"
handshake cell (offset 0x200 in the DPM).
HSF_EXT_SEND_MBX_CMD / NSF_EXT_SEND_MBX_ACK = Bit 6 and
HSF_EXT_RECV_MBX_ACK / NSF_EXT_RECV_MBX_CMD = Bit 7.
- The download via the extended mailbox system is done by using standard rcX packets. Except
the data packet size is adjusted to the extended mailbox size

2nd Stage Bootloader Bootloader Functions •7
Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim
Edition 8 – 2nd Stage Bootloader#EN – 2011/07
2.2 INT-RAM Memory Layout
netX 100 / 500:
Internal RAM Layout
Ethernet
(~ 15 KByte)
1
K
B
y
t
e
empty
(8 KByte)
INT-RAM 1
(32 KByte - empty) INT-RAM 2
(32 KByte - empty) INT-RAM 3
(32 KByte - empty)
INT-RAM 0
(32 KByte - empty)
Free for the bootloader program
96 KByte
DPM
(8 KByte)
Figure 1 : netX 100/500
netX 50:
Internal RAM Layout
INT-RAM 1
(32 KByte - empty) INT-RAM 2
(32 KByte - empty)
INT-RAM 0
(32 KByte - empty)
Free for the bootloader program
88 KByte
DPM
(8 KByte)
Figure 2 : netX 50

2nd Stage Bootloader Bootloader Functions •8
Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim
Edition 8 – 2nd Stage Bootloader#EN – 2011/07
netX 10:
Figure 3 : netX 10
2.3 2nd Stage Loader DPM Layout
Figure 4 : DPM Layout
2.4 SDRAM Parameter
SDRAM parameters are necessary to initialize the netX RAM controller. These parameters can be
taken from different places, depending on the availability. The order where the parameters are taken is
pre-defined.
Parameter Read Order:
1. Security Memory entry
2. Tag List

2nd Stage Bootloader Bootloader Functions •9
Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim
Edition 8 – 2nd Stage Bootloader#EN – 2011/07
2.5 Default DPM Parameters
2.5.1 netX50, 100, 500
The following table provides the default netX Register settings for the different modes:
ISA (Register value) DPM (Register value)Register
8 Bit 16 Bit 8 Bit 16 Bit
DPM_ARM_IO_MODE0 0xFFF7E108 0xFFF7FFEF 0x33FFE000 0x33FFEEE7
DPM_ARM_IO_MODE1 0x001FFFFF 0x001FFFFF 0x000E7E67 0x000E7E67
DPM_ARM_IF_CFG0 0x2024CDC2 0x30A4CDC2 0x20244912 0x30044912
DPM_ARM_IF_CFG1 0x0900FF00 0x0900FF00 0x01000000 0x01000000
Table 1 : Default DPM timing parameters (netX 50, 100, 500)
2.5.2 netX 10
The following table provides the default netX Register settings for the different modes:
DPM (Register value)Register
8 Bit 16 Bit
HIF_IO_CFG 0x00000031 0x00000031
DPM_CFG0 0x00000000 0x00000004
DPM_ADDR_CFG 0x00000035 0x00000035
DPM_TIMING_CFG 0x00000009 0x00000009
DPM_RDY_CFG 0x00000003 0x00000003
DPM_MISC_CFG 0x00000000 0x00000000
DPM_IO_CFG_MISC 0x00000000 0x00000004
Table 2 : Default DPM timing parameters (netX 10)
Note: The DPM can only be used if no SDRAM is attached to the netX10.
2.6 Rotary Switch Support (Slot Number)
For devices with a security memory and a device class of RCX_HW_DEV_CLASS_CIFX, rotary
switches connected to GPIO8-11 are read for the slot number.
Note: This is done independently from the manufacturer code in the security memory.

2nd Stage Bootloader Bootloader Functions •10
Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim
Edition 8 – 2nd Stage Bootloader#EN – 2011/07
2.7 Configuration through Tag List
Since V0.915 the bootloader offers a tag list for configuration. This is the recommended method and is
done using by using the Hilscher tag list editor.
The following chapter describes the layout of the tag list and the tags of the 2nd Stage Loader. For
instructions on patching the tags refer to chapter 4.1.
2.7.1 Tag List Element Definitions
A tag list element is described by a generic header and a data part containing the configuration. Every
tag element must have the generic header with a special tag id, to describe the following data.
2.7.1.1 Generic Header
The generic header describes the following tag data and structure
Parameter Type Description
ulTagType DWORD Type of the tag (describes the structure of the tag data)
ulTagDataLength DWORD Length of the following tag data
Table 3 : Tag list - Generic Header
2.7.1.2 SDRAM Parameter
SDRAM parameters can be set using this tag. If no parameters are given the 2nd Stage Loader will
use the data provided from security memory (alternatively from the NXF Header of the firmware).
Tag Type Value
TAG_BSL_SDRAM_PARAMS 0x40000000
Parameter Type Description
ulGeneralCtrl DWORD SDRAM_GENERAL_CTRL register value.
Set to 0 if no SDRAM Parameters are available or the parameters from
security memory or .NXF file should be used.
ulTimingCtrl DWORD SDRAM_TIMING_CTRL register value.
Table 4 : Tag list - SDRAM Parameters

2nd Stage Bootloader Bootloader Functions •11
Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim
Edition 8 – 2nd Stage Bootloader#EN – 2011/07
2.7.1.3 HIF/DPM Parameters (netX 50/100/500)
DPM parameters can be set using this tag. If no parameters are given the 2nd Stage Loader will use
the default settings.
Tag Type Value
TAG_BSL_HIF_PARAMS 0x40000001
Parameter Type Description
ulBustype DWORD Set the external Bus Type
0: Auto-Detect Bus (Depending on load medium PCI/DPM, PCI if
DeviceClass is cifX and PCI Vendor ID != 0, ISA if DeviceClass is cifX and
PCI Vendor ID == 0, DPM otherwise)
1: DPM Mode
2: ISA Mode
3: PCI Mode
0xFFFFFFFF: Disable external Bus completely
DPM Data
ulIfConf0 DWORD
ulIfConf1 DWORD
ulIoRegMode0 DWORD
ulIoRegMode1 DWORD
HIF Timing register values.
Set to 0 to use defaults
Not needed if PCI Mode is selected
PCI Data
bEnablePin BYTE !=0 to use pin for PCI enable
bPinType BYTE Type of pin
0: Ignore CD pin and poll once
1: GPIO
2: PIO
3: HIFPIO
4: MMIO
Note: Upper bit (#7) needs to be set if pin is inverted
usPinNumber WORD Number of pin to use for PCI enable
Table 5 : Tag list - DPM Parameters (netX50/100/500)

2nd Stage Bootloader Bootloader Functions •12
Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim
Edition 8 – 2nd Stage Bootloader#EN – 2011/07
2.7.1.4 SD/MMC Parameter
To enable the restore from SD/MMC card function, the following tag must be setup.
Tag Type Value
TAG_BSL_SDMMC_PARAMS 0x40000002
Parameter Type Description
bEnable BYTE !=0 to enable SD/MMC Support
bDetectPinType BYTE Pin Type for card detection
0: Ignore CD pin and poll once
1: GPIO
2: PIO
3: HIFPIO
Note: Upper bit (#7) needs to be set if pin is inverted
usDetectPin WORD Number of the pin to use (bDetectPinType must be setup correctly)
Table 6 : Tag list - SD/MMC Parameters
2.7.1.5 UART
The following tag can be used to disable the UART handling of the bootloader.
Tag Type Value
TAG_BSL_UART_PARAMS 0x40000003
Parameter Type Description
bEnable BYTE Set to 0 to disable UART
abReserved[3] BYTE[3] Unused / Reserved
Table 7 : Tag list - UART Parameters

2nd Stage Bootloader Bootloader Functions •13
Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim
Edition 8 – 2nd Stage Bootloader#EN – 2011/07
2.7.1.6 USB
The following tag can be used to enable / disable the USB handling of the bootloader.
Tag Type Value
TAG_BSL_USB_PARAMS 0x40000004
Parameter Type Description
bEnable BYTE Set to 0 to disable USB
bPullupPinType BYTE Pin to use for enabling USB device mode (usually GPIO12 on newer
hardware revisions)
0: Don't use enable pin
1: GPIO
2: PIO
3: HIFPIO
Note: Upper bit (#7) needs to be set if pin is inverted
usPullupPinIdx WORD Number of pin to toggle for USB enable
Table 8 : Tag list - USB Parameters
2.7.1.7 Destination Medium (Volume)
It is possible to override the default volume being used and to enable automatic flashing of the
bootloader, if it was downloaded through DPM.
Tag Type Value
TAG_BSL_MEDIUM_PARAMS 0x40000005
Parameter Type Description
bFlash BYTE !=0 will flash the 2nd Stage Loader if it was loaded via DPM/PCI or serial
console, so it will always be available during startup
bMediumType BYTE Default medium to use for volumes/disk
0: Auto-Detect medium
BSL running from serial Flash ÆUse serial Flash as volume
BSL loaded via PCI/DPM (and not flashed) ÆUse RAMDisk
BSL loaded from ParFlash ÆDon't use any filesysten, but use a NXF
File at offset 0xC0040000
1: Always use RAM Disk
2: Always use Serial Flash
3: Always use Parallel Flash (no Filesystem)
4: Use SQIROM (XiP), netX10 only
abReserved[2] BYTE[2] Unused / Reserved
Table 9 : Tag list - Volume / Medium Parameters

2nd Stage Bootloader Bootloader Functions •14
Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim
Edition 8 – 2nd Stage Bootloader#EN – 2011/07
2.7.1.8 External Chip Select Configuration (EXT_SRAM)
It is possible to let the bootloader initialize the external netX chip selects (CS0-CS3), using the
following tag.
Tag Type Value
TAG_BSL_EXTSRAM_PARAMS 0x40000006
Parameter Type Description
aulRegVal[4] DWORD Register values (MEM_SRAM0_CTRL0-4) to set.
If 0 the register won't be touched
Table 10 : Tag list - External chip select Parameters
2.7.1.9 Hardware Data Parameters
To allow firmware validation on devices without a security memory, it is possible to patch the hardware
data into a tag. If a security memory is found, this tag will be ignored.
Tag Type Value
TAG_BSL_HWDATA_PARAMS 0x40000007
Parameter Type Description
bEnable BYTE !=0 to enable HW Data tag
abReserved[3] BYTE[3] unused / reserved
usManufacturer WORD Manufacturer code
usProductionDate WORD Production date of hardware
usDeviceClass WORD Device class
bHwCompatibility BYTE Hardware compatibility index
bHwRevision BYTE Hardware revision index
ulDeviceNumber DWORD Device Number to show in DPM
ulSerialNumber DWORD Serial Number to show in DPM
ausHwOptions WORD[4] Hardware options
Table 11 : Tag list - Hardware DataParameters

2nd Stage Bootloader Bootloader Functions •15
Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim
Edition 8 – 2nd Stage Bootloader#EN – 2011/07
2.7.1.10 Fast Startup Parameters
The following tag can be used to enable / disable the QSI serial flash handling on netX50 for fast
startup. This set’s up 6 pins temporarily for accessing the QSI serial flash.
Tag Type Value
TAG_BSL_FSU_PARAMS 0x40000008
Parameter Type Description
ulFSUMode DWORD Bit mask of fast startup mode
BSL_FSU_MODE_ENABLE (0x00000001)
- Enable fast startup
BSL_FSU_MODE_PINNING (0x000000FE)
- Select the used pins for QSI flash (see pinning table)
BSL_FSU_MODE_DISABLESECMEM (0x80000000)
- Disable security memory readout completely
Table 12 : Tag list - Fast StartupParameters
Pinning
Value (Mask)
SPI nCS SPI CLK SPI MOSI /
IO0
SPI MISO /
IO1
SPI WP /
IO2
SPI HOLD /
IO3
0 (0x01) 37 39 28 29 30 31
1 (0x03) 27 26 28 29 30 31
2 (0x05) 23 22 24 25 26 27
Table 13 : Supported Fast Startup Pinnings (netX50)
Note: UART pins will be moved from MMIO34/35 to MMIO 0/1, when Pinning 1 or 2 is selected, and no MMIO
configuration is patched into the tag list

2nd Stage Bootloader Bootloader Functions •16
Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim
Edition 8 – 2nd Stage Bootloader#EN – 2011/07
2.7.1.11 MMIO Configuration (netX50)
The MMIO matrix of the 40 MMIO pins on netX 50 can be programmed individually.
Tag Type Value
TAG_BSL_MMIO_NETX50_PARAMS 0x40000009
Parameter Type Description
bConfig[0] BYTE Function Code for MMIO pin 0
bFlags[0] BYTE Inversion flags for MMIO0
0x01 : Invert output
0x02 : Invert input
…
…
bConfig[39] BYTE Function Code for MMIO pin 39
bFlags[39] BYTE Inversion flags for MMIO39
0x01 : Invert output
0x02 : Invert input
Table 14 : Tag list - MMIO Parameters (netX50)
Note: MMIO configuration is currently only available in 2nd Stage Loader 1.4 and later (not yet released)

2nd Stage Bootloader Bootloader Functions •17
Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim
Edition 8 – 2nd Stage Bootloader#EN – 2011/07
2.7.1.12 MMIO Configuration (netX10)
The MMIO matrix of the 24 MMIO pins on netX 10 can be programmed individually.
Tag Type Value
TAG_BSL_MMIO_NETX10_PARAMS 0x4000000A
Parameter Type Description
bConfig[0] BYTE Function Code for MMIO pin 0
bFlags[0] BYTE Inversion flags for MMIO0
0x01 : Invert output
0x02 : Invert input
…
…
bConfig[23] BYTE Function Code for MMIO pin 23
bFlags[23] BYTE Inversion flags for MMIO23
0x01 : Invert output
0x02 : Invert input
Table 15 : Tag list - MMIO Parameters (netX10)
Note: MMIO configuration is currently only available in 2nd Stage Loader 1.4 and later (not yet released)

2nd Stage Bootloader Bootloader Functions •18
Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim
Edition 8 – 2nd Stage Bootloader#EN – 2011/07
2.7.1.13 HIF/DPM Parameters (netX 10)
DPM parameters can be set using this tag. If no parameters are given the 2nd Stage Loader will use
the default settings.
Tag Type Value
TAG_BSL_HIF_NETX10_PARAMS 0x4000000B
Parameter Type Description
ulBustype DWORD Set the external Bus Type
0: Auto-Detect Bus
1: DPM Mode
0xFFFFFFFF: Disable external Bus completely
ulHifIoCfg DWORD
ulDpmCfg0 DWORD
ulDpm_addr_cfg DWORD
ulDpm_timing_cfg DWORD
ulDpm_rdy_cfg DWORD
ulDpm_misc_cfg DWORD
ulDpm_io_cfg_misc DWORD
HIF Timing register values.
See netX10 Program Reference Guide for the register contents / definitions.
Table 16 : Tag list - DPM Parameters (netX10)
Note: netX10 HIF configuration is currently only available in 2nd Stage Loader 1.4 and later (not yet released)

2nd Stage Bootloader Bootloader Functions •19
Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim
Edition 8 – 2nd Stage Bootloader#EN – 2011/07
2.7.1.14 USB Descriptor setup
The USB Identification can be changed.
Default Values:
netX100/500 netX50 netX10
VendorID 0x1939 0x1939 0x1939
ProductID 0x0011 0x0010 tbd.
Table 17 : USB Default Identification
Tag Type Value
TAG_BSL_USB_DESCR_PARAMS 0x4000000C
Parameter Type Description
bCustomSettings BYTE !=0 to use custom settings provided
bDeviceClass BYTE
bSubClass BYTE
bProtocol BYTE
These fields are only configurable on netX50/100/500 and should contain
the default values. Otherwise the Host may no be able to connect to the
target.
bDeviceClass=0x02
bSubClass=0x00
bProtocol=0x00
usVendorId WORD USB Vendor ID (VID)
usProductId WORD USB Product ID (PID)
usReleaseNr WORD Release number of device
bCharacteristics BYTE Device characteristics (see USB specification)
bMaxPower BYTE Maximum bus power in mA (see USB specification)
szVendor char[16] Vendor string
szProduct char[16] Product string
szSerial char[16] Serial number
Table 18 : Tag list - USB Descriptor Parameters
Note: USB descriptor configuration is currently only available in 2nd Stage Loader 1.4 and later (not yet released)

2nd Stage Bootloader Bootloader Functions •20
Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim
Edition 8 – 2nd Stage Bootloader#EN – 2011/07
2.7.1.15 File System Position and Size
The position and size of the default disk can be customized using this tag. Customization is only
supported for disk with file systems (RAM and serial devices). Parallel flash will always use the
defaults.
Default Values:
RAMDisk Serial Flash Parallel Flash
Offset 7MB (0x00700000) 64kB (rounded up to next
page)
Size 1MB (0x00100000) From Offset to end of flash
no file system support.
Firmware is always located at address
0xC0040000
Table 19 : Default disk position and size
Tag Type Value
TAG_BSL_DISK_POS_PARAMS 0x4000000D
Parameter Type Description
ulOffset DWORD The disk offset from start of medium.
0xFFFFFFFF: use defaults
ulSize DWORD The size of the disk.
0xFFFFFFFF: use defaults
Table 20 : Tag list - Disk position parameters
Note: Position and size configuration is available in 2nd Stage Loader V1.3.7.0 and later
This manual suits for next models
1
Table of contents
Other hilscher Network Hardware manuals