• Home
Name Date Size #Lines LOC

..--

hpm6750evk2/07-Sep-2024-1,234978

CODEOWNERSD07-Sep-2024630 1715

LICENSED07-Sep-20249.9 KiB177150

OAT.xmlD07-Sep-20241.7 KiB3819

README.mdD07-Sep-20243.1 KiB7655

README.md

1# vendor_hpmicro
2
3## 介绍
4
5该仓库托管HPMicro开发的基于hpm6750evk2产品样例代码。
6
7## 产品样例
8
9支持基于hpm6750 SoC的hpm6750evk2单板进行开发的应用、XTS测试样例。
10
11代码路径:
12
13```
14device/                               --- 硬件单板相关仓库
15├── board/hpmicro                     --- HPMicro相关单板
16├── soc/hpmicro                       --- HPMicro相关SoC代码
17vendor/hpmicro/                       --- vendor 仓库路径
18└── hpm6750evk2                       --- 样例
19```
20
21## 编译XTS测试
22
23执行`hb build -f --gn-args="build_xts=true"`命令进行xts编译。
24
25注意:编译xts需要需要打如下补丁,修改线程栈为1800,否则会出现栈溢出崩溃
26
27```bash
28diff --git a/distributed_schedule_lite/system_ability_manager_hal/src/taskpool_singletask_func_test.c b/distributed_schedule_lite/system_ability_manager_hal/src/taskpool_singletask_func_test.c
29index 7fc006e18..dd66409e9 100755
30--- a/distributed_schedule_lite/system_ability_manager_hal/src/taskpool_singletask_func_test.c
31+++ b/distributed_schedule_lite/system_ability_manager_hal/src/taskpool_singletask_func_test.c
32@@ -201,7 +201,7 @@ static TaskConfig GetTaskConfig(Service *service)
33     // queueSize: [0, system upper limit), 0: will not create taskpool, the max value depends on RAM size
34     // priority: PRI_ABOVE_NORMAL PRI_NORMAL PRI_BELOW_NORMAL PRI_LOW
35
36-    TaskConfig config = { LEVEL_HIGH, PRI_NORMAL, 1600, 2, SINGLE_TASK };
37+    TaskConfig config = { LEVEL_HIGH, PRI_NORMAL, 1800, 2, SINGLE_TASK };
38     if (service == (Service *)&g_service[INDEX0]) {
39         config.priority = PRI_LOW;
40     } else if (service == (Service *)&g_service[INDEX1]) {
41@@ -571,4 +571,4 @@ LITE_TEST_CASE(SingleTaskFuncTestSuite, testSingleTask0050, Function | MediumTes
42     }
43 };
44
45diff --git a/distributed_schedule_lite/system_ability_manager_hal/src/taskpool_specifiedtask_func_test.c b/distributed_schedule_lite/system_ability_manager_hal/src/taskpool_specifiedtask_func_test.c
46index 734a22081..4b5b65562 100755
47--- a/distributed_schedule_lite/system_ability_manager_hal/src/taskpool_specifiedtask_func_test.c
48+++ b/distributed_schedule_lite/system_ability_manager_hal/src/taskpool_specifiedtask_func_test.c
49@@ -148,7 +148,7 @@ static BOOL MessageHandle(Service *service, Request *msg)
50 static TaskConfig GetTaskConfig(Service *service)
51 {
52     (void)service;
53-    TaskConfig config = {LEVEL_HIGH, PRI_NORMAL, 1600, 20, SPECIFIED_TASK};
54+    TaskConfig config = {LEVEL_HIGH, PRI_NORMAL, 1800, 20, SPECIFIED_TASK};
55     return config;
56 }
57
58@@ -400,4 +400,4 @@ LITE_TEST_CASE(SpecifiedTaskFuncTestSuite, testSpecifiedTask0030, Function | Med
59     osDelay(OPER_INTERVAL);
60     TEST_ASSERT_EQUAL_INT(g_servicePoint1 == g_servicePoint2, TRUE);
61 };
62
63```
64
65## 相关仓库
66
67[vendor_hpmicro](https://gitee.com/openharmony-sig/vendor_hpmicro)
68
69[device_soc_hpmicro](https://gitee.com/openharmony-sig/device_soc_hpmicro)
70
71[device_board_hpmicro](https://gitee.com/openharmony-sig/device_board_hpmicro)
72
73## 联系
74
75如果您在开发过程中有问题,请在仓库[issues](https://gitee.com/openharmony-sig/vendor_hpmicro/issues)提问。
76