program-nrf24lx1

glasgow run program-nrf24lx1

Program the non-volatile memory of nRF24LE1 and nRF24LU1+ microcontrollers.

usage: glasgow run program-nrf24lx1 [-h] [-V VOLTS] [--prog PIN] [--sck PIN]
                                    [--copi PIN] [--cipo PIN] [--cs PIN]
                                    [--reset PIN] [-f FREQ] -d DEVICE
                                    OPERATION ...
-h, --help

show this help message and exit

-V <volts>, --voltage <volts>

microcontroller power (range: 1.8..5 V, or ‘S<port>’ to follow the voltage sensed on a port; default: unchanged)

--prog <pin>

bind programming mode select (PROG) to PIN (default: ‘A0’, required)

--sck <pin>

bind serial clock to PIN (default: ‘A1’, required)

--copi <pin>

bind controller out, peripheral in to PIN (default: ‘A2’, required)

--cipo <pin>

bind controller in, peripheral out to PIN (default: ‘A3’, required)

--cs <pin>

bind chip select to PIN (default: ‘A4’, required)

--reset <pin>

bind microcontroller reset (active low) to PIN (default: ‘A5’, required)

-f <freq>, --frequency <freq>

set SPI frequency to FREQ kHz (default: 1000)

-d {LE1,LU1p32k,LU1p16k}, --device {LE1,LU1p32k,LU1p16k}

type of device to program (one of: LE1, LU1p32k, LU1p16k)

glasgow run program-nrf24lx1 -d DEVICE enable-debug

usage: glasgow run program-nrf24lx1 -d DEVICE enable-debug [-h]
-h, --help

show this help message and exit

glasgow run program-nrf24lx1 -d DEVICE erase

usage: glasgow run program-nrf24lx1 -d DEVICE erase [-h]
                                                    [--info-page BACKUP-HEX-FILE]
-h, --help

show this help message and exit

--info-page <backup-hex-file>

back up, erase, and restore info page, removing read protection (DANGEROUS)

glasgow run program-nrf24lx1 -d DEVICE program

usage: glasgow run program-nrf24lx1 -d DEVICE program [-h] [--info-page]
                                                      HEX-FILE
hex-file

firmware file to read (in Intel HEX format)

-h, --help

show this help message and exit

--info-page

erase and program info page, if present in firmware file (DANGEROUS)

glasgow run program-nrf24lx1 -d DEVICE protect-read

usage: glasgow run program-nrf24lx1 -d DEVICE protect-read [-h]
-h, --help

show this help message and exit

glasgow run program-nrf24lx1 -d DEVICE read

usage: glasgow run program-nrf24lx1 -d DEVICE read [-h] HEX-FILE
hex-file

firmware file to write (in Intel HEX format)

-h, --help

show this help message and exit