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