Contents
List of Tables.......................................................................................................................................................................................6
List of Figures.....................................................................................................................................................................................7
Legal Statements................................................................................................................................................................................ ii
Preface............................................................................................................................................................................................... iii
2. GPIO Pinout ...................................................................................................................................................................... 9
3. Preparation........................................................................................................................................................................ 10
3.1. Preparing Hardware.......................................................................................................................................................... 10
3.2. Preparing Software........................................................................................................................................................... 11
3.2.1. GitHub Repository..................................................................................................................................................11
3.2.2. Flashing Debian OS to a Micro-SD Card................................................................................................................ 11
3.2.3. Generating DTB...................................................................................................................................................... 11
3.2.4. Replacing DTB........................................................................................................................................................ 12
5.1.1. Hardware Setup..................................................................................................................................................... 16
5.1.2. Configuring dts File................................................................................................................................................ 17
6.2.1. Loopback Test.........................................................................................................................................................21
6.2.2. Testing SPI with ADXL345 Module.........................................................................................................................22
7.1.1. Modify Pin..............................................................................................................................................................25
7.1.2. PWM and Pin Name Mapping...............................................................................................................................25
8.2.1. Hardware Setup..................................................................................................................................................... 28
8.2.2. Debugging UART Send and Receive Functions...................................................................................................... 29
9.1.1. Hardware Setup..................................................................................................................................................... 33
9.1.2. Running Example with Sense Hat (B).................................................................................................................... 34
© 2018-2022 StarFive Technology
All rights reserved
4