feat(partition_table): Compiling script gets partition information from partition binary

This commit is contained in:
dongheng
2019-02-22 18:11:49 +08:00
parent b5675dc497
commit 343c6ffd6a
10 changed files with 288 additions and 214 deletions

View File

@ -53,32 +53,7 @@ Note: System will add the absolute path of the project to the head of the "Custo
(XXXXXX)Partition table offset address at flash
```
## Step 3: Configurate application location:
Configurate application location at "mennuconfig" like following base on partition table file.
If you select 1MB flash, application location configuration menu is like following:
```
Partition Table --->
[*] Support to setup partition parameter of APP2
(0x5000) App1 offset address
(0x7B000) App1 size by bytes
(0x85000) App2 offset address
(0x7b000) App2 size by bytes
```
If you select 2MB flash and above size, application location configuration menu is like following:
```
Partition Table --->
(0x10000) APP1 partition offset
(0xF0000) APP1 partition size(by bytes)
```
Note: The firmware location information must be same as partition table file. **make ota flash** will only download the app1 at **APP1 partition offset**.
**make ota flash** will only download the app1 at **APP1 partition offset**.
# Workflow
@ -144,7 +119,7 @@ Serial flasher config --->
(X) 1 MB
```
Configurate the application location information and it must be the same as the OTA example's information, you can refer to the **Step 3: Configurate application location** of **Custom partition configuration**.
Configurate the application partition table information and it must be the same as the OTA example's information, you can refer to the **Custom partition configuration**.
Save your changes, and type `make` to build the example.

View File

@ -6,7 +6,3 @@ CONFIG_ESPTOOLPY_FLASHSIZE_1MB=y
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_two_ota.1MB.mini.csv"
CONFIG_PARTITION_TABLE_OFFSET=0x4000
CONFIG_APP1_OFFSET=0x6000
CONFIG_APP1_SIZE=0x7A000
CONFIG_APP2_OFFSET=0x86000
CONFIG_APP2_SIZE=0x7A000