Use phy_init partition for phy init data and use recommended u-blox data
This commit is contained in:
parent
c4f8990430
commit
ee167aba00
3 changed files with 10 additions and 5 deletions
11
combine.py
11
combine.py
|
|
@ -4,8 +4,9 @@ import sys;
|
|||
|
||||
booloaderData = open("build/bootloader/bootloader.bin", "rb").read()
|
||||
partitionData = open("build/partitions.bin", "rb").read()
|
||||
appData = open("build/nina-fw.bin", "rb").read()
|
||||
phyData = open("data/phy.bin", "rb").read()
|
||||
certsData = open("data/roots.pem", "rb").read()
|
||||
appData = open("build/nina-fw.bin", "rb").read()
|
||||
|
||||
# calculate the output binary size, app offset
|
||||
outputSize = 0x30000 + len(appData)
|
||||
|
|
@ -22,8 +23,8 @@ for i in range(0, len(booloaderData)):
|
|||
for i in range(0, len(partitionData)):
|
||||
outputData[0x8000 + i] = partitionData[i]
|
||||
|
||||
for i in range(0, len(appData)):
|
||||
outputData[0x30000 + i] = appData[i]
|
||||
for i in range(0, len(phyData)):
|
||||
outputData[0xf000 + i] = phyData[i]
|
||||
|
||||
for i in range(0, len(certsData)):
|
||||
outputData[0x10000 + i] = certsData[i]
|
||||
|
|
@ -31,6 +32,10 @@ for i in range(0, len(certsData)):
|
|||
# zero terminate the pem file
|
||||
outputData[0x10000 + len(certsData)] = 0
|
||||
|
||||
for i in range(0, len(appData)):
|
||||
outputData[0x30000 + i] = appData[i]
|
||||
|
||||
|
||||
outputFilename = "NINA_W102.bin"
|
||||
if (len(sys.argv) > 1):
|
||||
outputFilename = sys.argv[1]
|
||||
|
|
|
|||
BIN
data/phy.bin
Normal file
BIN
data/phy.bin
Normal file
Binary file not shown.
|
|
@ -256,8 +256,8 @@ CONFIG_ESP32_WIFI_TASK_PINNED_TO_CORE_1=
|
|||
#
|
||||
# PHY
|
||||
#
|
||||
CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE=y
|
||||
CONFIG_ESP32_PHY_INIT_DATA_IN_PARTITION=
|
||||
CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE=
|
||||
CONFIG_ESP32_PHY_INIT_DATA_IN_PARTITION=y
|
||||
CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER=20
|
||||
CONFIG_ESP32_PHY_MAX_TX_POWER=20
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue