Preparation
Before configuring the 40-pin header, you need to prepare for the following.
Hardware Preparation
| Type | M/O* | Item | Notes |
|---|---|---|---|
| General | M | VisionFive 2 Board or VisionFive 2 Lite Board | - |
| General | M |
|
These items are used for flashing Debian OS into a Micro-SD card. |
| GPIO | O | An oscilloscope | The oscilloscope is used to verify the GPIO voltage. |
| I2C | O |
|
- |
| SPI | O |
|
- |
| PWM | O | An oscilloscope | The oscilloscope is used to measure the corresponding pin and check the PWM period and duty cycle. |
| SPI LCD | O |
|
- |
| UART | O |
|
This is a GNSS HAT based on MAX-7Q, which supports positioning systems including GPS, GLONASS, QZSS, and SBAS. It features accurate and fast positioning with minor drifting, low power consumption, outstanding ability for anti-spoofing and anti-jamming, and so on. For detailed specifications, refer to MAX-7Q GNSS HAT. |
Software Preparation
Before configuring the 40-pin header, the Debian OS needs to be flashed into the Micro-SD card, and the DTB files need to be compiled and replaced.
| Item | Details |
|---|---|
| GitHub Repository |
Note: Make sure you have switched to the corresponding
branch.
|
| Flash OS to a Micro-SD card | See Flash OS to a Micro-SD Card. |
| Generate DTB |
To compile the device tree sources (.dtsi files) into device tree blobs (.dtb
files) using the device tree compiler (DTC), execute the following command under
the root directory of
Linux:
Note:
|
| Replace DTB |
You can directly replace the DTB file or add a startup item. Prerequisite: You already generated the DTB file. To directly replace the DTB file:
To replace the DTB file by adding a startup item:
|