hilscher NETX50-BSL User Manual

2nd stage bootloader
Table of Contents

Advertisement

Quick Links

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NETX50-BSL and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for hilscher NETX50-BSL

  • Page 1 User Manual netX 2 Stage Bootloader Language: English www.hilscher.com...
  • Page 2 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). Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 3: Table Of Contents

    License Code Parameters ......................37 2.24.4 RAM Size Parameters ....................... 38 2.24.5 Hardware Parameters ....................... 38 Using the Bootloader ........................39 Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 4: Overview

    Tag List Editor .......................... 45 Bootwizard..........................45 Supported serial flashes......................45 Supported Flashes for netX SQIROM / XiP Mode ..............46 Contact............................47 Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 5: Overview

    License Updates can not be executed on a netX50 / netX10 based hardware SDRAM and DPM cannot be used simultaneously on netX10 Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 6: Bootloader Functions

    - 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 Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 7: Int-Ram Memory Layout

    (32 KByte - empty) (32 KByte - empty) Free for the bootloader program 88 KByte (8 KByte) Figure 2 : netX 50 Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 8: Nd Stage Loader Dpm Layout

    The order where the parameters are taken is pre-defined. Parameter Read Order: 1. Security Memory entry 2. Tag List Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 9: Default Dpm Parameters

    GPIO8-11 are read for the slot number. Note: This is done independently from the manufacturer code in the security memory. Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 10: Configuration Through Tag List

    .NXF file should be used. ulTimingCtrl DWORD SDRAM_TIMING_CTRL register value. Table 4 : Tag list - SDRAM Parameters Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 11: Hif/Dpm Parameters (Netx 50/100/500)

    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) Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 12: Sd/Mmc Parameter

    BYTE Set to 0 to disable UART abReserved[3] BYTE[3] Unused / Reserved Table 7 : Tag list - UART Parameters Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 13: Usb

    4: Use SQIROM (XiP), netX10 only Unused / Reserved abReserved[2] BYTE[2] Table 9 : Tag list - Volume / Medium Parameters Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 14: External Chip Select Configuration (Ext_Sram)

    DWORD Serial Number to show in DPM ausHwOptions WORD[4] Hardware options Table 11 : Tag list - Hardware DataParameters Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 15: Fast Startup Parameters

    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 Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 16: Mmio Configuration (Netx50)

    Table 14 : Tag list - MMIO Parameters (netX50) Note: MMIO configuration is currently only available in 2 Stage Loader 1.4 and later (not yet released) Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 17: Mmio Configuration (Netx10)

    Table 15 : Tag list - MMIO Parameters (netX10) Note: MMIO configuration is currently only available in 2 Stage Loader 1.4 and later (not yet released) Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 18: Hif/Dpm Parameters (Netx 10)

    Table 16 : Tag list - DPM Parameters (netX10) Note: netX10 HIF configuration is currently only available in 2 Stage Loader 1.4 and later (not yet released) Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 19: Usb Descriptor Setup

    Table 18 : Tag list - USB Descriptor Parameters Note: USB descriptor configuration is currently only available in 2 Stage Loader 1.4 and later (not yet released) Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 20: File System Position And Size

    Table 20 : Tag list - Disk position parameters Note: Position and size configuration is available in 2 Stage Loader V1.3.7.0 and later Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 21: Backup Partition

    Configuration of the Backup Partition: The configuration is done via the Hilscher Tag List Editor and will be patched into the 2nd Stage Bootloader binary. To allow usage of a recovery firmware, the default file system size must be reduced to get a free flash area for Backup partition placement.
  • Page 22 Backup Partition Tag Settings Offset 0x000101D0 Offset 0x00300000 Size 0x002EFC80 Size 0x00120000 n.c. Medium Serial Flash Figure 6 : Example FLASH Layout Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 23: Default Detection Of Supported Media

    Table 22 : Medium detection in DPM mode (if flashed) Note: If the bootloader was downloaded and executed through DPM (without being flashed) it will default to RAMDisk operation. Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 24: Ram Disk Layout

    2nd stage loader and occupies the rest of the flash. Figure 8 : Serial Flash Layout Directory Layout: Figure 9 : Directory Layout Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 25: Parallel Flash Support

    Note: When using parallel flash all downloads of RCX_XFER_MODE_FILESYSTEM will be checked for the extension ".NXF". All other files will be rejected. Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 26: Sqirom / Execute In Place Support (Netx10 Only)

    Figure 11: Serial Flash Layout (in SQIROM mode on netX10) Directory Layout: Figure 12 : Directory Layout Note: This mode is only available on netX10. Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 27: Restore The Flash File System From Sd/Mmc

    Note: To enable this feature you will need to patch the SD/MMC tag with the TAG List editor. Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 28: Flashing Bootloader Via Dpm

    RCX_FILE_XFER_PARALLEL_FLASH - if bootloader runs from parallel flash The file name must be given in an 8.3 representation <name>.<extension>, because of the underlying FAT file system. Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 29: Updating The 2 Nd Stage Loader Or Firmware

    1. Bring netX ROM loader mode 2. Enter "fill 1C003200 02000000" to set the bit 3. Enter "boot" to start the 2nd stage loader Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 30: Updating A Firmware

    Note: This update procedure does not work on so called "RAM based devices" (e.g. cifX) where the second stage loader and firmware is loaded every time by the host. Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 31: Netx Boot Mode Definitions

    Note: When entering DPM boot mode and the tag list contains DPM settings the WIF / ISA_CS pin will be ignored and the settings inside the header are used. Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 32: Bootloader Start Sequence

    Firmware available in flash? Check for DPM Bit change Poll DPM for Startup FW commands Command mode Figure 14 : Bootloader Startup sequence Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 33: Sqirom / Xip Firmware Update (Netx10 Only)

    4 Hz (250ms) Copying firmware 16 Hz (62,5ms) Default 2 Hz (500ms) Table 23 : Blink frequency during XIP firmware update (netX10) Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 34: Bootloader Information For The Firmware

    State: State information is placed in the existing system information area 0x00C4 = ulSystemStatus 0x00C8 = ulSystemError 0x00D0 = bSystemLED Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 35: Implemented Rcx Packets/Commands

    RCX_SECURITY_EEPROM_READ_REQ Read the security memory user/non-protected zones RCX_SECURITY_EEPROM_WRITE_REQ Write the security memory user/non-protected zones Table 24 : Bootloader Command Overview Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 36: Parameter Passing

    Pass the SDRAM Size in Bytes Pass the hardware data BOOTTOKEN_HARDWARE (0x05) Table 27 : Available Tokens Table 28 : Example Token List Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 37: Flash Disk Parameters

    DWORD License flags 2 WORD License ID usNetxLicenseId WORD License Flags usNetxLicenseFlags Table 31 : License Code Token Data Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 38: Ram Size Parameters

    External DPM Bus 0: No external bus 1: PCI 2: DPM 3: ISA Table 33 : Hardware parameter Token Data Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 39: Using The Bootloader

    If no security memory with SDRAM parameters is available, patch SDRAM parameters into the tag list Set custom DPM parameters (IF_CFG0/1, IO_REGMODE0/1) if needed, or set them to 0 for using the default Hilscher settings and the 8/16 Bit DPM mode detection via WIF pin. Firmware Only patch SDRAM settings if they do not reside inside security memory, and if they are not patched into the 2nd Stage Loader.
  • Page 40: Startup Procedure

    2ndStageLoader, as it has already been initialized) Figure 16 : 2nd Stage Loader Startup Procedure (DPM Mode, with available firmware) Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 41: Firmware Validation

    NXF-Header.HwOptions ? Start Firmware / Don’t start firmware / Start backup firmware Don’t start backup firmware Figure 17 : Firmware validation Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 42 >= 4? Hardware options mismatch (Deny firmware startup) Hardware options valid (Allow Firmware startup) Figure 18 : Hardware option validation Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 43: Startup Error Detection

    Error copying firmware from to SQIROM (XiP) area BOOTERROR_E_FILEWRITE Table 34 : System Status Block - Bootup error codes Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 44: Entering Bootloader Mode

    This mode can also be entered through special register settings during power up. Refer to chapter 2.16 for detailed explanation. Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 45: Tools

    Atmel AT45DB321B Atmel AT45DB642D Saifun SA25F005 Saifun SA25F010 Saifun SA25F020 ST M45PE40 ST M45PE80 ST M25PE80 Numonyx M45PE16 (V1.3.5.0 and later) Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 46: Supported Flashes For Netx Sqirom / Xip Mode

    Tools • 46 2nd Stage Bootloader Supported Flashes for netX SQIROM / XiP Mode Winbond W25Q32 Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...
  • Page 47: Contact

    Phone: +1 630-505-5301 E-Mail: info@hilscher.it E-Mail: info@hilscher.us Support Support Phone: +39 / 02 25007068 Phone: +1 630-505-5301 E-Mail: it.support@hilscher.com E-Mail: us.support@hilscher.com Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D 65795 Hattersheim Edition 8 – 2nd Stage Bootloader#EN – 2011/07...

This manual is also suitable for:

Netx100-bsl

Table of Contents