diff --git a/board/TencentOS_tiny_EVB_MX_Plus/KEIL/ota/ota_application_download_through_http/TencentOS_tiny.uvoptx b/board/TencentOS_tiny_EVB_MX_Plus/KEIL/ota/ota_application_download_through_http/TencentOS_tiny.uvoptx
index 7ce8cd66..2da926f1 100644
--- a/board/TencentOS_tiny_EVB_MX_Plus/KEIL/ota/ota_application_download_through_http/TencentOS_tiny.uvoptx
+++ b/board/TencentOS_tiny_EVB_MX_Plus/KEIL/ota/ota_application_download_through_http/TencentOS_tiny.uvoptx
@@ -145,7 +145,7 @@
0
ST-LINKIII-KEIL_SWO
- -U303030303030303030303031 -O10446 -SF4000 -C0 -A0 -I0 -HNlocalhost -HP7184 -P1 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO15 -FD20000000 -FC1000 -FN1 -FF0STM32L4xx_256.FLM -FS08000000 -FL040000 -FP0($$Device:STM32L431RCTx$CMSIS\Flash\STM32L4xx_256.FLM)
+ -U51FF68064965575333151687 -O10446 -SF10000 -C0 -A0 -I0 -HNlocalhost -HP7184 -P1 -N00("ARM CoreSight SW-DP (ARM Core") -D00(2BA01477) -L00(0) -TO131090 -TC10000000 -TT10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO15 -FD20000000 -FC1000 -FN1 -FF0STM32L4xx_256.FLM -FS08007800 -FL019000 -FP0($$Device:STM32L431RCTx$CMSIS\Flash\STM32L4xx_256.FLM)
@@ -213,7 +213,7 @@
1
- 1
+ 0
0
2
10000000
@@ -383,7 +383,7 @@
examples
- 0
+ 1
0
0
0
@@ -699,7 +699,7 @@
Drivers/CMSIS
- 1
+ 0
0
0
0
@@ -1283,7 +1283,7 @@
ota_download
- 0
+ 1
0
0
0
diff --git a/board/TencentOS_tiny_EVB_MX_Plus/KEIL/ota/ota_application_download_through_http/TencentOS_tiny.uvprojx b/board/TencentOS_tiny_EVB_MX_Plus/KEIL/ota/ota_application_download_through_http/TencentOS_tiny.uvprojx
index 4a23b42a..8258754b 100644
--- a/board/TencentOS_tiny_EVB_MX_Plus/KEIL/ota/ota_application_download_through_http/TencentOS_tiny.uvprojx
+++ b/board/TencentOS_tiny_EVB_MX_Plus/KEIL/ota/ota_application_download_through_http/TencentOS_tiny.uvprojx
@@ -275,8 +275,8 @@
1
- 0x8008000
- 0x40000
+ 0x8007800
+ 0x19000
1
diff --git a/board/TencentOS_tiny_EVB_MX_Plus/KEIL/ota/ota_bootloader_recovery/MDK-ARM/TencentOS_tiny.uvoptx b/board/TencentOS_tiny_EVB_MX_Plus/KEIL/ota/ota_bootloader_recovery/MDK-ARM/TencentOS_tiny.uvoptx
index cfe53ca9..ef476d8f 100644
--- a/board/TencentOS_tiny_EVB_MX_Plus/KEIL/ota/ota_bootloader_recovery/MDK-ARM/TencentOS_tiny.uvoptx
+++ b/board/TencentOS_tiny_EVB_MX_Plus/KEIL/ota/ota_bootloader_recovery/MDK-ARM/TencentOS_tiny.uvoptx
@@ -184,22 +184,6 @@
2
0
- 63
- 1
- 134240906
- 0
- 0
- 0
- 0
- 0
- 1
- ..\Src\main.c
-
- \\TencentOS_tiny\../Src/main.c\63
-
-
- 3
- 0
287
1
134243064
@@ -214,23 +198,7 @@
\\TencentOS_tiny\../../../../../../components/ota/recovery/ota_recovery.c\287
- 4
- 0
- 61
- 1
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- ..\Src\main.c
-
-
-
-
- 5
+ 3
0
310
0
@@ -246,23 +214,7 @@
- 6
- 0
- 65
- 1
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- ..\Src\main.c
-
-
-
-
- 7
+ 4
0
120
0
@@ -277,6 +229,22 @@
+
+ 5
+ 0
+ 63
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\Src\main.c
+
+
+
diff --git a/examples/ota_download_through_http/ota_download_through_http_sample.c b/examples/ota_download_through_http/ota_download_through_http_sample.c
index 4bbe2cb2..50ef4c55 100644
--- a/examples/ota_download_through_http/ota_download_through_http_sample.c
+++ b/examples/ota_download_through_http/ota_download_through_http_sample.c
@@ -25,7 +25,7 @@ void user_task(void *arg)
while (K_TRUE) {
tos_task_delay(1000);
- printf("do sth(v1.1)...\n");
+ printf("do sth(v0.1)...\n");
if (++iter == 2) {
printf("trigger ota download\n");
@@ -39,16 +39,16 @@ void ota_download_task(void *arg)
tos_sem_pend(&sem, TOS_TIME_FOREVER);
esp8266_sal_init(HAL_UART_PORT_0);
- esp8266_join_ap("SheldonDai", "srnr6x9xbhmb0");
+ esp8266_join_ap("Mculover666", "mculover666");
- uint32_t partition_addr = 0x08024800;
+ uint32_t partition_addr = 0x0803f800;
if (ota_env_init(OTA_UPDATE_IN_POSITION, partition_addr, &stm32l4_norflash_onchip_drv_ota, &stm32l4_norflash_onchip_prop_ota) < 0) {
printf("env init failed!\n");
return;
}
- if (!ota_download_http("http://39.108.190.129:8000/patch.bin")) {
+ if (!ota_download_http("http://122.51.89.94:8000/patch.bin")) {
printf("download successfully!\n");
} else {
printf("download failed!\n");