Serial port upgrade*
This is the firmware upgrade guide for GX8002. We provide upgrade tools for both Linux and Windows environments.
1. Upgrade in Linux*
1.1 Upgrade tool*
The executable bootx in the directory 'lvp_tws/tools/bootx/' is the tool you need to upgrade the serial port.
1.2 Upgrade instruction description*
$ sudo ./bootx -m grus -c "download 0x0 ../../output/mcu_nor.bin;reboot;" -d /dev/ttyUSB0
-
Instruction specification
- 1.The instructions provided above are executed under the
boot
' directory - 2.Instruction format
sudo./bootx -m grus -c "download 0x0 < Path to firmware >; reboot;" -d < serial port device >
- 3.
reboot
is the command to restart the device after the upgrade - 4.Query serial port number instruction
ls /dev/ttyUSB*
warn
Generally, it is recommended to upgrade by clicking commands directly or using the upgrade script
- 1.The instructions provided above are executed under the
1.3 Upgrade script [recommend]*
In the bootx/ directory, there is the script flash_nor.sh. You can directly run the script to upgrade the firmware. Add the serial port number corresponding to the device to upgrade the firmware. The default firmware upgrade of this script is mcu_nor.bin compiled and generated in the output directory.
$ ./flash_nor.sh 0 # 0 Indicates serial port number:/dev/ttyUSB0; This parameter is set according to the actual serial port number.
1.4 Adjust upgrade speed*
The above instructions can be added -r to adjust the baud rate, such as the need to adjust the recommended '500000' and '576000', the sampling rate is too high may not be supported by some devices.
$ ./flash_nor.sh 0 -r 576000
1.5 Upgrade succeeded*
Before running the preceding script, power on the device again. Enter the upgrade . If the following log is printed, the upgrade is successful.
Found serial: /dev/ttyUSB1
downloading [1/2] :
[==========][100%]
downloading [2/2] :
[==========][100%]
Excute cmd : download 0x0 /home/robotos/lvp/lvp_tws/output/mcu_nor.bin
downloading [1/1]
[==========][100%]
done
Excute cmd : reboot
done
2. Upgrade in the Windows environment*
Please read NCDownloader Usage Guide