You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/api-guides/fota-from-old-new.rst
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ Connect your host PC and the ESP8266 to the same AP.
68
68
Step 2: Configure and Build
69
69
-----------------------------
70
70
71
-
Here, we use the `SP8266_RTOS_SDK/examples/system/ota<https://github.com/espressif/ESP8266_RTOS_SDK/tree/master/examples/system/ota>`_ example.
71
+
Here, we use the :example:`system/ota/native_ota/1MB_flash/new_to_new_with_old` if flash is 1MB or :example:`system/ota/native_ota/2+MB_flash/new_to_new_with_old` if flash is 2MB or larger.
72
72
73
73
Open a new terminal on your PC, set the following configurations, and then compile the example:
74
74
@@ -119,6 +119,17 @@ Configure the flash size according to your actual development board's flash.
119
119
- HTTP Server Port: HTTP server port
120
120
- HTTP GET Filename: Using "ota.ota.bin" which is the target firmware of the example
121
121
122
+
5. Select connecting to the original AP
123
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
124
+
125
+
If users want to connect to the original AP of old SDK, then configurate as following:
126
+
127
+
::
128
+
129
+
Example Configuration --->
130
+
[*] Connect to the original AP
131
+
132
+
122
133
5. Build the project
123
134
^^^^^^^^^^^^^^^^^^^^
124
135
@@ -150,3 +161,10 @@ Note
150
161
151
162
- This "unpacking workflow" will only be executed when it is an old SDK firmware that upgrade to the new SDK firmware, for example, V2.0 upgrade to V3.1. After that, the FOTA in later versions (for example, V3.1 upgrade to later) will be the `normal FOTA workflow <https://github.com/espressif/ESP8266_RTOS_SDK/blob/master/examples/system/ota/README.md>`_.
152
163
164
+
Inheritance Data
165
+
================
166
+
167
+
Users can perfer to the source code :example_file:`system/ota/native_ota/2+MB_flash/new_to_new_with_old/main/ota_example_main.c` to check
168
+
how to load original AP's information.
169
+
170
+
See structure **old_sysconf** in the file of :component_file:`esp8266/include/internal/esp_system_internal.h` for the organization of this information.
0 commit comments