ESP-IDF
esp_ota_select_entry_t::ota_seq
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
esp_ota_select_entry_t::ota_seq
esp_ota_select_entry_t::ota_seq field
Syntax
Show:
Summary
Declaration
from
esp_flash_partitions.h:74
uint32_t
ota_seq
;
Examples
References
from
examples
Code
Location
Referrer
uint32_t
ota_seq
;
esp_flash_partitions.h:74
return
esp_rom_crc32_le
(
UINT32_MAX
,
(
uint8_t
*
)
&
s
->
ota_seq
,
4
)
;
bootloader_common_loader.c:36
bootloader_common_ota_select_crc()
return
s
->
ota_seq
==
UINT32_MAX
||
s
->
ota_state
==
ESP_OTA_IMG_INVALID
||
s
->
ota_state
==
ESP_OTA_IMG_ABORTED
;
bootloader_common_loader.c:41
bootloader_common_ota_select_invalid()
uint32_t
condition
=
(
max
==
true
)
?
MAX
(
two_otadata
[
0
]
.
ota_seq
,
two_otadata
[
1
]
.
ota_seq
)
:
MIN
(
two_otadata
[
0
]
.
ota_seq
,
two_otadata
[
1
]
.
ota_seq
)
;
bootloader_common_loader.c:128
bootloader_common_select_otadata()
if
(
condition
==
two_otadata
[
0
]
.
ota_seq
)
{
bootloader_common_loader.c:129
bootloader_common_select_otadata()
ESP_LOGD
(
TAG
,
"otadata[0]: sequence values 0x%08"
PRIx32
,
otadata
[
0
]
.
ota_seq
)
;
bootloader_utility.c:357
bootloader_utility_get_selected_boot_partition()
ESP_LOGD
(
TAG
,
"otadata[1]: sequence values 0x%08"
PRIx32
,
otadata
[
1
]
.
ota_seq
)
;
bootloader_utility.c:358
bootloader_utility_get_selected_boot_partition()
if
(
(
otadata
[
0
]
.
ota_seq
==
UINT32_MAX
||
otadata
[
0
]
.
crc
!=
bootloader_common_ota_select_crc
(
&
otadata
[
0
]
)
)
&&
bootloader_utility.c:383
bootloader_utility_get_selected_boot_partition()
(
otadata
[
1
]
.
ota_seq
==
UINT32_MAX
||
otadata
[
1
]
.
crc
!=
bootloader_common_ota_select_crc
(
&
otadata
[
1
]
)
)
)
{
bootloader_utility.c:384
bootloader_utility_get_selected_boot_partition()
uint32_t
ota_seq
=
otadata
[
active_otadata
]
.
ota_seq
-
1
;
// Raw OTA sequence number. May be more than # of OTA slots
bootloader_utility.c:407
bootloader_utility_get_selected_boot_partition()
otadata
.
ota_seq
=
index
+
1
;
bootloader_utility.c:460
set_actual_ota_seq()
ESP_LOGI
(
TAG
,
"Set actual ota_seq=%"
PRIu32
" in otadata[0]"
,
otadata
.
ota_seq
)
;
bootloader_utility.c:466
set_actual_ota_seq()
two_otadata
[
sec_id
]
.
ota_seq
=
seq
;
esp_ota_ops.c:370
rewrite_ota_seq()
uint32_t
seq
=
otadata
[
active_otadata
]
.
ota_seq
;
esp_ota_ops.c:421
esp_rewrite_ota_data()
int
ota_slot
=
(
otadata
[
active_otadata
]
.
ota_seq
-
1
)
%
ota_app_count
;
// Actual OTA partition selection
esp_ota_ops.c:527
esp_ota_get_boot_partition()
int
slot
=
(
otadata
[
last_active_ota
]
.
ota_seq
-
1
)
%
ota_app_count
;
esp_ota_ops.c:721
esp_ota_check_rollback_is_possible()
esp_err_t
err
=
rewrite_ota_seq
(
otadata
,
otadata
[
active_otadata
]
.
ota_seq
,
active_otadata
,
otadata_partition
)
;
esp_ota_ops.c:755
esp_ota_current_ota_is_workable()
esp_err_t
err
=
rewrite_ota_seq
(
otadata
,
otadata
[
active_otadata
]
.
ota_seq
,
active_otadata
,
otadata_partition
)
;
esp_ota_ops.c:769
esp_ota_current_ota_is_workable()
return
s
->
ota_seq
!=
UINT32_MAX
&&
esp_ota_ops.c:794
check_invalid_otadata()
int
ota_slot
=
(
otadata
[
invalid_otadata
]
.
ota_seq
-
1
)
%
ota_app_count
;
esp_ota_ops.c:822
esp_ota_get_last_invalid_partition()
int
ota_slot
=
(
otadata
[
i
]
.
ota_seq
-
1
)
%
ota_app_count
;
esp_ota_ops.c:856
esp_ota_get_state_partition()
if
(
otadata
[
inactive_otadata
]
.
ota_seq
==
UINT32_MAX
||
otadata
[
inactive_otadata
]
.
crc
!=
bootloader_common_ota_select_crc
(
&
otadata
[
inactive_otadata
]
)
)
{
esp_ota_ops.c:886
esp_ota_erase_last_boot_app_partition()
int
ota_slot
=
(
otadata
[
inactive_otadata
]
.
ota_seq
-
1
)
%
ota_app_count
;
// Actual OTA partition selection
esp_ota_ops.c:890
esp_ota_erase_last_boot_app_partition()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
esp_ota_select_entry_t::ota_seq
is written by 2 functions and is read by 12 functions:
rewrite_ota_seq()
set_actual_ota_seq()
All items filtered out
esp_ota_select_entry_t::ota_seq
esp_rewrite_ota_data()
esp_ota_get_boot_partition()
esp_ota_check_rollback_is_possible()
esp_ota_current_ota_is_workable()
check_invalid_otadata()
esp_ota_get_last_invalid_partition()
esp_ota_get_state_partition()
esp_ota_erase_last_boot_app_partition()
bootloader_common_ota_select_invalid()
bootloader_common_select_otadata()
bootloader_utility_get_selected_boot_partition()
set_actual_ota_seq()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out