Board-dat/DPR/DPR1004-dat/DPR1004-dat.md
... ...
@@ -3,6 +3,8 @@
3 3
4 4
- [[st-link-dat]]
5 5
6
+https://www.electrodragon.com/product/st-link-v2-programmer-for-stm8-stm32/
7
+
6 8
## Pin map
7 9
8 10
![](2024-06-18-16-05-42.png)
Board-dat/DPR/DPR1100-dat/DPR1100-dat.md
... ...
@@ -1,6 +1,11 @@
1 1
2 2
# DPR1100-dat
3 3
4
+- Lead out all pins for [[STM32F103C8T6-dat]], can be used as a development board too
5
+- Can be used as a [[USB-TTL-dat]] bridge
6
+
7
+## Board Map
8
+
4 9
![](2023-11-06-15-07-30.png)
5 10
6 11
LED Indicator
... ...
@@ -8,20 +13,28 @@ LED Indicator
8 13
- PB13
9 14
10 15
11
-Programming Pin
16
+## programming port
12 17
13
-- 3V3
14
-- GND
15
-- DIO
16
-- CLK
18
+- recognized in [[MDK-ARM-dat]] as [[CMSIS-dap-dat]]
17 19
18
-Crystal - 8M
20
+![](2023-11-06-15-14-16.png)
21
+
22
+- DIO / CLK / SWO / TDI / RST on the front side
23
+- Programming interface SWD shoul be used:
24
+ - 3V3
25
+ - GND
26
+ - DIO
27
+ - CLK
28
+
29
+
30
+
31
+## Note
32
+- Crystal - 8M
33
+- D+ pull-up to PA8 for V2 bootloader, and to 3.3V for V3 bootloader
19 34
20
-## programming port
21 35
22
-![](2023-11-06-15-14-16.png)
23 36
## ref
24 37
25
-- [[STM32F103C8T6-dat]]
38
+- [[STM32F103C8T6-dat]] - [[MDK-ARM-dat]] - [[CMSIS-dap-dat]]
26 39
27 40
- [[DPR1100]] - [[LDO]]
... ...
\ No newline at end of file
Board-dat/NWI/NWI1100-dat/NWI1100-dat.md
... ...
@@ -10,6 +10,29 @@ ESP32-DevKitC
10 10
## Pin
11 11
![](13-37-18-09-08-2023.png)
12 12
13
+| L_assigned | left | right | R_assigned |
14
+| ---------- | ---- | ----- | ---------- |
15
+| | en | 23 | |
16
+| | 36 | 22 | |
17
+| | 39 | TXD0 | |
18
+| | 34 | RXD0 | |
19
+| | 35 | 21 | |
20
+| | 32 | gnd | |
21
+| | 33 | 19 | |
22
+| | 25 | 18 | |
23
+| | 26 | 5 | |
24
+| | 27 | 17 | |
25
+| | 14 | 16 | |
26
+| | 12 | 4 | |
27
+| | gnd | 0 | |
28
+| | 13 | 2 | |
29
+| | 9 | 15 | |
30
+| | 10 | 8 | |
31
+| | 11 | 7 | |
32
+| | +5V | 6 | |
33
+
34
+
35
+
13 36
![](2024-01-10-11-17-52.png)
14 37
15 38
... ...
@@ -17,6 +40,9 @@ ESP32-DevKitC
17 40
18 41
![](2024-01-10-11-18-56.png)
19 42
43
+
44
+
45
+
20 46
## ref
21 47
22 48
- [[NWI1100]]
... ...
\ No newline at end of file
Board-dat/NWI/NWI1245-DAT/NWI1245-DAT.md
... ...
@@ -14,22 +14,25 @@ https://www.electrodragon.com/product/esp32-can-rs-485-wire-interface-shield/
14 14
15 15
## Used ESP32-DevKitC Pins
16 16
17
-- CAN UART
18
- - IO23 = CAN0_TX
19
- - IO22 = CAN0_RX
17
+- [[NWI1100-dat]]
20 18
21
-- UART1
22
- - IO17 = TXD1
23
- - IO16 = RXD1
19
+UART2 (CAN UART)
20
+- IO23 = CAN0_TX
21
+- IO22 = CAN0_RX
24 22
25
-- UART0 (default used by USB-TTL bridge chip)
26
- - TXD0 = TXD0
27
- - RXD0 = RXD0
23
+UART1 (RS485)
24
+- IO17 = TXD1
25
+- IO16 = RXD1
28 26
27
+UART0 (default used by USB-TTL bridge chip)
28
+- TXD0 = TXD0
29
+- RXD0 = RXD0
30
+
31
+MISC
29 32
- IO33 = Power_ADC
30 33
- IO5 = LED
31 34
32
-- general load switching
35
+General load switching
33 36
- please note one chip is not soldering default in case you don't need two to save cost
34 37
- try IO12 or IO19
35 38
- VBAT pin up to 36V, and OUTA or OUTB will be on/off when you digitalWrite it high or low
... ...
@@ -39,6 +42,27 @@ https://www.electrodragon.com/product/esp32-can-rs-485-wire-interface-shield/
39 42
- IO18 = STATUS2
40 43
41 44
45
+| L_assigned | left | right | R_assigned |
46
+| ---------- | ---- | ----- | ----------- |
47
+| | en | 23 | TXD2 (can) |
48
+| | 36 | 22 | RXD2 (can) |
49
+| | 39 | TXD0 | TXD0 (USB) |
50
+| | 34 | RXD0 | RXD0 (USB) |
51
+| | 35 | 21 | |
52
+| | 32 | gnd | |
53
+| Power_ADC | 33 | 19 | CTRL2 |
54
+| | 25 | 18 | STATUS2 |
55
+| | 26 | 5 | LED (prog) |
56
+| | 27 | 17 | TXD1 (485) |
57
+| | 14 | 16 | RXD1 (485) |
58
+| CTRL1 | 12 | 4 | |
59
+| | gnd | 0 | |
60
+| STATUS1 | 13 | 2 | |
61
+| | 9 | 15 | |
62
+| | 10 | 8 | |
63
+| | 11 | 7 | |
64
+| | +5V | 6 | |
65
+
42 66
43 67
44 68
## Schematic of peripherals
... ...
@@ -63,10 +87,6 @@ https://www.electrodragon.com/product/esp32-can-rs-485-wire-interface-shield/
63 87
64 88
- use a small driver to leverage in the between carefully
65 89
66
-## power supply
67
-
68
-- [[DCDC1]]
69
-
70 90
71 91
## demo
72 92
Chip-dat/ST-dat/STM32-dat/2024-07-03-14-37-57.png
... ...
Binary files /dev/null and b/Chip-dat/ST-dat/STM32-dat/2024-07-03-14-37-57.png differ
Chip-dat/ST-dat/STM32-dat/STM32-dat.md
... ...
@@ -12,7 +12,13 @@ legacy wiki page - https://w.electrodragon.com/w/Category:STM32
12 12
13 13
- [[DOD1084-dat]]
14 14
15
-Programmer - [[DPR1004-dat]]
15
+## Programmer
16
+
17
+based on [[CMSIS-dap-dat]] - [[st-link-dat]] - [[SWD-dat]]
18
+
19
+- [[DPR1004-dat]] - [[DPR1100-dat]]
20
+
21
+
16 22
17 23
## Periperals list
18 24
... ...
@@ -26,14 +32,33 @@ SPI1
26 32
- [[NRF24L01-dat]]
27 33
28 34
Interface
29
-- [[USB-dat]] - [[Jtag-dat]]
35
+- [[USB-dat]] - [[Jtag-dat]] - [[can-dat]]
30 36
31 37
## Boot
32 38
33
-| Setup | Common Pin | User Flash Boot | ISP | System |
34
-| ----- | ---------- | --------------- | --- | ------ |
35
-| Boot0 | Boot0 | 0 | 0 | 1 |
36
-| Boot1 | PB2 | x | 0 | 1 |
39
+| Setup | Common Pin | User Flash Boot | ISP | System |
40
+| ----- | ---------- | --------------- | ----------- | ------ |
41
+| Boot0 | Boot0 | 0 | 0 | 1 |
42
+| Boot1 | PB2 | x | 0 | 1 |
43
+| - | - | SWD/JTAG prog | Serial prog | - |
44
+
45
+![](2024-07-03-14-37-57.png)
46
+
47
+
48
+### Main Flash memory
49
+It is the built-in Flash of STM32. Generally, when we use JTAG or SWD mode to download the program, it is downloaded to this memory, and the program is directly started from this memory after restarting.
50
+
51
+### System memory
52
+Starting from the system memory, the program function started in this mode is set by the manufacturer.
53
+
54
+Generally speaking, this startup method is rarely used. The system memory is a specific area inside the chip. When STM32 leaves the factory, ST presets a BootLoader inside this area, which is what we often call the ISP program. This is a ROM and cannot be modified after leaving the factory.
55
+
56
+Generally speaking, when we choose this startup mode, it is to download the program from the serial port, because the firmware of the serial port download program is provided in the BootLoader provided by the manufacturer, and the program can be downloaded to the system's Flash through this BootLoader.
57
+
58
+### Embedded Memory
59
+Built-in SRAM, since it is SRAM, naturally there is no program storage capability. This mode is generally used for program debugging. If I only modify a small part of the code, then I need to erase the entire Flash again, which is time-consuming. I can consider starting the code from this mode (that is, in the memory of STM32) for fast program debugging. After the program debugging is completed, download the program to SRAM.
60
+
61
+
37 62
38 63
## UART
39 64
... ...
@@ -56,3 +81,34 @@ https://github.com/Edragon/STM32_SDK-examples
56 81
- https://github.com/Edragon/STM32-F103-AT1
57 82
- https://github.com/Edragon/STM32-F103-AT2
58 83
84
+
85
+## Chip Naming
86
+
87
+STM32F103 R C T 6
88
+
89
+STM32F042 C 8 T 6
90
+STM32F042 K 4 T 6
91
+STM32F042 K 6 T 6
92
+
93
+- K = 32P
94
+- C = 48P
95
+- R = 64P
96
+- V = 100
97
+- Z = 144
98
+
99
+
100
+- C = 256 KB
101
+- D = 384 KB
102
+- E = 512 KB
103
+
104
+
105
+- H = BGA
106
+- T = LQFP
107
+- Y = WLCSP64
108
+
109
+- 6 = Industrial temperature range, –40 to 85 °C.
110
+
111
+
112
+## ref
113
+
114
+- [[STM32]]
SDK-dat/CMSIS-DAP-dat/CMSIS-DAP-dat.md
... ...
@@ -15,4 +15,4 @@
15 15
16 16
## ref
17 17
18
-- [[CMSIS-dap]]
... ...
\ No newline at end of file
0
+- [[CMSIS-dap]] - [[stm32-dat]]
... ...
\ No newline at end of file
Tech-dat/ARM-dat/SWD-dat/SWD-dat.md
... ...
@@ -0,0 +1,8 @@
1
+
2
+# SWD-dat
3
+
4
+- https://static.docs.arm.com/ihi0031/d/debug_interface_v5_2_architecture_specification_IHI0031D.pdf
5
+- https://www.arm.com/files/pdf/Serial_Wire_Debug.pdf
6
+
7
+
8
+https://stm32-base.org/guides/connecting-your-debugger.html
... ...
\ No newline at end of file
Tech-dat/Interface-dat/can-dat/can-dat.md
... ...
@@ -21,4 +21,5 @@ legacy wiki page - https://w.electrodragon.com/w/Category:CAN
21 21
22 22
- [[ITF1000-dat]]
23 23
24
-- [[NWI1245-dat]]
... ...
\ No newline at end of file
0
+- [[NWI1245-dat]]
1
+