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

Commit 3a7776d

Browse files
authored
Merge pull request #499 from pycom/release_1.20.2.r2
Release 1.20.2.r2
2 parents d574024 + 72bc4a7 commit 3a7776d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+914
-296
lines changed

esp32/Makefile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ifeq ($(wildcard boards/$(BOARD)/.),)
1414
$(error Invalid BOARD specified)
1515
endif
1616

17-
IDF_HASH=c61fe64
17+
IDF_HASH=3394ee5
1818

1919
TARGET ?= boot_app
2020

@@ -123,6 +123,19 @@ CFLAGS_XTENSA_PSRAM = -mfix-esp32-psram-cache-issue
123123
CFLAGS = $(CFLAGS_XTENSA) $(CFLAGS_XTENSA_PSRAM) $(CFLAGS_XTENSA_OPT) -nostdlib -std=gnu99 -g3 -ggdb -fstrict-volatile-bitfields -Iboards/$(BOARD)
124124
CFLAGS_SIGFOX = $(CFLAGS_XTENSA) -O2 -nostdlib -std=gnu99 -g3 -ggdb -fstrict-volatile-bitfields -Iboards/$(BOARD)
125125

126+
# Configure floating point support
127+
ifeq ($(MICROPY_FLOAT_IMPL),double)
128+
CFLAGS += -DMICROPY_FLOAT_IMPL=MICROPY_FLOAT_IMPL_DOUBLE
129+
else
130+
ifeq ($(MICROPY_FLOAT_IMPL),none)
131+
CFLAGS += -DMICROPY_FLOAT_IMPL=MICROPY_FLOAT_IMPL_NONE
132+
else
133+
ifeq ($(MICROPY_FLOAT_IMPL),single)
134+
CFLAGS += -DMICROPY_FLOAT_IMPL=MICROPY_FLOAT_IMPL_FLOAT
135+
endif
136+
endif
137+
endif
138+
126139
LDFLAGS = -nostdlib -Wl,-Map=$(@:.elf=.map) -Wl,--no-check-sections -u call_user_start_cpu0
127140
LDFLAGS += -Wl,-static -Wl,--undefined=uxTopUsedPriority -Wl,--gc-sections
128141

0 Bytes
Binary file not shown.

esp32/bootloader/lib/libefuse.a

0 Bytes
Binary file not shown.

esp32/bootloader/lib/liblog.a

0 Bytes
Binary file not shown.

esp32/bootloader/lib/libmicro-ecc.a

0 Bytes
Binary file not shown.

esp32/bootloader/lib/libsoc.a

0 Bytes
Binary file not shown.

esp32/bootloader/lib/libspi_flash.a

0 Bytes
Binary file not shown.

esp32/esp32.project.ld

Lines changed: 21 additions & 21 deletions
Large diffs are not rendered by default.

esp32/frozen/Pybytes/_OTA.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ def update(self, customManifest=None, fwtype=None, token=None):
137137

138138
def get_file(self, f):
139139
new_path = "{}.new".format(f['dst_path'])
140-
141140
# If a .new file exists from a previously failed update delete it
142141
try:
143142
os.remove(new_path)
@@ -184,6 +183,15 @@ def delete_file(self, f):
184183

185184
def write_firmware(self, f):
186185
# hash =
186+
url = f['URL'].split("//")[1].split("/")[0]
187+
188+
if url.find(":") > -1:
189+
self.ip = url.split(":")[0]
190+
self.port = int(url.split(":")[1])
191+
else:
192+
self.ip = url
193+
self.port = 443
194+
187195
self.get_data(
188196
f['URL'].split("/", 3)[-1],
189197
hash=True,
@@ -222,7 +230,6 @@ def _http_get(self, path, host):
222230

223231
def get_data(self, req, dest_path=None, hash=False, firmware=False):
224232
h = None
225-
226233
useSSL = int(self.port) == 443
227234

228235
# Connect to server
@@ -232,11 +239,9 @@ def get_data(self, req, dest_path=None, hash=False, firmware=False):
232239
if (int(self.port) == 443):
233240
print("Wrapping socket")
234241
s = ssl.wrap_socket(s)
235-
236242
print("Sending request")
237243
# Request File
238244
s.sendall(self._http_get(req, "{}:{}".format(self.ip, self.port)))
239-
240245
try:
241246
content = bytearray()
242247
fp = None
@@ -247,6 +252,7 @@ def get_data(self, req, dest_path=None, hash=False, firmware=False):
247252
fp = open(dest_path, 'wb')
248253

249254
if firmware:
255+
print_debug(4, "Starting OTA...")
250256
pycom.ota_start()
251257

252258
h = uhashlib.sha1()

esp32/frozen/Pybytes/_pybytes_constants.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ class constants:
6969
__TYPE_OTA = 0x05
7070
__TYPE_FCOTA = 0x06
7171
__TYPE_PONG = 0x07
72-
__TYPE_PYMESH = 0x0D
73-
__TYPE_PYBYTES = 0x0E
74-
__TYPE_RELEASE_INFO = 0x0B
7572
__TYPE_RELEASE_DEPLOY = 0x0A
73+
__TYPE_RELEASE_INFO = 0x0B
7674
__TYPE_DEVICE_NETWORK_DEPLOY = 0x0C
75+
__TYPE_PYMESH = 0x0D
76+
__TYPE_PYBYTES = 0x0E
77+
__TYPE_ML = 0x0F
7778
__PYBYTES_PROTOCOL = ">B%ds"
7879
__PYBYTES_PROTOCOL_PING = ">B"
7980
__PYBYTES_INTERNAL_PROTOCOL = ">BBH"
@@ -90,6 +91,8 @@ class constants:
9091
__COMMAND_ANALOG_WRITE = 4
9192
__COMMAND_CUSTOM_METHOD = 5
9293
__COMMAND_CUSTOM_LOCATION = 6
94+
__COMMAND_START_SAMPLE = 7
95+
__COMMAND_DEPLOY_MODEL = 8
9396

9497
__FCOTA_COMMAND_HIERARCHY_ACQUISITION = 0x00
9598
__FCOTA_COMMAND_FILE_ACQUISITION = 0x01

0 commit comments

Comments
 (0)