diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\344\275\234\344\270\232/\347\254\254\344\270\200\345\244\251\344\275\234\344\270\232.md" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\344\275\234\344\270\232/\347\254\254\344\270\200\345\244\251\344\275\234\344\270\232.md" new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\344\275\234\344\270\232/\347\254\254\344\272\214\345\244\251\344\275\234\344\270\232.c" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\344\275\234\344\270\232/\347\254\254\344\272\214\345\244\251\344\275\234\344\270\232.c" new file mode 100644 index 0000000000000000000000000000000000000000..5a1a250be06ec6956fc18ccba83daac9a73c2553 --- /dev/null +++ "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\344\275\234\344\270\232/\347\254\254\344\272\214\345\244\251\344\275\234\344\270\232.c" @@ -0,0 +1,62 @@ +#include +#include +#include + +rt_thread_t taskA = RT_NULL; +void taskA_entry(void *parameter) +{ + int count = 0; + while (1) { + rt_kprintf("TaskA running - Count: %d\n", count); + + // 在特定计数值延时1秒 + if (count == 10 || count == 100 || count == 1000 || count == 10000) { + rt_thread_mdelay(1000); + } + + count++; + } +} + +rt_thread_t taskB = RT_NULL; +void taskB_entry(void *parameter) +{ + while (1) { + rt_kprintf("TaskB running\n"); + rt_thread_mdelay(200); // 添加延迟避免过度占用CPU + } +} + +rt_thread_t taskC = RT_NULL; +void taskC_entry(void *parameter) +{ + while (1) { + rt_kprintf("TaskC running\n"); + rt_thread_mdelay(200); // 添加延迟避免过度占用CPU + } +} + +int main(void) +{ + // 创建任务线程 + taskA = rt_thread_create("taskA", taskA_entry, RT_NULL, 1024, 9, 5); + taskB = rt_thread_create("taskB", taskB_entry, RT_NULL, 1024, 11, 5); + taskC = rt_thread_create("taskC", taskC_entry, RT_NULL, 1024, 11, 5); + + + if (taskA != RT_NULL) { + rt_thread_startup(taskA); + } + + if (taskB != RT_NULL) { + rt_thread_startup(taskB); + } + + if (taskC != RT_NULL) { + rt_thread_startup(taskC); + } + + rt_kprintf("Main application started\n"); + + return 0; +} diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-19-02.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-19-02.png" new file mode 100644 index 0000000000000000000000000000000000000000..c3f9b6fdd2da986e770db3398f2237d93d2c892d Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-19-02.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-25-46.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-25-46.png" new file mode 100644 index 0000000000000000000000000000000000000000..a610fb98d1d390ea817589e127840ed63c412374 Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-25-46.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-31-06.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-31-06.png" new file mode 100644 index 0000000000000000000000000000000000000000..5ece19c881535434dce2fbbf3577fb91dcd3a9b2 Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-31-06.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-33-39.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-33-39.png" new file mode 100644 index 0000000000000000000000000000000000000000..bb4fcdedafeb29bbb0c0052855cd03be1853b4e4 Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-33-39.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-34-50.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-34-50.png" new file mode 100644 index 0000000000000000000000000000000000000000..1841efc0b91e5fc54df6f105123f474e8d35cb71 Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-34-50.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-39-29.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-39-29.png" new file mode 100644 index 0000000000000000000000000000000000000000..9e5f3202b26cf730b66b2e3708a39238c1eb44bf Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-39-29.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-43-40.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-43-40.png" new file mode 100644 index 0000000000000000000000000000000000000000..1186df03494edb10e9c86d34c97e5281fde89bfa Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-43-40.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-44-57.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-44-57.png" new file mode 100644 index 0000000000000000000000000000000000000000..968b509e7bea2b6c96d4b521156f429c765306b8 Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-44-57.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-52-05.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-52-05.png" new file mode 100644 index 0000000000000000000000000000000000000000..76dc23a69e852070003da47f6babc0698ebc5ed5 Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-52-05.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-55-25.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-55-25.png" new file mode 100644 index 0000000000000000000000000000000000000000..8e85efb05f2f482a4a929be7e71565a7122b1b38 Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-55-25.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-59-54.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-59-54.png" new file mode 100644 index 0000000000000000000000000000000000000000..086d96a649369dd91510e03822070a52dff932d9 Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_09-59-54.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_10-09-00.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_10-09-00.png" new file mode 100644 index 0000000000000000000000000000000000000000..36636eb5bef312f02ee6b41977b525d43c093d6e Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_10-09-00.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_10-10-58.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_10-10-58.png" new file mode 100644 index 0000000000000000000000000000000000000000..38e80b43681230c326f68895c722f39c7c6bb445 Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day1/Snipaste_2025-07-22_10-10-58.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-32-41.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-32-41.png" new file mode 100644 index 0000000000000000000000000000000000000000..737115c3a630d913084c29649aee797f24bab0ca Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-32-41.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-33-07.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-33-07.png" new file mode 100644 index 0000000000000000000000000000000000000000..13c3877b17b9a48422f55dc0dac426c29494aa91 Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-33-07.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-33-40.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-33-40.png" new file mode 100644 index 0000000000000000000000000000000000000000..9604084491bac2682023035044fc5134d71b4d3d Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-33-40.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-36-47.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-36-47.png" new file mode 100644 index 0000000000000000000000000000000000000000..c8428a80ae229835d11940e29b455f3c2aaff2de Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-36-47.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-39-54.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-39-54.png" new file mode 100644 index 0000000000000000000000000000000000000000..ae6b669c7b2118c16db35c4f1607774f354e3a1e Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-39-54.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-41-58.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-41-58.png" new file mode 100644 index 0000000000000000000000000000000000000000..819ccfba55f6f10352b635c00f6a306d7172a194 Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-41-58.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-43-12.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-43-12.png" new file mode 100644 index 0000000000000000000000000000000000000000..d55dc593eb305efea6f8947dada696a6afc84202 Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_21-43-12.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_22-21-21.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_22-21-21.png" new file mode 100644 index 0000000000000000000000000000000000000000..7707623c8cee76bb7df7d0a68cdf83032d6536dd Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_22-21-21.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_22-23-12.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_22-23-12.png" new file mode 100644 index 0000000000000000000000000000000000000000..445b2a53c79c6978d25822ab8e5fcbbc56b28abd Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_22-23-12.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_22-27-10.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_22-27-10.png" new file mode 100644 index 0000000000000000000000000000000000000000..20d69f51638352b8dfaaeaf62af32f229d5a2ff1 Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_22-27-10.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_22-46-59.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_22-46-59.png" new file mode 100644 index 0000000000000000000000000000000000000000..90743edd3a1dee37c5a683d39571462a73cf4b48 Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_22-46-59.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_22-49-11.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_22-49-11.png" new file mode 100644 index 0000000000000000000000000000000000000000..7357d603f6cb050f21f0d262e9df7f8ed961f23d Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_22-49-11.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_22-55-23.png" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_22-55-23.png" new file mode 100644 index 0000000000000000000000000000000000000000..4a2e042e0d2a048fe2c6251c4981b697cc554c0c Binary files /dev/null and "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/images/day2/Snipaste_2025-07-22_22-55-23.png" differ diff --git "a/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/\343\200\220RSOC25\343\200\221Day1 \350\257\276\347\250\213\347\254\224\350\256\260\357\274\232\345\274\200\345\217\221\347\216\257\345\242\203\346\220\255\345\273\272\344\270\216GIT\344\275\277\347\224\250.md" "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/\343\200\220RSOC25\343\200\221Day1 \350\257\276\347\250\213\347\254\224\350\256\260\357\274\232\345\274\200\345\217\221\347\216\257\345\242\203\346\220\255\345\273\272\344\270\216GIT\344\275\277\347\224\250.md" new file mode 100644 index 0000000000000000000000000000000000000000..4b8a1653d4a56b35990c23394e5a9505d0386875 --- /dev/null +++ "b/2025/\347\254\2541\347\273\204(STM32H750-ART-PI)/\346\235\216\346\242\246\350\207\243/\347\254\224\350\256\260/\343\200\220RSOC25\343\200\221Day1 \350\257\276\347\250\213\347\254\224\350\256\260\357\274\232\345\274\200\345\217\221\347\216\257\345\242\203\346\220\255\345\273\272\344\270\216GIT\344\275\277\347\224\250.md" @@ -0,0 +1,101 @@ +# 【RSOC25】Day1 课程笔记:开发环境搭建与GIT使用 + +本文参考[RT-Thread-【RSOC25】Day1 课程笔记:开发环境搭建与GIT使用RT-Thread问答社区 - RT-Thread](https://club.rt-thread.org/ask/article/91d48b98d44087f1.html) + +# 1. git工具的下载和配置 + +### 1.1 git工具下载 + +前往[git下载界面](https://git-scm.com/downloads/win/)下载windows版本并安装。 + +![Snipaste_2025-07-22_09-19-02](E:\2025_RTT\rsoc-rtt\2025\第1组(STM32H750-ART-PI)\李梦臣\笔记\images\day1\Snipaste_2025-07-22_09-19-02.png) + +### 1.2 gitte官网SSH密钥配置 + +1. 打开[RSOC-RTT: RT-Thread 暑期夏令营仓库](https://gitee.com/rtthread/rsoc-rtt),点击克隆/下载 +2. 配置个人信息,依次复制4条命令到git终端 + +![Snipaste_2025-07-22_09-25-46](E:\2025_RTT\rsoc-rtt\2025\第1组(STM32H750-ART-PI)\李梦臣\笔记\images\day1\Snipaste_2025-07-22_09-25-46.png) + +3. 在第四条命令生成密钥后,点击右上角头像->个人主页->设置->SSH公钥,将复制的公钥填入并取个标题,点击确定。 + +![Snipaste_2025-07-22_09-31-06](E:\2025_RTT\rsoc-rtt\2025\第1组(STM32H750-ART-PI)\李梦臣\笔记\images\day1\Snipaste_2025-07-22_09-31-06.png) + +4. 回到git bash输入`ssh -T git@gitee.com`验证gitte连接,若出现绿色框中信息则说明配置成功。 + +![Snipaste_2025-07-22_09-34-50](E:\2025_RTT\rsoc-rtt\2025\第1组(STM32H750-ART-PI)\李梦臣\笔记\images\day1\Snipaste_2025-07-22_09-34-50.png) + +## 2. 环境搭建与env工具使用 + +### 2.1 利用git拉取源码 + +#### 2.1.1 RT-thread源码拉取 + +创建一个文件夹作为本次项目的主文件夹,进入文件夹右键在git bash中打开输入 + +``` +git clone https://gitee.com/rtthread/rt-thread.git +``` + +拉取RT-thread源代码 + +![Snipaste_2025-07-22_09-39-29](E:\2025_RTT\rsoc-rtt\2025\第1组(STM32H750-ART-PI)\李梦臣\笔记\images\day1\Snipaste_2025-07-22_09-39-29.png) + +### 2.2 离线下载env + +根据 [RT-Thread论坛教程](https://club.rt-thread.org/ask/article/af8952fcf0ca464b.html)按照步骤配置即可 + +若出现这种情况 + +![Snipaste_2025-07-22_09-43-40](E:\2025_RTT\rsoc-rtt\2025\第1组(STM32H750-ART-PI)\李梦臣\笔记\images\day1\Snipaste_2025-07-22_09-43-40.png) + +下拉选择rtt-env即可,点击start即可正常使用 + +![Snipaste_2025-07-22_09-44-57](E:\2025_RTT\rsoc-rtt\2025\第1组(STM32H750-ART-PI)\李梦臣\笔记\images\day1\Snipaste_2025-07-22_09-44-57.png) + +### 2.3 工程编译与运行 + +#### 2.3.1 Vscode下载和安装 + +前往[vscode官网](https://code.visualstudio.com/)下载并安装vscode 点击Download即可下载,按照提示一路按照即可。 + +![image-20250722094825379](C:\Users\lmc\AppData\Roaming\Typora\typora-user-images\image-20250722094825379.png) + +#### 2.3.2 Scons构建脚本简介 + +进入rt-thread\bsp\qemu-vexpress-a9目录右键菜单栏在vscode中打开 + +打开后可以看到几乎每个目录下都会存在SConscript脚本文件,SConscript脚本文件个人浅薄理解为链接库,寻找当前目录下的文件。 + +![Snipaste_2025-07-22_09-52-05](E:\2025_RTT\rsoc-rtt\2025\第1组(STM32H750-ART-PI)\李梦臣\笔记\images\day1\Snipaste_2025-07-22_09-52-05.png) + +### 2.3.3 Hello RT-thread工程编译和运行 + +在RT-thread目录下打开ENV构建工具,然后进入\bsp\qemu-vexpress-a9目录。 + +接着输入`menuconfig`后保存生成配置文件(不需要修改)。 + +最后`scons-j4`编译。 + +![Snipaste_2025-07-22_09-55-25](E:\2025_RTT\rsoc-rtt\2025\第1组(STM32H750-ART-PI)\李梦臣\笔记\images\day1\Snipaste_2025-07-22_09-55-25.png) + +如图即是编译成功 + +![Snipaste_2025-07-22_09-59-54](E:\2025_RTT\rsoc-rtt\2025\第1组(STM32H750-ART-PI)\李梦臣\笔记\images\day1\Snipaste_2025-07-22_09-59-54.png) + +输入`qemu-nographic.bat`进入即可执行当前main.c文件 + +![Snipaste_2025-07-22_10-09-00](E:\2025_RTT\rsoc-rtt\2025\第1组(STM32H750-ART-PI)\李梦臣\笔记\images\day1\Snipaste_2025-07-22_10-09-00.png) + +Ctrl+A +X即可退出程序。 + +### 2.3.4 LVGL demo工程编译和运行 + +接上一节工程退出后执行`menuconfig`命令Hardware Drivers Config->Onboard Peripheral Drivers-> + +选择Enable LVGL demo和 Enable LVGL for LCD,然后退出并保存。 + +![Snipaste_2025-07-22_10-10-58](E:\2025_RTT\rsoc-rtt\2025\第1组(STM32H750-ART-PI)\李梦臣\笔记\images\day1\Snipaste_2025-07-22_10-10-58.png) + +接着输入`scons-j4`编译,编译成功后输入`qemu.bat`,结果如下图。 +