Board-dat/NBL/NBL1107-dat/NBL1107-dat.md
... ...
@@ -11,7 +11,7 @@
11 11
12 12
- [[EY-25M-dat]] - [[BLE-dat]] - [[BLE5-dat]] - [[ibeacon-dat]] - [[mesh-node-dat]] - [[NBL1101-dat]]
13 13
14
-- [[HDSC-dat]] - [[HC32F003-dat]] - [[HDSC-SDK-dat]] - [[NBL1107-dat]]
14
+- [[HDSC-dat]] - [[HC32F003-dat]] - [[HDSC-SDK-dat]] - [[NBL1107-dat]] - [[C-dat]]
15 15
16 16
- [[AHT20-dat]] - [[KX023-1025-dat]] - [[I2C-dat]]
17 17
... ...
@@ -50,25 +50,25 @@ green box == [[relay-signal-dat]] // orange box == BT module [[NBL1101-dat]] //
50 50
51 51
52 52
53
-| MCU pins | BT Modules | Sensors | Other |
54
-| ---------- | ---------- | ---------- | -------------------- |
55
-| Reset | | | Button Reset or PROG |
56
-| U0_TXD | BT_RXD | | |
57
-| U0_RXD | BT_TXD | | |
58
-| P03 | - | - | NC |
59
-| P15 | BT_IN2 | | |
60
-| P14 | BT_IN1 | | |
61
-| P23 | BT_stat | | |
62
-| P24 | | | Button Alternative |
63
-| P25 | | Sensor SDA | |
64
-| P26 | | Sensor SCL | |
65
-| P27 | | | lead out free |
66
-| P31 | | | lead out free |
67
-| P32 | BT_PWRC | | |
68
-| P33 | | | Bat_ADC |
69
-| P34 | | | Relay |
70
-| P35_U1_TXD | | | free or PROG |
71
-| P36_U1_RXD | | | free or PROG |
53
+| pin | MCU pins | BT Modules | Sensors | Other |
54
+| --- | ---------- | ---------- | ---------- | -------------------- |
55
+| 1 | Reset | | | Button Reset or PROG |
56
+| 2 | U0_TXD | BT_RXD | | |
57
+| 3 | U0_RXD | BT_TXD | | |
58
+| 7 | P03 | - | - | NC |
59
+| 8 | P15 | BT_IN2 | | |
60
+| 9 | P14 | BT_IN1 | | |
61
+| 10 | P23 | BT_stat | | |
62
+| 11 | P24 | | | Button Alternative |
63
+| 12 | P25 | | Sensor SDA | |
64
+| 13 | P26 | | Sensor SCL | |
65
+| 14 | P27 | | | lead out free |
66
+| 15 | P31 | | | lead out free |
67
+| 16 | P32 | BT_PWRC | | |
68
+| 17 | P33 | | | Bat_ADC |
69
+| 18 | P34 | | | Relay |
70
+| 19 | P35_U1_TXD | | | free or PROG |
71
+| 20 | P36_U1_RXD | | | free or PROG |
72 72
73 73
74 74
Chip-cn-dat/HDSC-dat/HC32F003-dat/HC32F003-dat.md
... ...
@@ -3,6 +3,7 @@
3 3
4 4
- [[HDSC-dat]] - [[HDSC-SDK-dat]] - [[HDSC-downloader-dat]] - [[ARM1007-dat]] - [[MDK-ARM-dat]] - [[HC32F003-dat]]
5 5
6
+- [[NBL1107-dat]]
6 7
7 8
8 9
## Features
... ...
@@ -36,6 +37,12 @@ For [[mesh-node-dat]] - [[NBL1107-dat]]
36 37
![](2024-05-15-16-48-43.png)
37 38
38 39
40
+## pin table
41
+
42
+| Pin Name | Function | Description | signup |
43
+| -------- | --------------------- | ----------- | ------ |
44
+| P01 | UART1_TXD / UART0_RXD | | |
45
+| P02 | UART1_RXD / UART0_TXD | | |
39 46
40 47
41 48
SDK-dat/C-dat/C-dat.md
... ...
@@ -1,6 +1,14 @@
1 1
2 2
# C-dat
3 3
4
+
5
+
6
+- [[gcc-dat]] - [[clang-dat]] - [[SDK-dat]] - [[C-dat]] - [[CPP-dat]] - [[mingw-w64-dat]] - [[Visual-Studio-Build-Tools-dat]] - [[vscode-dat]] - [[MDK-ARM-dat]]
7
+
8
+
9
+Clang on Windows is often just a front-end. If you don't have MinGW-w64 or Visual Studio Build Tools installed, `stdio.h` literally might not exist on your drive.
10
+
11
+
4 12
- [[MSYS2-dat]] - [[Cmake-dat]] - [[Ccache-dat]]
5 13
6 14
- [[RPI-C-dat]]
SDK-dat/C-dat/CMSIS-dat/CMSIS-dat.md
... ...
@@ -0,0 +1,12 @@
1
+
2
+
3
+
4
+# CMSIS-dat
5
+
6
+- [[CMSIS-dat]] - [[C-dat]] - [[MDK-ARM-dat]] - [[CPP-dat]]
7
+
8
+
9
+core_cm0plus.h at
10
+
11
+ D:\Keil_v5\Packs\ARM\CMSIS\5.9.0\CMSIS\Core\Include\core_cm0plus.h
12
+
SDK-dat/C-dat/CPP-dat/CPP-dat.md
... ...
@@ -0,0 +1,81 @@
1
+
2
+
3
+# CPP-dat
4
+
5
+
6
+## config 3 for CMSIS
7
+
8
+- [[CMSIS-DAP]]
9
+
10
+{
11
+ "configurations": [
12
+ {
13
+ "name": "Win32",
14
+ "includePath": [
15
+ "${workspaceFolder}/**",
16
+ "D:/Keil_v5/Packs/ARM/CMSIS/5.9.0/CMSIS/Core/Include"
17
+ ],
18
+ "compilerPath": "D:\\SDK\\x86_64-15.2.0-release-posix-seh-ucrt-rt_v13-rev1\\mingw64\\bin\\gcc.exe",
19
+ "intelliSenseMode": "windows-gcc-x64"
20
+ }
21
+ ],
22
+ "version": 4
23
+}
24
+
25
+
26
+## workspace configuration json file
27
+
28
+ {
29
+ "configurations": [
30
+ {
31
+ "name": "Win32",
32
+ "includePath": [
33
+ "${workspaceFolder}/**"
34
+ ],
35
+ "defines": [
36
+ "_DEBUG",
37
+ "UNICODE",
38
+ "_UNICODE"
39
+ ],
40
+ "compilerPath": "D:\\SDK\\x86_64-15.2.0-release-posix-seh-ucrt-rt_v13-rev1\\mingw64\\bin\\gcc.exe",
41
+ "cStandard": "c11",
42
+ "cppStandard": "c++17",
43
+ "intelliSenseMode": "windows-gcc-x64"
44
+ }
45
+ ],
46
+ "version": 4
47
+ }
48
+
49
+
50
+
51
+## confige 2 for project
52
+
53
+#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (E: \Git-category\git-MCU-HDSC\MCU-HDSC-APP\APP\I2C-AHT20\source\read-data.C).C/C++(1696)
54
+
55
+cannot open source file `"core_cmeplus.h"`(dependency of "i2c.h") c/C++(1696)
56
+
57
+{
58
+ "configurations": [
59
+ {
60
+ "name": "Win32",
61
+ "includePath": [
62
+ "${workspaceFolder}/**",
63
+ "E:/Git-category/git-MCU-HDSC/MCU-HDSC-APP/Device/Include",
64
+ "E:/Git-category/git-MCU-HDSC/MCU-HDSC-APP/Drivers/Include"
65
+ ],
66
+ "compilerPath": "D:\\SDK\\x86_64-15.2.0-release-posix-seh-ucrt-rt_v13-rev1\\mingw64\\bin\\gcc.exe",
67
+ "intelliSenseMode": "windows-gcc-x64",
68
+ "browse": {
69
+ "path": [
70
+ "${workspaceFolder}",
71
+ "E:/Git-category/git-MCU-HDSC/MCU-HDSC-APP"
72
+ ],
73
+ "limitSymbolsToIncludedHeaders": true
74
+ }
75
+ }
76
+ ],
77
+ "version": 4
78
+}
79
+
80
+
81
+
SDK-dat/C-dat/Visual-Studio-Build-Tools-dat/Visual-Studio-Build-Tools-dat.md
... ...
@@ -0,0 +1,10 @@
1
+
2
+
3
+# Visual-Studio-Build-Tools-dat
4
+
5
+https://visualstudio.microsoft.com/downloads/
6
+
7
+https://visualstudio.microsoft.com/visual-cpp-build-tools/
8
+
9
+- install the basic only
10
+
SDK-dat/C-dat/clang-dat/clang-dat.md
... ...
@@ -0,0 +1,38 @@
1
+
2
+
3
+# clang-dat
4
+
5
+- [[gcc-dat]] - [[clang-dat]] - [[SDK-dat]] - [[C-dat]]
6
+
7
+== cl.exe
8
+
9
+
10
+## formatter
11
+
12
+- clang-format
13
+
14
+The 'D:Program Files\LLVMbin\clang-format.exe'command is not available, Please check your clang- format.executable user setting and ensure it is installed.
15
+
16
+
17
+- LLVMbin
18
+
19
+## LLVMbin
20
+
21
+The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
22
+
23
+
24
+https://github.com/llvm/llvm-project/releases
25
+
26
+Option A: Official Installer (Recommended)
27
+
28
+Go to the LLVM GitHub Releases page.
29
+
30
+Look for the latest release (e.g., LLVM 18.x.x) and download the .exe installer (usually named `LLVM-xx.x.x-win64.exe`).
31
+
32
+== https://github.com/llvm/llvm-project
33
+
34
+
35
+
36
+## ref
37
+
38
+
SDK-dat/C-dat/mingw-w64-dat/mingw-w64-dat.md
... ...
@@ -0,0 +1,14 @@
1
+
2
+
3
+# mingw-w64-dat.md
4
+
5
+MinGW-W64-builds
6
+
7
+https://github.com/niXman/mingw-builds-binaries/releases
8
+
9
+For a standard Windows 10 64-bit system, the naming conventions for MinGW can look like a secret code, but for your setup, there is a clear winner.
10
+
11
+You should download: `x86_64-15.2.0-release-posix-seh-ucrt-rt_v13-rev1.7z`
12
+
13
+
14
+If you have MinGW: Add the path to your MinGW `bin` folder to your system Path environment variable.
... ...
\ No newline at end of file
SDK-dat/HDSC-SDK-dat/HDSC-SDK-dat.md
... ...
@@ -3,6 +3,7 @@
3 3
4 4
- [[HDSC-dat]] - [[HDSC-SDK-dat]] - [[HDSC-downloader-dat]] - [[ARM1007-dat]] - [[MDK-ARM-dat]] - [[HC32F003-dat]]
5 5
6
+- [[clang-dat]] - [[vscode-dat]] - [[SDK-dat]] - [[C-dat]]
6 7
7 8
8 9
## HDSC ISP == programmer
... ...
@@ -40,7 +41,26 @@
40 41
- HDSC.HC32F003.1.0.1.pack
41 42
- HDSC.HC32F005.1.0.1.pack
42 43
44
+"https:/raw.githubusercontent.com/hdscmcu/pack/master/HDSC.HC32F003.1.0.1.pack" - download - click - to install
43 45
46
+Destination Folder
47
+
48
+d:\Keil_v5VPacks\HDSC\HC32F003V1.0.1
49
+
50
+D:\Keil_v5\Packs\HDSC\HC32F003\1.0.1\Device\Include\HC32F003.h
51
+
52
+ compiling core_uart0.c...
53
+ compiling core_uart1.c...
54
+ compiling int1.c...
55
+ compiling bsp_GPIO.c...
56
+ compiling ISR-prt.c...
57
+ compiling ddl.c...
58
+ compiling bsp_aht20.c...
59
+ linking...
60
+ Program Size: Code=2392 RO-data=224 RW-data=4 ZI-data=596
61
+ FromELF: creating hex file...
62
+ ".\output\AHT20.axf" - 0 Error(s), 0 Warning(s).
63
+ Build Time Elapsed: 00:00:02
44 64
45 65
## SDK Driver and Examples
46 66
... ...
@@ -60,6 +80,36 @@
60 80
61 81
demo images == - [[HDSC-dat]] - [[HC32F003-dat]] - [[HDSC-SDK-dat]] - [[NBL1107-dat]]
62 82
83
+
84
+
85
+## serial
86
+
87
+UART1 -- core_uart1.c
88
+
89
+ void App_PortInit1(void)
90
+ {
91
+ // GPIO struct
92
+ stc_gpio_cfg_t stcGpioCfg;
93
+
94
+ // DDL zero ?
95
+ DDL_ZERO_STRUCT(stcGpioCfg);
96
+
97
+ // enable GPIO module clock
98
+ Sysctrl_SetPeripheralGate(SysctrlPeripheralGpio,TRUE);
99
+
100
+ ///<TX
101
+ stcGpioCfg.enDir = GpioDirOut;
102
+ Gpio_Init(GpioPort3, GpioPin5, &stcGpioCfg);
103
+ Gpio_SetAfMode(GpioPort3, GpioPin5, GpioAf1); //config P02 as URART1_TX
104
+
105
+ ///<RX
106
+ stcGpioCfg.enDir = GpioDirIn;
107
+ Gpio_Init(GpioPort3, GpioPin6, &stcGpioCfg);
108
+ Gpio_SetAfMode(GpioPort3, GpioPin6, GpioAf1); //config P01 as URART1_RX
109
+
110
+ }
111
+
112
+
63 113
## repo
64 114
65 115
- [[HDSC-dat]]
SDK-dat/MDK-ARM-dat/MDK-ARM-dat.md
... ...
@@ -2,6 +2,9 @@
2 2
# MDK-ARM-dat
3 3
4 4
5
+- [[CMSIS-dat]] - [[C-dat]]
6
+
7
+
5 8
- setup new compiler in KEIL-MDK [[AC5-dat]] - [[AC6-dat]]
6 9
7 10
- [[ARM-dat]]
SDK-dat/SDK-DAT.md
... ...
@@ -25,6 +25,12 @@
25 25
26 26
- [[openocd-dat]]
27 27
28
+- [[clang-dat]] - [[vscode-dat]] - [[SDK-dat]]
29
+
30
+- [[gcc-dat]] - [[clang-dat]] - [[SDK-dat]]
31
+
32
+
33
+
28 34
29 35
## VS-code
30 36
SDK-dat/vscode-dat/VS-CPP/vs-cpp-dat.md
... ...
@@ -1,7 +0,0 @@
1
-
2
-# Microsoft C++ Build Tools
3
-
4
-https://visualstudio.microsoft.com/visual-cpp-build-tools/
5
-
6
-- install the basic only
7
-
SDK-dat/vscode-dat/vscode-dat.md
... ...
@@ -1,6 +1,9 @@
1 1
2 2
# vscode-dat
3 3
4
+- [[MDK-ARM-dat]] - [[vscode-dat]] - [[C-dat]] - [[VS-CPP-dat]]
5
+
6
+
4 7
https://github.com/Microsoft/vscode-cpptools.git
5 8
6 9
C/C++ Configurations
... ...
@@ -40,4 +43,27 @@ Option 2: Through GUI (Search)
40 43
41 44
Go to File > Preferences > Settings
42 45
43
-Search for “Python Formatting Provider”
... ...
\ No newline at end of file
0
+Search for “Python Formatting Provider”
1
+
2
+
3
+
4
+
5
+## keil
6
+
7
+- [[MDK-ARM-dat]] - [[vscode-dat]] - [[C-dat]]
8
+
9
+
10
+If you want to keep things simple, I recommend one of these two paths:
11
+
12
+Path A: The `"Keil Assistant"` (Easiest)
13
+
14
+Install the Keil Assistant extension in `VS Code`.
15
+
16
+Point it to your UV4.exe (usually in D:\Keil_v5\UV4).
17
+
18
+You can then open your .uvprojx file directly in VS Code and use the "Build" icon. It uses Keil’s engine but stays inside the VS Code interface.
19
+
20
+
21
+
22
+## ref
23
+