Rechercher par mot-clé

Mise à jour de la PiZiGate+

Tout d’abord, Commencez par télécharger le dernier firmware : https://github.com/fairecasoimeme/ZiGatev2/releases puis copier le fichier binaire(.bin) dans le répertoire de votre choix.

Sous Linux

Le code étant sous licence de la part de NXP, seuls les binaires seront proposés (pour le moment) selon les différentes plateformes.

Pour commencer, il faut mettre à jour votre système et installer des librairies :

sudo apt-get update
sudo apt-get upgrade

Ensuite il suffit de télécharger le binaire correspondant à votre architecture

Raspberry PI

ARM (32bits) (RPI1 2 3 4 A/B B+ 0 0W)

Buster (Debian 10)

$ sudo apt-get install libncurses-dev libusb-1.0-0-dev libftdi1 libftdi1-dev libudev-dev
$ wget -O https://zigate.fr/wp-content/uploads/2021/05/ARM_32_Buster.tar
$ tar -xvf ARM_32_Buster.tar
$ chmod +x DK6Programmer

Stretch (Debian 9)

$ sudo apt-get install libncurses5-dev libusb-1.0-0-dev libftdi1 libftdi-dev libudev-dev
$ wget https://zigate.fr/wp-content/uploads/2021/05/ARM_32_Stretch-1.tar
$ tar -xvf ARM_32_Stretch-1.tar
$ chmod +x DK6Programmer

AArch64 (RPI 4)

Buster (Debian 10)

$ sudo apt-get install libncurses-dev libusb-1.0-0-dev libftdi1 libftdi1-dev libudev-dev
$ wget https://zigate.fr/wp-content/uploads/2021/05/AArch64_Buster-1.tar
$ tar -xvf AArch64_Buster-1.tar
$ chmod +x DK6Programme

Enfin, il suffit de lancer la commande suivante :

PiZiGate+

Avant chaque mise à jour, il faut passer la PiZiGate+ en mode Flash.

$ gpio mode 0 out
$ gpio mode 2 out
$ gpio write 2 0 
$ gpio write 0 0
$ gpio write 0 1

Sans remise à zéro :

$ ./DK6Programmer -s <COM> -P 115200 -Y -p <CHEMIN_BINAIRE.bin>

Avec remise à zéro:

$ ./DK6Programmer -s <COM> -P 115200 -e FLASH -Y -p <CHEMIN_BINAIRE.bin>

La valeur du port COM dépend de la Raspberry:

En général, c’est soit /dev/ttyAMA0 soit /dev/Serial0 (voir les articles sur les compatibilités avec les Raspberry Pi)

Détail des fonctions de l’outil :

-l --list
List available COM port connections

-V --verbosity <verbosity>
Verbosity level. Increase/decrease amount of debug information. Default 1.

-Y --force
Force operation. This option avoids the confirmation dialogue when programming One Time Programmable memory, loading incompatible files, or automatically erasing before programming.

Connection options:
-s --serial <serial device>
Host's serial port for device, e.g. COM1, /dev/ttyS1. May be specified multiple times for multiple devices.

-I --initialbaud <rate>
Set initial baud rate of serial connection.

-P --programbaud <rate>
Set programming baud rate of serial connection.

-N --nodevicereset
Do not reset the device when all operations of the command line are done. By default, the device is reset: if non-FTDI UART is used the device must be put back into ISP mode again manually for subsequent commands. If FTDI UART is used, entering ISP mode after reset is performed automatically.

Programming options:
-m --memory
List names of the available device memories to use with the following
commands

-p --program [memory][:length][@offset]=<filename>
Program device memory with the given file.

-d --dump [memory][:length][@offset]=<filename>
Dump device memory contents into a file.

-w --write [memory][:length][@offset]=<data>
<alias>=<data>
Write device memory or alias with the specified data. The data is a byte stream of maximum 512 bytes, so please provide an even number of hexadecimal digits. For example, to write 0xcafe, replace <data> field with cafe. The list of available aliases is shown below in the devicespecific help section.

-r --read [memory][:length][@offset]
<alias>
Read device memory or alias contents. The memory reported content cannot exceed 512 bytes. The list of available aliases is shown below in the device specific help section.

-e --erase [memory][:length][@offset]
Erase device memory.

-v --verify
If specified, verify the flash image programmed was loaded correctly.

--authkey=<filename>
Set authentication key with the given file.

--unlockmode <mode>=<filename>
If mode=127, set unlock key with the given file. On completion of the unlock command, the device has been implicitely reset. This means that the option cannot be used along with other programming options (--memory, --program, ...). The device shall be put back in ISP mode again for subsequent commands.
Translate »