After various memory exercises, then back to GPS to get UBlox working. UBlox is working. TODO: start libraries, downplay SD Card as we can use memory for interim logging
This commit is contained in:
parent
c7646e169e
commit
41c1fe6819
16 changed files with 2016 additions and 71 deletions
11
exercises/17_Flash/read_partition_bin.py
Normal file
11
exercises/17_Flash/read_partition_bin.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import struct
|
||||
with open('AMY_test_partitions_read.bin', 'rb') as f:
|
||||
data = f.read()
|
||||
seq0 = struct.unpack('<I', data[0:4])[0]
|
||||
seq1 = struct.unpack('<I', data[32:36])[0]
|
||||
print(f"OTA seq0: {seq0:08x}")
|
||||
print(f"OTA seq1: {seq1:08x}")
|
||||
if seq0 > seq1:
|
||||
print("→ app0 is active, new uploads go to app1")
|
||||
else:
|
||||
print("→ app1 is active, new uploads go to app0")
|
||||
Loading…
Add table
Add a link
Reference in a new issue