User Guide - nxpfuses#

This user’s guide describes how to use nxpfuses application.

Command line interface#

nxpfuses#

NXP Fuse Tool.

Usage

nxpfuses [OPTIONS] COMMAND [ARGS]...

Options

-v, --verbose#

Print more detailed information

-vv, --debug#

Display more debugging information.

-vvv, --trace#

Display raw communication data (bytes, packets).

--version#

Show the version and exit.

--help#

Show this message and exit.

compare#

Compare two fuse configurations using field-level fuse semantics.

CONFIG_A is the old configuration and CONFIG_B is the new configuration. Comments, field order, numeric formatting, and enum formatting are ignored.

Exit codes: 0 = IDENTICAL, 2 = SPSDK/config error, 4 = DIFFERENT, 5 = PARTIAL (some fields are not verifiable).

Usage

nxpfuses compare [OPTIONS] CONFIG_A CONFIG_B

Options

-o, --output <output>#

Path to store the comparison report YAML file.

Arguments

CONFIG_A#

Required argument

CONFIG_B#

Required argument

fuses-script#

The command generates blhost/nxpele script to burn fuses from configuration.

Usage

nxpfuses fuses-script [OPTIONS]

Options

-c, --config <config>#

Required Path to the YAML/JSON configuration file.

-oc, --override-config <key_path=value>#

Allows override the individual configuration settings. The use is simple: ‘key_path=value’, like ‘family=mimxrt595s’ or in structural configuration with separating character ‘/’ like ‘containers/0/binary_container=my_container.bin’. It could be used multiple times.

--non-default-only#

Filter only registers with non-default values.

-o, --output <output>#

Required Path to a text file with blhost commands, where to store the output.

get-config#

Save the current state of fuses to config file.

Usage

nxpfuses get-config [OPTIONS]

Options

-t, --timeout <ms>#

Sets timeout when waiting on data over a serial line. The default is 5000 milliseconds.

-p, --port <COM[,speed>#

Serial port configuration. Default baud rate is 57600. Use ‘nxpdevscan’ utility to list devices on serial port.

-u, --usb <VID:PID|USB_PATH|DEV_NAME>#

USB device identifier. | Following formats are supported: <vid>, <vid:pid> or <vid,pid>, device/instance path, device name. | <vid>: hex or dec string; e.g. 0x0AB12, 43794. | <vid/pid>: hex or dec string; e.g. 0x0AB12:0x123, 1:3451. | Use ‘nxpdevscan’ utility to list connected device names.

-l, --lpcusbsio <usb,VID:PID|USB_PATH|SER_NUM,]spi|i2c>#

USB-SIO bridge interface.

Optional USB device filtering formats: [usb,vid:pid|usb_path|serial_number] | usb,vid:pid - Filter by USB Vendor ID and Product ID (hexadecimal) | Example: usb,0x1fc9:0x0090 | usb,usb_path - Filter by USB device path | Example: usb,1-1.3.2 | usb,serial_number - Filter by USB device serial number | Example: usb,ABCD1234

Following serial interfaces are supported:

