Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 00f82eb

Browse files
author
Daniel Campora
committed
esp32: Manual merge of Jenkinsfile and REAMDE.md
1 parent c8bd938 commit 00f82eb

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

Jenkinsfile

+11-4
Original file line numberDiff line numberDiff line change
@@ -67,26 +67,34 @@ stage ('Test'){
6767
parallel parallelTests
6868
}
6969

70+
7071
def boardBuild(name) {
7172
def name_u = name.toUpperCase()
7273
def name_short = name_u.split('_')[0]
74+
def lora_band = ""
75+
if (name_u == "LOPY_868" || name_u == "FIPY_868" || name_u == "LOPY4_868") {
76+
lora_band = " LORA_BAND=USE_BAND_868"
77+
}
78+
else if (name_u == "LOPY_915" || name_u == "FIPY_915" || name_u == "LOPY4_915") {
79+
lora_band = " LORA_BAND=USE_BAND_915"
80+
}
7381
def app_bin = name.toLowerCase() + '.bin'
7482
return {
7583
release_dir = "${JENKINS_HOME}/release/${JOB_NAME}/" + PYCOM_VERSION + "/" + GIT_TAG + "/"
7684
sh '''export PATH=$PATH:/opt/xtensa-esp32-elf/bin;
7785
export IDF_PATH=${WORKSPACE}/esp-idf;
7886
cd esp32;
79-
make clean BOARD=''' + name_short
87+
make clean BOARD=''' + name_short + lora_band
8088

8189
sh '''export PATH=$PATH:/opt/xtensa-esp32-elf/bin;
8290
export IDF_PATH=${WORKSPACE}/esp-idf;
8391
cd esp32;
84-
make TARGET=boot -j2 BOARD=''' + name_short
92+
make TARGET=boot -j2 BOARD=''' + name_short + lora_band
8593

8694
sh '''export PATH=$PATH:/opt/xtensa-esp32-elf/bin;
8795
export IDF_PATH=${WORKSPACE}/esp-idf;
8896
cd esp32;
89-
make TARGET=app -j2 BOARD=''' + name_short
97+
make TARGET=app -j2 BOARD=''' + name_short + lora_band
9098

9199
sh '''cd esp32/build/'''+ name_u +'''/release;
92100
mkdir -p firmware_package;
@@ -164,4 +172,3 @@ def get_remote_name(short_name) {
164172
def get_device_name(short_name) {
165173
return "/dev/serial/by-id/usb-" + short_name + "-if00"
166174
}
167-

README.md

+2-10
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,14 @@ By default the firmware is built for the WIPY2:
103103
$ make TARGET=boot
104104
$ make TARGET=app
105105
$ make flash
106-
107-
You can change the board type by using the BOARD variable:
108106

109107
You can change the board type by using the BOARD variable:
110108

111109
$ cd esp32
112110
$ make BOARD=GPY clean
113111
$ make BOARD=GPY TARGET=boot
114112
$ make BOARD=GPY TARGET=app
113+
$ make BOARD=GPY flash
115114

116115
We currently support the following BOARD types:
117116

@@ -132,9 +131,6 @@ To flash at full speed, use ESPSPEED variable:
132131

133132
$ make ESPSPEED=921600 flash
134133

135-
To build and flash your LoPy for the default region (868 MHz):
136-
$ make ESPSPEED=921600 flash
137-
138134
To build and flash a LoPy:
139135

140136
$ cd esp32
@@ -144,11 +140,7 @@ To build and flash a LoPy:
144140
$ make BOARD=LOPY flash
145141

146142
The above also applies to the FiPy and LoPy4
147-
or for 915MHz regions:
148143

149144
Make sure that your board is placed into programming mode, otherwise flashing will fail.<br>
150-
151-
152-
153-
Make sure that your board is placed into programming mode, otherwise flahing will fail.
145+
PyTrack and PySense boards will automatically switch into programming mode (currently supported on MacOS and Linux only!)<br>
154146
Expansion Board 2.0 users, please connect ``P2`` to ``GND`` and then reset the board.

0 commit comments

Comments
 (0)