Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
不穿格子衫的农民
TencentOS Tiny
提交
85dcdd52
T
TencentOS Tiny
项目概览
不穿格子衫的农民
/
TencentOS Tiny
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TencentOS Tiny
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
85dcdd52
编写于
6月 24, 2020
作者:
M
mculover666
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix ota http demo project bug
上级
931e8fc5
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
26 addition
and
10 deletion
+26
-10
board/TencentOS_tiny_EVB_MX_Plus/KEIL/ota/ota_application_download_through_http/TencentOS_tiny.uvoptx
...a_application_download_through_http/TencentOS_tiny.uvoptx
+1
-1
board/TencentOS_tiny_EVB_MX_Plus/KEIL/ota/ota_application_download_through_http/TencentOS_tiny.uvprojx
..._application_download_through_http/TencentOS_tiny.uvprojx
+21
-5
board/TencentOS_tiny_EVB_MX_Plus/KEIL/ota/ota_application_download_through_http/system_stm32l4xx.c
.../ota_application_download_through_http/system_stm32l4xx.c
+1
-1
examples/ota_download_through_http/ota_download_through_http_sample.c
..._download_through_http/ota_download_through_http_sample.c
+3
-3
未找到文件。
board/TencentOS_tiny_EVB_MX_Plus/KEIL/ota/ota_application_download_through_http/TencentOS_tiny.uvoptx
浏览文件 @
85dcdd52
...
...
@@ -699,7 +699,7 @@
<Group>
<GroupName>
Drivers/CMSIS
</GroupName>
<tvExp>
0
</tvExp>
<tvExp>
1
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<cbSel>
0
</cbSel>
<RteFlg>
0
</RteFlg>
...
...
board/TencentOS_tiny_EVB_MX_Plus/KEIL/ota/ota_application_download_through_http/TencentOS_tiny.uvprojx
浏览文件 @
85dcdd52
...
...
@@ -10,14 +10,14 @@
<TargetName>
TencentOS_tiny
</TargetName>
<ToolsetNumber>
0x4
</ToolsetNumber>
<ToolsetName>
ARM-ADS
</ToolsetName>
<pCCUsed>
5060750::V5.06 update 6 (build 750)::ARMCC
</pCCUsed>
<pCCUsed>
5060750::V5.06 update 6 (build 750)::
.\
ARMCC
</pCCUsed>
<uAC6>
0
</uAC6>
<TargetOption>
<TargetCommonOption>
<Device>
STM32L431RCTx
</Device>
<Vendor>
STMicroelectronics
</Vendor>
<PackID>
Keil.STM32L4xx_DFP.2.
0
.0
</PackID>
<PackURL>
http
://www.keil.com/pack
</PackURL>
<PackID>
Keil.STM32L4xx_DFP.2.
4
.0
</PackID>
<PackURL>
http
s://www.keil.com/pack/
</PackURL>
<Cpu>
IRAM(0x20000000-0x2000FFFF) IROM(0x8000000-0x803FFFF) CLOCK(8000000) FPU2 CPUTYPE("Cortex-M4")
</Cpu>
<FlashUtilSpec></FlashUtilSpec>
<StartupFile></StartupFile>
...
...
@@ -185,6 +185,7 @@
<uocXRam>
0
</uocXRam>
<RvdsVP>
2
</RvdsVP>
<RvdsMve>
0
</RvdsMve>
<RvdsCdeCp>
0
</RvdsCdeCp>
<hadIRAM2>
0
</hadIRAM2>
<hadIROM2>
0
</hadIROM2>
<StupSel>
8
</StupSel>
...
...
@@ -338,7 +339,7 @@
<MiscControls></MiscControls>
<Define>
USE_HAL_DRIVER,STM32L431xx,
</Define>
<Undefine></Undefine>
<IncludePath>
..\..\..\BSP\Inc;..\..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Inc;..\..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Legacy;..\..\..\..\..\platform\vendor_bsp\st\CMSIS\Device\ST\STM32L4xx\Include;..\..\..\..\..\platform\vendor_bsp\st\CMSIS\Include;..\..\..\..\..\kernel\core\include;..\..\..\TOS-CONFIG;..\..\..\..\..\platform\arch\arm\cortex-m4\keil;..\..\..\..\..\kernel\pm\include;..\..\..\..\..\osal\cmsis_os;..\..\..\..\..\arch\arm\arm-v7m\common\include;..\..\..\..\..\arch\arm\arm-v7m\cortex-m4\armcc;..\..\..\BSP\Hardware\DHT11;..\..\..\BSP\Hardware\OLED;..\..\..\BSP\Hardware\BH1750;..\..\..\..\..\devices\esp8266;..\..\..\..\..\net\at\include;..\..\..\..\..\kernel\hal\include;..\..\..\..\..\net\sal_module_wrapper;..\..\..\..\..\components\ota\download\include;..\..\..\..\..\components\ota\common\crc;..\..\..\..\..\components\ota\common\image;..\..\..\..\..\components\ota\common\flash;..\..\..\..\..\components\ota\common\partition;..\..\..\..\..\components\ota\common\env;..\..\..\..\..\components\fs\kv\include;..\..\..\..\..\components\ota\common\info
</IncludePath>
<IncludePath>
..\..\..\BSP\Inc;..\..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Inc;..\..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Legacy;..\..\..\..\..\platform\vendor_bsp\st\CMSIS\Device\ST\STM32L4xx\Include;..\..\..\..\..\platform\vendor_bsp\st\CMSIS\Include;..\..\..\..\..\kernel\core\include;..\..\..\TOS-CONFIG;..\..\..\..\..\platform\arch\arm\cortex-m4\keil;..\..\..\..\..\kernel\pm\include;..\..\..\..\..\osal\cmsis_os;..\..\..\..\..\arch\arm\arm-v7m\common\include;..\..\..\..\..\arch\arm\arm-v7m\cortex-m4\armcc;..\..\..\BSP\Hardware\DHT11;..\..\..\BSP\Hardware\OLED;..\..\..\BSP\Hardware\BH1750;..\..\..\..\..\devices\esp8266;..\..\..\..\..\net\at\include;..\..\..\..\..\kernel\hal\include;..\..\..\..\..\net\sal_module_wrapper;..\..\..\..\..\components\ota\download\include;..\..\..\..\..\components\ota\common\crc;..\..\..\..\..\components\ota\common\image;..\..\..\..\..\components\ota\common\flash;..\..\..\..\..\components\ota\common\partition;..\..\..\..\..\components\ota\common\env;..\..\..\..\..\components\fs\kv\include;..\..\..\..\..\components\ota\common\info
;..\..\..\..\..\components\ota\recovery\include
</IncludePath>
</VariousControls>
</Cads>
<Aads>
...
...
@@ -351,7 +352,7 @@
<NoWarn>
0
</NoWarn>
<uSurpInc>
0
</uSurpInc>
<useXO>
0
</useXO>
<
uClangAs>
0
</uClangAs
>
<
ClangAsOpt>
4
</ClangAsOpt
>
<VariousControls>
<MiscControls></MiscControls>
<Define></Define>
...
...
@@ -919,4 +920,19 @@
<files/>
</RTE>
<LayerInfo>
<Layers>
<Layer>
<LayName>
<
Project Info
>
</LayName>
<LayDesc></LayDesc>
<LayUrl></LayUrl>
<LayKeys></LayKeys>
<LayCat></LayCat>
<LayLic></LayLic>
<LayTarg>
0
</LayTarg>
<LayPrjMark>
1
</LayPrjMark>
</Layer>
</Layers>
</LayerInfo>
</Project>
board/TencentOS_tiny_EVB_MX_Plus/KEIL/ota/ota_application_download_through_http/system_stm32l4xx.c
浏览文件 @
85dcdd52
...
...
@@ -123,7 +123,7 @@
/*!< Uncomment the following line if you need to relocate your vector Table in
Internal SRAM. */
/* #define VECT_TAB_SRAM */
#define VECT_TAB_OFFSET 0x
80
00
/*!< Vector Table base offset field.
#define VECT_TAB_OFFSET 0x
78
00
/*!< Vector Table base offset field.
This value must be a multiple of 0x200. */
/******************************************************************************/
/**
...
...
examples/ota_download_through_http/ota_download_through_http_sample.c
浏览文件 @
85dcdd52
...
...
@@ -3,7 +3,7 @@
#include "sal_module_wrapper.h"
#include "cmsis_os.h"
#include "
tos_
ota_download.h"
#include "ota_download.h"
extern
ota_flash_drv_t
stm32l4_norflash_onchip_drv_ota
;
extern
ota_flash_prop_t
stm32l4_norflash_onchip_prop_ota
;
...
...
@@ -43,12 +43,12 @@ void ota_download_task(void *arg)
uint32_t
partition_addr
=
0x08024800
;
if
(
tos_
ota_env_init
(
OTA_UPDATE_IN_POSITION
,
partition_addr
,
&
stm32l4_norflash_onchip_drv_ota
,
&
stm32l4_norflash_onchip_prop_ota
)
<
0
)
{
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
(
!
tos_
ota_download_http
(
"http://39.108.190.129:8000/patch.bin"
))
{
if
(
!
ota_download_http
(
"http://39.108.190.129:8000/patch.bin"
))
{
printf
(
"download successfully!
\n
"
);
}
else
{
printf
(
"download failed!
\n
"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录