spi[index][,port,pin,speed_kHz,polarity,phase]
- index … optional index of SPI peripheral. Example: “spi1” (default=0)
- port … bridge GPIO port used as SPI SSEL(default=0)
- pin … bridge GPIO pin used as SPI SSEL
default SSEL is set to 0.15 which works
for the LPCLink2 bridge. The MCULink OB
bridge ignores the SSEL value anyway.(default=15)
- speed_kHz … SPI clock in kHz (default 1000)
- polarity … SPI CPOL option (default=1)
- phase … SPI CPHA option (default=1)
- nirq_port … nIRQ port number (default None)
- nirq_pin … nIRQ pin number (default None)
i2c[index][,address,speed_kHz]
- index … optional index of I2C peripheral. Example: “i2c1” (default=0)
- address … I2C device address (default 0x10)
- speed_kHz … I2C clock in kHz (default 100)
- nirq_port … nIRQ port number (default None)
- nirq_pin … nIRQ pin number (default None)
Following types of interface configuration formats are supported:
- string with coma separated arguments i.e. spi1,0,15,1000,1
- string with coma separated keyword arguments (the order may not be maintained) i.e.spi1,port=0,speed_kHz=1000,nirq_port=1,nirq_pin=7
- string with combination of coma separated arguments and keyword arguments i.e.spi1,0,15,nirq_port=1,nirq_pin=7
Complete examples with USB filtering:
- usb,0x1fc9:0x0090,spi - SPI interface filtered by USB VID:PID
- usb,1-1.1,i2c,0x10,100 - I2C interface filtered by USB path
- usb,ABCD1234,spi1,0,15,1000 - SPI1 interface filtered by USB serial number
- spi - SPI interface without USB filtering (auto-detect first device)
-b, --buspal <spi[,speed,polarity,phase,lsb|msb] | i2c[,address,speed>#

Buspal settings

--uboot-prompt <uboot_prompt>#

Override default U-Boot serial prompt for ELE communication, using the option, or environment variable.

-d, --device <device>#

Select connection method for ELE communication, otherwise default from DB will be used

Options:

mboot | uboot_serial | uboot_fastboot

--buffer-addr <buffer_addr>#

Override default buffer address for ELE communication

--buffer-size <buffer_size>#

Override default buffer size for ELE communication

--fb-addr <fb_addr>#

Override default buffer address for fastboot

--fb-size <fb_size>#

Override default buffer size for fastboot

-f, --family <family>#

[required] Select the chip family.

Options:

k32w148 | kw45b41z5 | kw45b41z8 | kw45z41052 | kw45z41053 | kw45z41082 | kw45z41083 | kw47b42z83 | kw47b42z96 | kw47b42z97 | kw47b42zb2 | kw47b42zb3 | kw47b42zb6 | kw47b42zb7 | kw47z42082 | kw47z42092 | kw47z420b2 | kw47z420b3 | lpc5534 | lpc5536 | lpc55s36 | mcxn235 | mcxn236 | mcxn246 | mcxn246t | mcxn247 | mcxn247t | mcxn526 | mcxn526t | mcxn527 | mcxn527t | mcxn536 | mcxn536t | mcxn537 | mcxn537t | mcxn546 | mcxn546t | mcxn547 | mcxn547t | mcxn556s | mcxn556t | mcxn557s | mcxn557t | mcxn946 | mcxn946t | mcxn947 | mcxn947t | mcxw716a | mcxw716c | mcxw727a | mcxw727c | mcxw727d | mimx8ulp | mimx9131 | mimx9301 | mimx9302 | mimx9311 | mimx9312 | mimx9321 | mimx9322 | mimx9331 | mimx9332 | mimx9351 | mimx9352 | mimx93714 | mimx93734 | mimx93754 | mimx93w32 | mimx93w52 | mimx94145 | mimx94245 | mimx943 | mimx94316 | mimx94318 | mimx94336 | mimx94338 | mimx94356 | mimx94358 | mimx94376 | mimx94378 | mimx94386 | mimx94388 | mimx94396 | mimx94398 | mimx95224 | mimx95234 | mimx95244 | mimx95252 | mimx95254 | mimx95284 | mimx95292 | mimx95294 | mimx9534 | mimx9536 | mimx9546 | mimx9554 | mimx9556 | mimx9586 | mimx9594 | mimx9596 | mimxrt1010 | mimxrt1015 | mimxrt1020 | mimxrt1024 | mimxrt1040 | mimxrt1043 | mimxrt1046 | mimxrt1050 | mimxrt1060 | mimxrt1064 | mimxrt1151 | mimxrt1152 | mimxrt1165 | mimxrt1166 | mimxrt1171 | mimxrt1172 | mimxrt1173 | mimxrt1175 | mimxrt1176 | mimxrt1181 | mimxrt1182 | mimxrt1183 | mimxrt1184 | mimxrt1185 | mimxrt1186 | mimxrt1187 | mimxrt1189 | mimxrt118c | mimxrt118d | mimxrt118e | mimxrt2660 | mimxrt2661 | mimxrt2662 | mimxrt2663 | mimxrt533s | mimxrt555s | mimxrt595s | mimxrt685s | mimxrt735s | mimxrt758s | mimxrt798s | mimxrtl3450 | rw610 | rw612

-r, --revision <revision>#

Chip revision; if not specified, most recent one will be used

-o, --output <output>#

Required Path to a file, where to store the output.

-do, --diff-only#

Save differences compared to default values.

-ia, --ignore-access-rights#

Force reading fuses even when access rights are set to WO (Write-Only) or Reserved.

Environment variables

UBOOT_PROMPT

Provide a default for --uboot-prompt

get-families#

Shows the full family info for commands in this group.

Usage

nxpfuses get-families [OPTIONS]

Options

-c, --cmd-name <cmd_name>#

Choose the command name to get full information about NXP families support.

Options:

get-template | write-single | print | get-config

get-template#

Generate the template of Fuses YAML configuration file.

Usage

nxpfuses get-template [OPTIONS]

Options

-f, --family <family>#

[required] Select the chip family.

Options:

k32w148 | kw45b41z5 | kw45b41z8 | kw45z41052 | kw45z41053 | kw45z41082 | kw45z41083 | kw47b42z83 | kw47b42z96 | kw47b42z97 | kw47b42zb2 | kw47b42zb3 | kw47b42zb6 | kw47b42zb7 | kw47z42082 | kw47z42092 | kw47z420b2 | kw47z420b3 | lpc5534 | lpc5536 | lpc55s36 | mcxn235 | mcxn236 | mcxn246 | mcxn246t | mcxn247 | mcxn247t | mcxn526 | mcxn526t | mcxn527 | mcxn527t | mcxn536 | mcxn536t | mcxn537 | mcxn537t | mcxn546 | mcxn546t | mcxn547 | mcxn547t | mcxn556s | mcxn556t | mcxn557s | mcxn557t | mcxn946 | mcxn946t | mcxn947 | mcxn947t | mcxw716a | mcxw716c | mcxw727a | mcxw727c | mcxw727d | mimx8ulp | mimx9131 | mimx9301 | mimx9302 | mimx9311 | mimx9312 | mimx9321 | mimx9322 | mimx9331 | mimx9332 | mimx9351 | mimx9352 | mimx93714 | mimx93734 | mimx93754 | mimx93w32 | mimx93w52 | mimx94145 | mimx94245 | mimx943 | mimx94316 | mimx94318 | mimx94336 | mimx94338 | mimx94356 | mimx94358 | mimx94376 | mimx94378 | mimx94386 | mimx94388 | mimx94396 | mimx94398 | mimx95224 | mimx95234 | mimx95244 | mimx95252 | mimx95254 | mimx95284 | mimx95292 | mimx95294 | mimx9534 | mimx9536 | mimx9546 | mimx9554 | mimx9556 | mimx9586 | mimx9594 | mimx9596 | mimxrt1010 | mimxrt1015 | mimxrt1020 | mimxrt1024 | mimxrt1040 | mimxrt1043 | mimxrt1046 | mimxrt1050 | mimxrt1060 | mimxrt1064 | mimxrt1151 | mimxrt1152 | mimxrt1165 | mimxrt1166 | mimxrt1171 | mimxrt1172 | mimxrt1173 | mimxrt1175 | mimxrt1176 | mimxrt1181 | mimxrt1182 | mimxrt1183 | mimxrt1184 | mimxrt1185 | mimxrt1186 | mimxrt1187 | mimxrt1189 | mimxrt118c | mimxrt118d | mimxrt118e | mimxrt2660 | mimxrt2661 | mimxrt2662 | mimxrt2663 | mimxrt533s | mimxrt555s | mimxrt595s | mimxrt685s | mimxrt735s | mimxrt758s | mimxrt798s | mimxrtl3450 | rw610 | rw612

-r, --revision <revision>#

Chip revision; if not specified, most recent one will be used

-o, --output <output>#

Required Path to a file, where to store the output.

--force#

Force overwriting of existing files.

print#

Print the current state of fuses from device.

Usage

nxpfuses print [OPTIONS]

Options

-t, --timeout <ms>#

Sets timeout when waiting on data over a serial line. The default is 5000 milliseconds.

-p, --port <COM[,speed>#

Serial port configuration. Default baud rate is 57600. Use ‘nxpdevscan’ utility to list devices on serial port.

-u, --usb <VID:PID|USB_PATH|DEV_NAME>#

USB device identifier. | Following formats are supported: <vid>, <vid:pid> or <vid,pid>, device/instance path, device name. | <vid>: hex or dec string; e.g. 0x0AB12, 43794. | <vid/pid>: hex or dec string; e.g. 0x0AB12:0x123, 1:3451. | Use ‘nxpdevscan’ utility to list connected device names.

-l, --lpcusbsio <usb,VID:PID|USB_PATH|SER_NUM,]spi|i2c>#

USB-SIO bridge interface.

Optional USB device filtering formats: [usb,vid:pid|usb_path|serial_number] | usb,vid:pid - Filter by USB Vendor ID and Product ID (hexadecimal) | Example: usb,0x1fc9:0x0090 | usb,usb_path - Filter by USB device path | Example: usb,1-1.3.2 | usb,serial_number - Filter by USB device serial number | Example: usb,ABCD1234

Following serial interfaces are supported:

spi[index][,port,pin,speed_kHz,polarity,phase]
- index … optional index of SPI peripheral. Example: “spi1” (default=0)
- port … bridge GPIO port used as SPI SSEL(default=0)
- pin … bridge GPIO pin used as SPI SSEL
default SSEL is set to 0.15 which works
for the LPCLink2 bridge. The MCULink OB
bridge ignores the SSEL value anyway.(default=15)
- speed_kHz … SPI clock in kHz (default 1000)
- polarity … SPI CPOL option (default=1)
- phase … SPI CPHA option (default=1)
- nirq_port … nIRQ port number (default None)
- nirq_pin … nIRQ pin number (default None)
i2c[index][,address,speed_kHz]
- index … optional index of I2C peripheral. Example: “i2c1” (default=0)
- address … I2C device address (default 0x10)
- speed_kHz … I2C clock in kHz (default 100)
- nirq_port … nIRQ port number (default None)
- nirq_pin … nIRQ pin number (default None)
Following types of interface configuration formats are supported:
- string with coma separated arguments i.e. spi1,0,15,1000,1
- string with coma separated keyword arguments (the order may not be maintained) i.e.spi1,port=0,speed_kHz=1000,nirq_port=1,nirq_pin=7
- string with combination of coma separated arguments and keyword arguments i.e.spi1,0,15,nirq_port=1,nirq_pin=7
Complete examples with USB filtering:
- usb,0x1fc9:0x0090,spi - SPI interface filtered by USB VID:PID
- usb,1-1.1,i2c,0x10,100 - I2C interface filtered by USB path
- usb,ABCD1234,spi1,0,15,1000 - SPI1 interface filtered by USB serial number
- spi - SPI interface without USB filtering (auto-detect first device)
-b, --buspal <spi[,speed,polarity,phase,lsb|msb] | i2c[,address,speed>#

Buspal settings

--uboot-prompt <uboot_prompt>#

Override default U-Boot serial prompt for ELE communication, using the option, or environment variable.

-d, --device <device>#

Select connection method for ELE communication, otherwise default from DB will be used

Options:

mboot | uboot_serial | uboot_fastboot

--buffer-addr <buffer_addr>#

Override default buffer address for ELE communication

--buffer-size <buffer_size>#

Override default buffer size for ELE communication

--fb-addr <fb_addr>#

Override default buffer address for fastboot

--fb-size <fb_size>#

Override default buffer size for fastboot

-f, --family <family>#

[required] Select the chip family.

Options:

k32w148 | kw45b41z5 | kw45b41z8 | kw45z41052 | kw45z41053 | kw45z41082 | kw45z41083 | kw47b42z83 | kw47b42z96 | kw47b42z97 | kw47b42zb2 | kw47b42zb3 | kw47b42zb6 | kw47b42zb7 | kw47z42082 | kw47z42092 | kw47z420b2 | kw47z420b3 | lpc5534 | lpc5536 | lpc55s36 | mcxn235 | mcxn236 | mcxn246 | mcxn246t | mcxn247 | mcxn247t | mcxn526 | mcxn526t | mcxn527 | mcxn527t | mcxn536 | mcxn536t | mcxn537 | mcxn537t | mcxn546 | mcxn546t | mcxn547 | mcxn547t | mcxn556s | mcxn556t | mcxn557s | mcxn557t | mcxn946 | mcxn946t | mcxn947 | mcxn947t | mcxw716a | mcxw716c | mcxw727a | mcxw727c | mcxw727d | mimx8ulp | mimx9131 | mimx9301 | mimx9302 | mimx9311 | mimx9312 | mimx9321 | mimx9322 | mimx9331 | mimx9332 | mimx9351 | mimx9352 | mimx93714 | mimx93734 | mimx93754 | mimx93w32 | mimx93w52 | mimx94145 | mimx94245 | mimx943 | mimx94316 | mimx94318 | mimx94336 | mimx94338 | mimx94356 | mimx94358 | mimx94376 | mimx94378 | mimx94386 | mimx94388 | mimx94396 | mimx94398 | mimx95224 | mimx95234 | mimx95244 | mimx95252 | mimx95254 | mimx95284 | mimx95292 | mimx95294 | mimx9534 | mimx9536 | mimx9546 | mimx9554 | mimx9556 | mimx9586 | mimx9594 | mimx9596 | mimxrt1010 | mimxrt1015 | mimxrt1020 | mimxrt1024 | mimxrt1040 | mimxrt1043 | mimxrt1046 | mimxrt1050 | mimxrt1060 | mimxrt1064 | mimxrt1151 | mimxrt1152 | mimxrt1165 | mimxrt1166 | mimxrt1171 | mimxrt1172 | mimxrt1173 | mimxrt1175 | mimxrt1176 | mimxrt1181 | mimxrt1182 | mimxrt1183 | mimxrt1184 | mimxrt1185 | mimxrt1186 | mimxrt1187 | mimxrt1189 | mimxrt118c | mimxrt118d | mimxrt118e | mimxrt2660 | mimxrt2661 | mimxrt2662 | mimxrt2663 | mimxrt533s | mimxrt555s | mimxrt595s | mimxrt685s | mimxrt735s | mimxrt758s | mimxrt798s | mimxrtl3450 | rw610 | rw612

-r, --revision <revision>#

Chip revision; if not specified, most recent one will be used

-n, --name <name>#

Fuse name/uid/otp_index to be printed.

--rich#

Enables rich format of printed output.

-ia, --ignore-access-rights#

Force reading fuses even when access rights are set to WO (Write-Only).

Environment variables

UBOOT_PROMPT

Provide a default for --uboot-prompt

verify#

Verify fuses in the device against the expected configuration.

Reads back every fuse defined in the given configuration file from the connected device and compares the actual value with the expected one. The command produces a commented YAML report with the overall status and a per-fuse MATCH/MISMATCH/NOT_VERIFIABLE result.

Exit codes: 0 = PASS, 2 = SPSDK/config error, 4 = FAIL (mismatch), 5 = PARTIAL (some fuses not verifiable), 6 = device communication error.

Usage

nxpfuses verify [OPTIONS]

Options

-t, --timeout <ms>#

Sets timeout when waiting on data over a serial line. The default is 5000 milliseconds.

-p, --port <COM[,speed>#

Serial port configuration. Default baud rate is 57600. Use ‘nxpdevscan’ utility to list devices on serial port.

-u, --usb <VID:PID|USB_PATH|DEV_NAME>#

USB device identifier. | Following formats are supported: <vid>, <vid:pid> or <vid,pid>, device/instance path, device name. | <vid>: hex or dec string; e.g. 0x0AB12, 43794. | <vid/pid>: hex or dec string; e.g. 0x0AB12:0x123, 1:3451. | Use ‘nxpdevscan’ utility to list connected device names.

-l, --lpcusbsio <usb,VID:PID|USB_PATH|SER_NUM,]spi|i2c>#

USB-SIO bridge interface.

Optional USB device filtering formats: [usb,vid:pid|usb_path|serial_number] | usb,vid:pid - Filter by USB Vendor ID and Product ID (hexadecimal) | Example: usb,0x1fc9:0x0090 | usb,usb_path - Filter by USB device path | Example: usb,1-1.3.2 | usb,serial_number - Filter by USB device serial number | Example: usb,ABCD1234

Following serial interfaces are supported:

spi[index][,port,pin,speed_kHz,polarity,phase]
- index … optional index of SPI peripheral. Example: “spi1” (default=0)
- port … bridge GPIO port used as SPI SSEL(default=0)
- pin … bridge GPIO pin used as SPI SSEL
default SSEL is set to 0.15 which works
for the LPCLink2 bridge. The MCULink OB
bridge ignores the SSEL value anyway.(default=15)
- speed_kHz … SPI clock in kHz (default 1000)
- polarity … SPI CPOL option (default=1)
- phase … SPI CPHA option (default=1)
- nirq_port … nIRQ port number (default None)
- nirq_pin … nIRQ pin number (default None)
i2c[index][,address,speed_kHz]
- index … optional index of I2C peripheral. Example: “i2c1” (default=0)
- address … I2C device address (default 0x10)
- speed_kHz … I2C clock in kHz (default 100)
- nirq_port … nIRQ port number (default None)
- nirq_pin … nIRQ pin number (default None)
Following types of interface configuration formats are supported:
- string with coma separated arguments i.e. spi1,0,15,1000,1
- string with coma separated keyword arguments (the order may not be maintained) i.e.spi1,port=0,speed_kHz=1000,nirq_port=1,nirq_pin=7
- string with combination of coma separated arguments and keyword arguments i.e.spi1,0,15,nirq_port=1,nirq_pin=7
Complete examples with USB filtering:
- usb,0x1fc9:0x0090,spi - SPI interface filtered by USB VID:PID
- usb,1-1.1,i2c,0x10,100 - I2C interface filtered by USB path
- usb,ABCD1234,spi1,0,15,1000 - SPI1 interface filtered by USB serial number
- spi - SPI interface without USB filtering (auto-detect first device)
-b, --buspal <spi[,speed,polarity,phase,lsb|msb] | i2c[,address,speed>#

Buspal settings

--uboot-prompt <uboot_prompt>#

Override default U-Boot serial prompt for ELE communication, using the option, or environment variable.

-d, --device <device>#

Select connection method for ELE communication, otherwise default from DB will be used

Options:

mboot | uboot_serial | uboot_fastboot

--buffer-addr <buffer_addr>#

Override default buffer address for ELE communication

--buffer-size <buffer_size>#

Override default buffer size for ELE communication

--fb-addr <fb_addr>#

Override default buffer address for fastboot

--fb-size <fb_size>#

Override default buffer size for fastboot

-c, --config <config>#

Required Path to the YAML/JSON configuration file.

-oc, --override-config <key_path=value>#

Allows override the individual configuration settings. The use is simple: ‘key_path=value’, like ‘family=mimxrt595s’ or in structural configuration with separating character ‘/’ like ‘containers/0/binary_container=my_container.bin’. It could be used multiple times.

-o, --output <output>#

Path to store the verification report YAML file.

-ia, --ignore-access-rights#

Force reading fuses even when access rights are set to WO (Write-Only) or Reserved.

Environment variables

UBOOT_PROMPT

Provide a default for --uboot-prompt

write#

Write fuses from configuration into device.

Usage

nxpfuses write [OPTIONS]

Options

-t, --timeout <ms>#

Sets timeout when waiting on data over a serial line. The default is 5000 milliseconds.

-p, --port <COM[,speed>#

Serial port configuration. Default baud rate is 57600. Use ‘nxpdevscan’ utility to list devices on serial port.

-u, --usb <VID:PID|USB_PATH|DEV_NAME>#

USB device identifier. | Following formats are supported: <vid>, <vid:pid> or <vid,pid>, device/instance path, device name. | <vid>: hex or dec string; e.g. 0x0AB12, 43794. | <vid/pid>: hex or dec string; e.g. 0x0AB12:0x123, 1:3451. | Use ‘nxpdevscan’ utility to list connected device names.

-l, --lpcusbsio <usb,VID:PID|USB_PATH|SER_NUM,]spi|i2c>#

USB-SIO bridge interface.

Optional USB device filtering formats: [usb,vid:pid|usb_path|serial_number] | usb,vid:pid - Filter by USB Vendor ID and Product ID (hexadecimal) | Example: usb,0x1fc9:0x0090 | usb,usb_path - Filter by USB device path | Example: usb,1-1.3.2 | usb,serial_number - Filter by USB device serial number | Example: usb,ABCD1234

Following serial interfaces are supported:

spi[index][,port,pin,speed_kHz,polarity,phase]
- index … optional index of SPI peripheral. Example: “spi1” (default=0)
- port … bridge GPIO port used as SPI SSEL(default=0)
- pin … bridge GPIO pin used as SPI SSEL
default SSEL is set to 0.15 which works
for the LPCLink2 bridge. The MCULink OB
bridge ignores the SSEL value anyway.(default=15)
- speed_kHz … SPI clock in kHz (default 1000)
- polarity … SPI CPOL option (default=1)
- phase … SPI CPHA option (default=1)
- nirq_port … nIRQ port number (default None)
- nirq_pin … nIRQ pin number (default None)
i2c[index][,address,speed_kHz]
- index … optional index of I2C peripheral. Example: “i2c1” (default=0)
- address … I2C device address (default 0x10)
- speed_kHz … I2C clock in kHz (default 100)
- nirq_port … nIRQ port number (default None)
- nirq_pin … nIRQ pin number (default None)
Following types of interface configuration formats are supported:
- string with coma separated arguments i.e. spi1,0,15,1000,1
- string with coma separated keyword arguments (the order may not be maintained) i.e.spi1,port=0,speed_kHz=1000,nirq_port=1,nirq_pin=7
- string with combination of coma separated arguments and keyword arguments i.e.spi1,0,15,nirq_port=1,nirq_pin=7
Complete examples with USB filtering:
- usb,0x1fc9:0x0090,spi - SPI interface filtered by USB VID:PID
- usb,1-1.1,i2c,0x10,100 - I2C interface filtered by USB path
- usb,ABCD1234,spi1,0,15,1000 - SPI1 interface filtered by USB serial number
- spi - SPI interface without USB filtering (auto-detect first device)
-b, --buspal <spi[,speed,polarity,phase,lsb|msb] | i2c[,address,speed>#

Buspal settings

--uboot-prompt <uboot_prompt>#

Override default U-Boot serial prompt for ELE communication, using the option, or environment variable.

-d, --device <device>#

Select connection method for ELE communication, otherwise default from DB will be used

Options:

mboot | uboot_serial | uboot_fastboot

--buffer-addr <buffer_addr>#

Override default buffer address for ELE communication

--buffer-size <buffer_size>#

Override default buffer size for ELE communication

--fb-addr <fb_addr>#

Override default buffer address for fastboot

--fb-size <fb_size>#

Override default buffer size for fastboot

-c, --config <config>#

Required Path to the YAML/JSON configuration file.

-oc, --override-config <key_path=value>#

Allows override the individual configuration settings. The use is simple: ‘key_path=value’, like ‘family=mimxrt595s’ or in structural configuration with separating character ‘/’ like ‘containers/0/binary_container=my_container.bin’. It could be used multiple times.

-y, --yes#

I accept the risk of writing the fuses.

Environment variables

UBOOT_PROMPT

Provide a default for --uboot-prompt

write-single#

Write single fuse into device.

Usage

nxpfuses write-single [OPTIONS]

Options

-t, --timeout <ms>#

Sets timeout when waiting on data over a serial line. The default is 5000 milliseconds.

-p, --port <COM[,speed>#

Serial port configuration. Default baud rate is 57600. Use ‘nxpdevscan’ utility to list devices on serial port.

-u, --usb <VID:PID|USB_PATH|DEV_NAME>#

USB device identifier. | Following formats are supported: <vid>, <vid:pid> or <vid,pid>, device/instance path, device name. | <vid>: hex or dec string; e.g. 0x0AB12, 43794. | <vid/pid>: hex or dec string; e.g. 0x0AB12:0x123, 1:3451. | Use ‘nxpdevscan’ utility to list connected device names.

-l, --lpcusbsio <usb,VID:PID|USB_PATH|SER_NUM,]spi|i2c>#

USB-SIO bridge interface.

Optional USB device filtering formats: [usb,vid:pid|usb_path|serial_number] | usb,vid:pid - Filter by USB Vendor ID and Product ID (hexadecimal) | Example: usb,0x1fc9:0x0090 | usb,usb_path - Filter by USB device path | Example: usb,1-1.3.2 | usb,serial_number - Filter by USB device serial number | Example: usb,ABCD1234

Following serial interfaces are supported:

spi[index][,port,pin,speed_kHz,polarity,phase]
- index … optional index of SPI peripheral. Example: “spi1” (default=0)
- port … bridge GPIO port used as SPI SSEL(default=0)
- pin … bridge GPIO pin used as SPI SSEL
default SSEL is set to 0.15 which works
for the LPCLink2 bridge. The MCULink OB
bridge ignores the SSEL value anyway.(default=15)
- speed_kHz … SPI clock in kHz (default 1000)
- polarity … SPI CPOL option (default=1)
- phase … SPI CPHA option (default=1)
- nirq_port … nIRQ port number (default None)
- nirq_pin … nIRQ pin number (default None)
i2c[index][,address,speed_kHz]
- index … optional index of I2C peripheral. Example: “i2c1” (default=0)
- address … I2C device address (default 0x10)
- speed_kHz … I2C clock in kHz (default 100)
- nirq_port … nIRQ port number (default None)
- nirq_pin … nIRQ pin number (default None)
Following types of interface configuration formats are supported:
- string with coma separated arguments i.e. spi1,0,15,1000,1
- string with coma separated keyword arguments (the order may not be maintained) i.e.spi1,port=0,speed_kHz=1000,nirq_port=1,nirq_pin=7
- string with combination of coma separated arguments and keyword arguments i.e.spi1,0,15,nirq_port=1,nirq_pin=7
Complete examples with USB filtering:
- usb,0x1fc9:0x0090,spi - SPI interface filtered by USB VID:PID
- usb,1-1.1,i2c,0x10,100 - I2C interface filtered by USB path
- usb,ABCD1234,spi1,0,15,1000 - SPI1 interface filtered by USB serial number
- spi - SPI interface without USB filtering (auto-detect first device)
-b, --buspal <spi[,speed,polarity,phase,lsb|msb] | i2c[,address,speed>#

Buspal settings

--uboot-prompt <uboot_prompt>#

Override default U-Boot serial prompt for ELE communication, using the option, or environment variable.

-d, --device <device>#

Select connection method for ELE communication, otherwise default from DB will be used

Options:

mboot | uboot_serial | uboot_fastboot

--buffer-addr <buffer_addr>#

Override default buffer address for ELE communication

--buffer-size <buffer_size>#

Override default buffer size for ELE communication

--fb-addr <fb_addr>#

Override default buffer address for fastboot

--fb-size <fb_size>#

Override default buffer size for fastboot

-f, --family <family>#

[required] Select the chip family.

Options:

k32w148 | kw45b41z5 | kw45b41z8 | kw45z41052 | kw45z41053 | kw45z41082 | kw45z41083 | kw47b42z83 | kw47b42z96 | kw47b42z97 | kw47b42zb2 | kw47b42zb3 | kw47b42zb6 | kw47b42zb7 | kw47z42082 | kw47z42092 | kw47z420b2 | kw47z420b3 | lpc5534 | lpc5536 | lpc55s36 | mcxn235 | mcxn236 | mcxn246 | mcxn246t | mcxn247 | mcxn247t | mcxn526 | mcxn526t | mcxn527 | mcxn527t | mcxn536 | mcxn536t | mcxn537 | mcxn537t | mcxn546 | mcxn546t | mcxn547 | mcxn547t | mcxn556s | mcxn556t | mcxn557s | mcxn557t | mcxn946 | mcxn946t | mcxn947 | mcxn947t | mcxw716a | mcxw716c | mcxw727a | mcxw727c | mcxw727d | mimx8ulp | mimx9131 | mimx9301 | mimx9302 | mimx9311 | mimx9312 | mimx9321 | mimx9322 | mimx9331 | mimx9332 | mimx9351 | mimx9352 | mimx93714 | mimx93734 | mimx93754 | mimx93w32 | mimx93w52 | mimx94145 | mimx94245 | mimx943 | mimx94316 | mimx94318 | mimx94336 | mimx94338 | mimx94356 | mimx94358 | mimx94376 | mimx94378 | mimx94386 | mimx94388 | mimx94396 | mimx94398 | mimx95224 | mimx95234 | mimx95244 | mimx95252 | mimx95254 | mimx95284 | mimx95292 | mimx95294 | mimx9534 | mimx9536 | mimx9546 | mimx9554 | mimx9556 | mimx9586 | mimx9594 | mimx9596 | mimxrt1010 | mimxrt1015 | mimxrt1020 | mimxrt1024 | mimxrt1040 | mimxrt1043 | mimxrt1046 | mimxrt1050 | mimxrt1060 | mimxrt1064 | mimxrt1151 | mimxrt1152 | mimxrt1165 | mimxrt1166 | mimxrt1171 | mimxrt1172 | mimxrt1173 | mimxrt1175 | mimxrt1176 | mimxrt1181 | mimxrt1182 | mimxrt1183 | mimxrt1184 | mimxrt1185 | mimxrt1186 | mimxrt1187 | mimxrt1189 | mimxrt118c | mimxrt118d | mimxrt118e | mimxrt2660 | mimxrt2661 | mimxrt2662 | mimxrt2663 | mimxrt533s | mimxrt555s | mimxrt595s | mimxrt685s | mimxrt735s | mimxrt758s | mimxrt798s | mimxrtl3450 | rw610 | rw612

-r, --revision <revision>#

Chip revision; if not specified, most recent one will be used

-n, --name <name>#

Required Fuse name/uid/otp_index to be written.

-v, --value <value>#

Required The new value of fuse in hex format.

--lock#

Lock the fuse after write.

-y, --yes#

Accept the risk of writing the fuses.

Environment variables

UBOOT_PROMPT

Provide a default for --uboot-prompt