Skip to main content

Flash device label compiler for Hilscher netX90

Project description

FDL Compiler

This Python module helps compile and decomplie flash device label (FDL) blobs used to configure the Hilscher netX90. This allows the configuration to be edited in a convienent text format (YAML) and then compiled into a blob that can be flashed to the netX.

This project includes the fdl_compiler module, which can compile or decompile files, as well as a schema for the YAML configuration file for easier editing.

If using Visual Studio Code, the included settings can help configure validation using the YAML plugin (must be installed separately).

Usage

python -m netx_fdl_compiler compile {source}.yaml {destination}.fdl
python -m netx_fdl_compiler decompile {source}.fdl {destination}.yaml

For more information about the contents of a flash device label, please refer to the documentation from Hilscher

An example of a YAML FDL description is below:

Device:
  Manufacturer: 1
  Class: NETX90
  Device Number: 7833000
  Serial Number: 20000
  Hardware Compatibility: 1
  Hardware Revision: 3
  Production Date: 2017-W43
MAC Addresses:
- 02:00:00:1e:99:00
- 02:00:00:1e:99:01
- 02:00:00:1e:99:02
- 02:00:00:1e:99:03
APP MAC Addresses: []
OEM Identification:
  Options:
    SerialNumber: false
    OrderNumber: true
    HWRevision: false
    ProductionDate: false
  Serial Number: ''
  Order Number: TEST
  Hardware Revision: ''
  Production Date: ''
  Custom Data: null
Flash Layout:
- Type: HWCONFIG
  Start: 1048576
  Size: 8192
  Chip: INTFLASH0
  Name: HWConfig
  Access: O_RDONLY
- Type: FDL
  Start: 1056768
  Size: 4096
  Chip: INTFLASH0
  Name: FDL
  Access: O_RDONLY
- Type: FW
  Start: 1060864
  Size: 512000
  Chip: INTFLASH0
  Name: FW
  Access: O_RDONLY
- Type: FWUPDATE
  Start: 1572864
  Size: 389120
  Chip: INTFLASH1
  Name: FWUpdate
  Access: O_RDWR
- Type: MFW_HWCONFIG
  Start: 1961984
  Size: 8192
  Chip: INTFLASH1
  Name: MFW_HWConfig
  Access: O_RDONLY
- Type: MFW
  Start: 1970176
  Size: 86016
  Chip: INTFLASH1
  Name: Maintenance
  Access: O_RDONLY
- Type: REMANENT
  Start: 2056192
  Size: 32768
  Chip: INTFLASH1
  Name: Remanent
  Access: O_RDWR
- Type: MANAGEMENT
  Start: 2088960
  Size: 8192
  Chip: INTFLASH1
  Name: Management
  Access: O_RDWR
- Type: NONE
  Start: 0
  Size: 0
  Chip: INTFLASH0
  Name: ''
  Access: O_RDONLY
- Type: NONE
  Start: 0
  Size: 0
  Chip: INTFLASH0
  Name: ''
  Access: O_RDONLY
Chip Table:
- Chip: INTFLASH0
  Driver: ''
  Block: 4096
  Size: 524288
  Cycles: 10000
- Chip: INTFLASH1
  Driver: ''
  Block: 4096
  Size: 524288
  Cycles: 10000

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netx_fdl_compiler-0.1.3.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

netx_fdl_compiler-0.1.3-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file netx_fdl_compiler-0.1.3.tar.gz.

File metadata

  • Download URL: netx_fdl_compiler-0.1.3.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for netx_fdl_compiler-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e584bdc2f310fc4ffaa06ad0f93999e0c351b978419fc7e20955816e00976b8e
MD5 161e6a490f5bdb28eb9aca0c7ace3cb4
BLAKE2b-256 8ee0d87e68557c07e9bac23d01f820c4460e6a60f9659eb89b8156a0cd83bb99

See more details on using hashes here.

Provenance

File details

Details for the file netx_fdl_compiler-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for netx_fdl_compiler-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 516b6d62fc8d526b0803705982015118dcf83284edec48d6a115cf6fdd6bc00d
MD5 919de9a9f7778b7d5f32d4c9be163a60
BLAKE2b-256 830ef53d5189ac828efd90fac5ff4f4e4d3e226115cdf90ab967a6374eeddd90

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page