Hide last authors
Xiaoling 16.2 1 **Table of Contents:**
2
Xiaoling 1.1 3 {{toc/}}
4
5
6
Xiaoling 32.2 7 = 1.  Instruction for Windows OS Platform =
Xiaoling 1.1 8
9
10
Xiaoling 16.3 11 == (% style="color:blue" %)**Step 1:Install MSYS2**(%%) ==
Xiaoling 1.1 12
13
Xiaoling 16.2 14 Download [[MSYS2>>url:https://www.msys2.org/]] and Install
Xiaoling 1.1 15
Xiaoling 16.3 16
Xiaoling 16.2 17 [[image:image-20220729090235-1.png]]
Xiaoling 1.1 18
19
20
Xiaoling 16.3 21 == (% style="color:blue" %)**Step 2:Open MSYS2**(%%) ==
Xiaoling 1.1 22
23
Xiaoling 16.2 24 [[image:image-20220729090235-2.png]]
Xiaoling 1.1 25
Xiaoling 16.2 26
Xiaoling 16.3 27 (% style="color:#037691" %)**Install related software**(%%):  pacman -S git vim make unzip python python-pip
Xiaoling 16.2 28
Xiaoling 16.3 29 (% style="color:#037691" %)**Use pip to install pyserial**(%%):pip install pyserial configparser
Xiaoling 16.2 30
31
32 [[image:image-20220729090235-3.png]]
33
34
35 [[image:image-20220729090235-4.png]]
36
37
38
Xiaoling 16.3 39 == (% style="color:blue" %)**Step 3:Get LA66 SDK.**(%%) ==
Xiaoling 16.2 40
41
Edwin Chen 24.1 42 (% style="color:red" %)**Step 1:**(%%)  Download LA66 code. There are two alternatives, you can use one of them.
Xiaoling 16.2 43
Edwin Chen 24.1 44 * [[ASR Official SDK>>https://github.com/asrlora/asr_lora_6601/tree/master/projects/ASR6601SE-EVAL/examples/lora]]. Include ping pong example
Xiaoling 32.2 45
Edwin Chen 24.1 46 * [[GitHub - dragino/LA66: LoRaWAN Module>>url:https://github.com/dragino/LA66]]   (Dragino SDK for LA66, LoRaWAN version).
Xiaoling 16.2 47
Xiaoling 32.2 48 [[image:image-20220729114259-17.png||height="673" width="1242"]]
Xiaoling 16.2 49
Xiaoling 23.2 50
51
52 (% style="color:red" %)**Step 2:**(%%)  [[Downloads ~| GNU Arm Embedded Toolchain Downloads – Arm Developer>>url:https://developer.arm.com/downloads/-/gnu-rm]]
53
54
55 [[image:image-20220729112807-16.png]]
56
57
58
59 (% style="color:red" %)**Step 3:**(%%)  Copy the file downloaded in step 2 to the folder directory of (% style="color:blue" %)**.../LA66/tools/toolchain**(%%) in step 1.
60
61 [[image:1659066692266-907.png]]
62
63
64
Xiaoling 16.3 65 == (% style="color:blue" %)**Step 4:Connect your LA66 to PC via USB TTL.**(%%) ==
Xiaoling 16.2 66
67
Xiaoling 23.2 68 [[image:image-20220729115250-18.png]]
Xiaoling 16.2 69
70
Xiaoling 23.2 71 [[image:1659066790319-777.png]]
Xiaoling 16.2 72
Xiaoling 23.2 73
74
Xiaoling 16.3 75 == (% style="color:blue" %)**Step 5:Check USB Port**(%%) ==
Xiaoling 16.2 76
77
Xiaoling 16.3 78 (% class="box infomessage" %)
79 (((
80 **ls /dev/**
81 )))
Xiaoling 16.2 82
83
84 [[image:image-20220729090235-5.png]]
85
86
87
Xiaoling 16.3 88 == (% style="color:blue" %)**Step 6:Open Makefile File, Modify Region and USB Port**(%%) ==
Xiaoling 16.2 89
90
91 [[image:image-20220729090235-6.png]]
92
93
94 [[image:image-20220729090235-7.png]]
95
96
97
Xiaoling 16.3 98 == (% style="color:blue" %)**Step 7:Use Make to compile**(%%) ==
Xiaoling 16.2 99
100
Xiaoling 32.2 101 Open Directory cd E: /ASR6601_soft_DRAGINO/LA66
Xiaoling 16.2 102
103 source build/envsetup.sh
104
105 cd Projects/Applications/DRAGINO-LRWAN-AT
106
107 make
108
109 make flash
110
111 [[image:image-20220729090235-8.png]]
112
113
114 [[image:image-20220729090235-9.png]]
115
116 [[image:image-20220729090235-10.png]]
117
118
119
Xiaoling 16.3 120 == (% style="color:blue" %)**Step 8:Uplink Image to LA66**(%%) ==
Xiaoling 16.2 121
122
Xiaoling 23.2 123 LA66 LoRaWAN shield:
Xiaoling 16.2 124
Xiaoling 23.2 125
Xiaoling 23.3 126 (% style="background-color:yellow" %)**Connection:**
Xiaoling 23.2 127
128 **Connect the Jump cap**
129
130 **10  <-> USB TTL RX**
131
132 **11  <-> USB TTL TX**
133
134 **GND <-> USB TTL GND**
135
136 **3V3  <-> USB TTL 3.3v**
137
138 **Switch SW1 to ISP   **
139
140 **Press the RST key**
141
142 (((
143
144 )))
145
146 [[image:1659066869051-599.png]]
147
148
149
Xiaoling 16.2 150 Put USB LoRaWAN Adapter into Program Mode, and press reset
151
152 [[image:image-20220729090235-11.png]]
153
154
Xiaoling 16.3 155 **Run make flash**
Xiaoling 16.2 156
157 [[image:image-20220729090235-12.png]]
158
159 [[image:image-20220729090235-13.png]]
160
161 Wait for update finish, remove program jumper and press reset
162
163
Xiaoling 16.3 164 **Below is the serial output after update success.**
165
Xiaoling 16.2 166 [[image:image-20220729090235-14.png]]
167
168
Xiaoling 16.3 169 **Example for output files of Make**
Xiaoling 16.2 170
171 [[image:image-20220729090235-15.png]]
Saxer Lin 31.1 172
173
Xiaoling 32.2 174 = 2.  Instruction for Keil =
Saxer Lin 31.1 175
176
177 == (% style="color:blue" %)**Step 1:Install and buy Keil MDK**(%%) ==
178
179 Download [[Keil>>https://developer.arm.com/Tools%20and%20Software/Keil%20MDK]] and Install
180
181 [[image:image-20230601083231-1.png||height="390" width="618"]]
182
183
184 == (% style="color:blue" %)**Step 2:Get LA66 SDK**(%%) ==
185
186
Saxer Lin 32.1 187 (% id="cke_bm_17394S" style="color:red; display:none" %)** **(% style="color:red" %)**Step 1:**(%%)  Download LA66 code. There are two alternatives, you can use one of them.
Saxer Lin 31.1 188
189 * [[ASR Official SDK>>https://github.com/asrlora/asr_lora_6601/tree/master/projects/ASR6601SE-EVAL/examples/lora]]. Include ping pong example
Xiaoling 32.2 190
Saxer Lin 31.1 191 * [[GitHub - dragino/LA66: LoRaWAN Module>>url:https://github.com/dragino/LA66]]   (Dragino SDK for LA66, LoRaWAN version).
192
Xiaoling 32.2 193 [[image:image-20220729114259-17.png||height="640" width="1181"]]
Saxer Lin 31.1 194
195
196 (% style="color:red" %)**Step 2:**(%%)  [[Downloads ~| GNU Arm Embedded Toolchain Downloads – Arm Developer>>url:https://developer.arm.com/downloads/-/gnu-rm]]
197
198 [[image:image-20220729112807-16.png]]
199
200
Xiaoling 32.2 201 (% style="color:red" %)**Step **(% style="color: red; display: none" %)** **(% style="color:red" %)**3:**(%%) Unzip the file downloaded in step 2 to the root directory of keil. As shown below:
Saxer Lin 31.1 202
203 [[image:image-20230601083523-3.png||height="180" width="727"]]
204
205
Xiaoling 32.2 206
Saxer Lin 31.1 207 == (% style="color:blue" %)**Step 3:Add firmware library to keil**(%%) ==
208
Xiaoling 32.2 209
Saxer Lin 31.1 210 (% style="color:red" %)**Step 1:**(%%)  Open the keil project.
211
212 [[image:image-20230601083545-4.png||height="183" width="661"]]
213
214
215 (% style="color:red" %)**Step 2:**(%%)  Add firmware library.
216
217 [[image:image-20230601083634-5.png||height="413" width="699"]]
218
219
220 (% style="color:red" %)**Step 3:**(%%)  Compile successfully.
221
222 [[image:image-20230601083710-6.png||height="90" width="729"]]
223
224
Xiaoling 32.2 225
Saxer Lin 31.1 226 == (% style="color:blue" %)**Step 4:Download firmware**(%%) ==
227
Xiaoling 32.2 228
Saxer Lin 32.1 229 [[UART Access for LoRa ST v4 base model>>http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/]]
Saxer Lin 31.1 230
231
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0