Chip-dat/ST-dat/STM32-dat/STM32-HDK-dat/STM32-HDK-dat.md
... ...
@@ -53,6 +53,11 @@ stm32flash -w firmware.bin -v -g 0x0 /dev/ttyUSB0
53 53
54 54
- [[ST-Link-dat]]
55 55
56
+
57
+## Apps
58
+
59
+- [[Lora-HDK-dat]]
60
+
56 61
## ref
57 62
58 63
- [[STM32-dat]]
SDK-dat/MDK-ARM-dat/AC5-dat/AC5-dat.md
... ...
@@ -0,0 +1,22 @@
1
+
2
+# AC5-dat
3
+
4
+### Missing Complier Version 5
5
+
6
+https://developer.arm.com/documentation/ka005198/latest
7
+
8
+download
9
+
10
+Arm Compiler 5.06 update 7 (build 960) -- r5p6-07rel1 -- 14 Sep 2020
11
+
12
+## install workflow
13
+
14
+- install MDK-ARM
15
+- install ARM Compilier 5 (optionally) == [[AC5-dat]]
16
+ - create a folder in installation folder, for example "AC5" in D:\MDK\Keil_v5\ARM
17
+ - install into "AC5"
18
+
19
+
20
+## ref
21
+
22
+- [[MDK-ARM-dat]]
... ...
\ No newline at end of file
SDK-dat/MDK-ARM-dat/MDK-ARM-dat.md
... ...
@@ -10,6 +10,8 @@
10 10
- 5.3.8
11 11
- 5.3.4
12 12
13
+install from official websites
14
+
13 15
- https://armkeil.blob.core.windows.net/eval/MDK539.EXE
14 16
- https://armkeil.blob.core.windows.net/eval/MDK538a.EXE
15 17
- https://armkeil.blob.core.windows.net/eval/MDK538.EXE
... ...
@@ -26,11 +28,12 @@
26 28
- https://armkeil.blob.core.windows.net/eval/MDK527.EXE
27 29
- https://armkeil.blob.core.windows.net/eval/MDK526.EXE
28 30
31
+## install workflow
29 32
30
-## Output file
31
-
32
-
33
-
33
+- install MDK-ARM
34
+- install ARM Compilier 5 (optionally) == [[AC5-dat]]
35
+ - create a folder in installation folder, for example "AC5" in D:\MDK\Keil_v5\ARM
36
+ - install into "AC5"
34 37
35 38
## Supports
36 39
... ...
@@ -94,7 +97,7 @@ correct file
94 97
95 98
D:\MDK\Arm\Packs\ARM\CMSIS\5.9.0\CMSIS\Core\Include
96 99
97
-### '#pragma import' is an Arm Compiler 5 extension
100
+### '#pragma import' is an Arm Compiler 5 extension == install [[AC5-dat]]
98 101
99 102
../Driver/driver_usart.c(137): error: '#pragma import' is an Arm Compiler 5 extension, and is not supported by Arm Compiler for Embedded 6 [-Warmcc-pragma-import]
100 103
#pragma import(__use_no_semihosting)
... ...
@@ -114,17 +117,7 @@ D:\MDK\Arm\Packs\ARM\CMSIS\5.9.0\CMSIS\Core\Include
114 117
static uint8_t rxbuff[SIZE_DATA] = {0};
115 118
^
116 119
117
-### Missing Complier Version 5
118
-
119
-https://developer.arm.com/documentation/ka005198/latest
120 120
121
-download
122
-
123
-Arm Compiler 5.06 update 7 (build 960) -- r5p6-07rel1 -- 14 Sep 2020
124
-
125
-install into
126
-
127
-D:\MDK\Complier\
128 121
129 122
#### select complier for project
130 123
Tech-dat/Network-dat/RF-dat/LORA-DAT/Lora-SDK-dat/Lora-SDK-dat.md
... ...
@@ -44,7 +44,10 @@ Path: The UserConfig.c file in LR_driver is a common file generated when adaptin
44 44
- https://github.com/Edragon/alios-asr-lora
45 45
- E:\Git-category\git-lora
46 46
47
-## LORA STM32 code
47
+
48
+## Config
49
+
50
+### STM32 code
48 51
49 52
sx126x_mod_params_lora_t params;
50 53
params.bw = SX126X_LORA_BW_125; // Set bandwidth to 125 kHz
... ...
@@ -53,7 +56,19 @@ Path: The UserConfig.c file in LR_driver is a common file generated when adaptin
53 56
params.ldro = 0x00; // Low Data Rate Optimization disabled
54 57
sx126x_set_lora_mod_params(NULL, &params); // Apply these parameters to the radio
55 58
59
+### arduino sandeepmistry/arduino-LoRa Config
60
+
61
+ LoRa.setPins(csPin, resetPin, irqPin); // set CS, reset, IRQ pin
62
+
63
+ if (!LoRa.begin(915E6)) { // initialize ratio at 915 MHz
64
+ Serial.println("LoRa init failed. Check your connections.");
65
+ while (true); // if failed, do nothing
66
+ }
56 67
68
+ LoRa.setSignalBandwidth(125E3);
69
+ LoRa.setSpreadingFactor(9); // ranges from 6-12,default 7 see API docs
70
+ LoRa.setCodingRate4(4/6);
71
+
57 72
58 73
59 74
## lora encrpytion
... ...
@@ -106,6 +121,9 @@ Example (Arduino, using AESLib):
106 121
- LoRaWAN: If you use LoRaWAN, encryption is handled by the protocol stack automatically.
107 122
- Raw LoRa: You must implement encryption/decryption yourself as shown above.
108 123
124
+
125
+
126
+
109 127
## ref
110 128
111 129
- [[lora-dat]] - [[lora-HDK-dat]] - [[lora-SDK-dat]]
... ...
\ No newline at end of file
Tech-dat/Network-dat/RF-dat/LORA-DAT/lora-hdk-dat/lora-hdk-dat.md
... ...
@@ -9,15 +9,64 @@
9 9
10 10
11 11
12
-2025 [[SX1262-dat]] with [[STM32-dat]] - [[STM32-HDK-dat]]
12
+## 2025 [[SX1262-dat]] with [[STM32-dat]] - [[STM32-HDK-dat]]
13 13
14 14
![](2025-06-23-17-59-05.png)
15 15
16
-2022 RFM92 with [[atmega328-dat]]
16
+def in UserConfig.h
17
+
18
+ //spi
19
+ #define LCC68_NSS_PORT GPIOA
20
+ #define LCC68_NSS_PIN GPIO_PIN_4
21
+
22
+ #define LCC68_SCK_PORT GPIOA
23
+ #define LCC68_SCK_PIN GPIO_PIN_5
24
+
25
+ #define LCC68_MOSI_PORT GPIOA
26
+ #define LCC68_MOSI_PIN GPIO_PIN_7
27
+
28
+ #define LCC68_MISO_PORT GPIOA
29
+ #define LCC68_MISO_PIN GPIO_PIN_6
30
+
31
+
32
+ #define LCC68_NRST_PORT GPIOA
33
+ #define LCC68_NRST_PIN GPIO_PIN_3
34
+
35
+ #define LCC68_BUSY_PORT GPIOA
36
+ #define LCC68_BUSY_PIN GPIO_PIN_2
37
+
38
+ #define LCC68_DIO1_PORT GPIOC
39
+ #define LCC68_DIO1_PIN GPIO_PIN_15
40
+
41
+ #define LCC68_RXEN_PORT GPIOA
42
+ #define LCC68_RXEN_PIN GPIO_PIN_1
43
+
44
+ #define LCC68_TXEN_PORT GPIOA
45
+ #define LCC68_TXEN_PIN GPIO_PIN_0
46
+
47
+ //Uart
48
+ #define LOG_UART_TX_PORT GPIOA
49
+ #define LOG_UART_TX_PIN GPIO_PIN_9
50
+ #define LOG_UART_RX_PORT GPIOA
51
+ #define LOG_UART_RX_PIN GPIO_PIN_10
52
+
53
+
54
+ #define LORA_FRE 915000000 // frequency
55
+ #define LORA_PREAMBLE_LENGTH 8 // PREAMBLE LENGTH
56
+ #define LORA_SX126x_SYMBOL_TIMEOUT 0 // Symbols(SX126x)
57
+ #define LORA_FIX_LENGTH_PAYLOAD_ON false // PAYLOAD FIX LENGTH
58
+ #define LORA_IQ_INVERSION_ON false // IQ INVERSION
59
+
60
+ #define SIZE_DATA 255
61
+
62
+
63
+
64
+
65
+## 2022 RFM92 with [[atmega328-dat]]
17 66
18 67
![](2025-06-23-18-15-55.png)
19 68
20
-RFM92 with [[RPI-dat]]
69
+## RFM92 with [[RPI-dat]]
21 70
22 71
![](2025-06-23-18-19-02.png)
23 72
Tech-dat/tech-dat.md
... ...
@@ -123,6 +123,10 @@
123 123
124 124
- [[arduino-IDE-DAT]] - [[ESP-SDK-dat]] - [[stm32-dat]]
125 125
126
+- [[STM32-SDK-dat]]
127
+
128
+- [[MDK-ARM-dat]]
129
+
126 130
## PROG
127 131
128 132
- [[SWD-dat]]