You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-24Lines changed: 15 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,19 +4,25 @@
4
4
5
5
Arduino based logic for OpenPPG SP140 Throttle Controller
6
6
7
-
#### This master branch is only for testing the latest firmware for the and SP140
7
+
#### This master branch is only for testing the latest firmware for the and SP140 controllers running the ESP32-S3 processor.
8
8
9
9
X4 code has been migrated to a separate repo - https://github.com/openppg/x4-controller
10
10
11
11
It may not be stable and is not recommended for flying.
12
12
See stable releases [here](https://github.com/openppg/eppg-controller/releases)
13
-
> Version 6.1 was intially released only for the reworked RP2040 module based controller and being ported to the original RP2040 PCB which is currently in testing. The version shipped with that hardware can be found on the [rp2040-module-release branch](https://github.com/openppg/eppg-controller/tree/rp2040-module-release)
13
+
<details>
14
+
<summary>Older Version Information</summary>
14
15
15
-
> Version 6.0 introduced [FreeRTOS](https://www.freertos.org/index.html) and is currently only working with RP2040 processors. For M0/SAMD21 processors please use [version/5 branch](https://github.com/openppg/eppg-controller/tree/version/5).
16
+
For non-CAN bus controllers please use [version/6 branch](https://github.com/openppg/eppg-controller/tree/version/6).
16
17
17
-
> For batch 3 (non-telemetry) controllers please see the [batch-3 branch](https://github.com/openppg/eppg-controller/tree/batch-3).
18
+
Version 6.1 was initially released only for the reworked RP2040 module based controller and being ported to the original RP2040 PCB which is currently in testing. The version shipped with that hardware can be found on the [rp2040-module-release branch](https://github.com/openppg/eppg-controller/tree/rp2040-module-release)
18
19
19
-
> For batch 2 (Arduino nano based) controllers please see the [batch-2 branch](https://github.com/openppg/eppg-controller/tree/batch-2).
20
+
Version 6.0 introduced [FreeRTOS](https://www.freertos.org/index.html) and is currently only working with RP2040 processors. For M0/SAMD21 processors please use [version/5 branch](https://github.com/openppg/eppg-controller/tree/version/5).
21
+
22
+
For batch 3 (non-telemetry) controllers please see the [batch-3 branch](https://github.com/openppg/eppg-controller/tree/batch-3).
23
+
24
+
For batch 2 (Arduino nano based) controllers please see the [batch-2 branch](https://github.com/openppg/eppg-controller/tree/batch-2).
25
+
</details>
20
26
21
27
## Build and flash firmware
22
28
@@ -31,15 +37,7 @@ Suitable for Mac, Windows, and Linux
31
37
1. Follow the instructions here for using with VSCode https://platformio.org/install/ide?install=vscode
32
38
2. Extract the downloaded code from the repo [here](https://github.com/openppg/eppg-controller/archive/master.zip) (or `git clone` it)
33
39
3. Open the folder using the PlatformIO "open project" option inside of VSCode.
34
-
35
-
### Flash the OpenPPG Code
36
-
37
-
1. Click the "PlatformIO Build" button inside of VSCode or enter `platformio run --target upload` in the command line. PlatformIO will automatically download libraries the first time it runs.
38
-
39
-
#### Install the driver
40
-
41
-
Batch 3+ OpenPPG controllers and early SP140 controllers are powered by Atmel’s SAMD21G18A MCU, featuring a 32-bit ARM Cortex® M0+ core. On some operating systems you may need extra drivers to communicate with it.
42
-
Newer SP140 controllers feature the RP2040 MCU which is a dual-core variant of the ARM Cortex® M0+.
40
+
4. The first time you build the project it will download the libraries.
43
41
44
42
#### Download and Prepare OpenPPG Code
45
43
@@ -51,19 +49,12 @@ Newer SP140 controllers feature the RP2040 MCU which is a dual-core variant of t
51
49
2. Connect the controller to your computer by using the USB port on the bottom of the controller.
52
50
3. Flash the firmware by clicking "Upload" in the bottom left.
53
51
54
-
## Bootloader
55
-
56
-
The latest batches of OpenPPG SP140 controllers use the UF2 bootloader (compatible with Arduino).
57
-
It makes firmware updates as simple as drag and drop.
58
-
Learn more here https://github.com/openppg/uf2-samdx1
59
-
60
-
### Building .uf2 update file
52
+
### Building binary update file
61
53
62
-
The uf2 bootloader can update firmware with a .uf2 binary file built from a complied .bin firmware file. The .bin file is automatically built when "verifying" the firmware in either Arduino IDE or PIO.
63
-
Using the uf2-samdx repo above python tool the command to build a compatible .uf2 file should look something like:
54
+
esp32 uses esptool to build a binary file from the compiled .bin file.
0 commit comments