Wiki source code of Compile and Upload Code to ASR6601 Platform
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
16.2 | 1 | **Table of Contents:** |
2 | |||
![]() |
1.1 | 3 | {{toc/}} |
4 | |||
5 | |||
6 | |||
![]() |
16.2 | 7 | = **1. Instruction for Windows OS Platform** = |
![]() |
1.1 | 8 | |
9 | |||
10 | |||
![]() |
16.3 | 11 | == (% style="color:blue" %)**Step 1:Install MSYS2**(%%) == |
![]() |
1.1 | 12 | |
13 | |||
![]() |
16.2 | 14 | Download [[MSYS2>>url:https://www.msys2.org/]] and Install |
![]() |
1.1 | 15 | |
![]() |
16.3 | 16 | |
![]() |
16.2 | 17 | [[image:image-20220729090235-1.png]] |
![]() |
1.1 | 18 | |
19 | |||
20 | |||
![]() |
16.3 | 21 | == (% style="color:blue" %)**Step 2:Open MSYS2**(%%) == |
![]() |
1.1 | 22 | |
23 | |||
![]() |
16.2 | 24 | [[image:image-20220729090235-2.png]] |
![]() |
1.1 | 25 | |
![]() |
16.2 | 26 | |
![]() |
16.3 | 27 | (% style="color:#037691" %)**Install related software**(%%): pacman -S git vim make unzip python python-pip |
![]() |
16.2 | 28 | |
![]() |
16.3 | 29 | (% style="color:#037691" %)**Use pip to install pyserial**(%%):pip install pyserial configparser |
![]() |
16.2 | 30 | |
31 | |||
32 | [[image:image-20220729090235-3.png]] | ||
33 | |||
34 | |||
35 | [[image:image-20220729090235-4.png]] | ||
36 | |||
37 | |||
38 | |||
![]() |
16.3 | 39 | == (% style="color:blue" %)**Step 3:Get LA66 SDK.**(%%) == |
![]() |
16.2 | 40 | |
41 | |||
![]() |
24.1 | 42 | (% style="color:red" %)**Step 1:**(%%) Download LA66 code. There are two alternatives, you can use one of them. |
![]() |
16.2 | 43 | |
![]() |
24.1 | 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). | ||
![]() |
16.2 | 46 | |
![]() |
24.1 | 47 | |
![]() |
23.2 | 48 | [[image:image-20220729114259-17.png]] |
![]() |
16.2 | 49 | |
![]() |
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 | |||
![]() |
16.3 | 65 | == (% style="color:blue" %)**Step 4:Connect your LA66 to PC via USB TTL.**(%%) == |
![]() |
16.2 | 66 | |
67 | |||
![]() |
23.2 | 68 | [[image:image-20220729115250-18.png]] |
![]() |
16.2 | 69 | |
70 | |||
![]() |
23.2 | 71 | [[image:1659066790319-777.png]] |
![]() |
16.2 | 72 | |
![]() |
23.2 | 73 | |
74 | |||
![]() |
16.3 | 75 | == (% style="color:blue" %)**Step 5:Check USB Port**(%%) == |
![]() |
16.2 | 76 | |
77 | |||
![]() |
16.3 | 78 | (% class="box infomessage" %) |
79 | ((( | ||
80 | **ls /dev/** | ||
81 | ))) | ||
![]() |
16.2 | 82 | |
83 | |||
84 | [[image:image-20220729090235-5.png]] | ||
85 | |||
86 | |||
87 | |||
![]() |
16.3 | 88 | == (% style="color:blue" %)**Step 6:Open Makefile File, Modify Region and USB Port**(%%) == |
![]() |
16.2 | 89 | |
90 | |||
91 | [[image:image-20220729090235-6.png]] | ||
92 | |||
93 | |||
94 | |||
95 | [[image:image-20220729090235-7.png]] | ||
96 | |||
97 | |||
98 | |||
![]() |
16.3 | 99 | == (% style="color:blue" %)**Step 7:Use Make to compile**(%%) == |
![]() |
16.2 | 100 | |
101 | |||
102 | Open Directory cd E:/ASR6601_soft_DRAGINO/LA66 | ||
103 | |||
104 | source build/envsetup.sh | ||
105 | |||
106 | cd Projects/Applications/DRAGINO-LRWAN-AT | ||
107 | |||
108 | make | ||
109 | |||
110 | make flash | ||
111 | |||
112 | [[image:image-20220729090235-8.png]] | ||
113 | |||
114 | |||
115 | [[image:image-20220729090235-9.png]] | ||
116 | |||
117 | [[image:image-20220729090235-10.png]] | ||
118 | |||
119 | |||
120 | |||
![]() |
16.3 | 121 | == (% style="color:blue" %)**Step 8:Uplink Image to LA66**(%%) == |
![]() |
16.2 | 122 | |
123 | |||
![]() |
23.2 | 124 | LA66 LoRaWAN shield: |
![]() |
16.2 | 125 | |
![]() |
23.2 | 126 | |
![]() |
23.3 | 127 | (% style="background-color:yellow" %)**Connection:** |
![]() |
23.2 | 128 | |
129 | **Connect the Jump cap** | ||
130 | |||
131 | **10 <-> USB TTL RX** | ||
132 | |||
133 | **11 <-> USB TTL TX** | ||
134 | |||
135 | **GND <-> USB TTL GND** | ||
136 | |||
137 | **3V3 <-> USB TTL 3.3v** | ||
138 | |||
139 | **Switch SW1 to ISP ** | ||
140 | |||
141 | **Press the RST key** | ||
142 | |||
143 | |||
144 | |||
145 | ((( | ||
146 | |||
147 | ))) | ||
148 | |||
149 | [[image:1659066869051-599.png]] | ||
150 | |||
151 | |||
152 | |||
153 | |||
![]() |
16.2 | 154 | Put USB LoRaWAN Adapter into Program Mode, and press reset |
155 | |||
156 | [[image:image-20220729090235-11.png]] | ||
157 | |||
158 | |||
![]() |
16.3 | 159 | **Run make flash** |
![]() |
16.2 | 160 | |
161 | [[image:image-20220729090235-12.png]] | ||
162 | |||
163 | [[image:image-20220729090235-13.png]] | ||
164 | |||
165 | Wait for update finish, remove program jumper and press reset | ||
166 | |||
167 | |||
168 | |||
![]() |
16.3 | 169 | **Below is the serial output after update success.** |
170 | |||
![]() |
16.2 | 171 | [[image:image-20220729090235-14.png]] |
172 | |||
173 | |||
174 | |||
![]() |
16.3 | 175 | **Example for output files of Make** |
![]() |
16.2 | 176 | |
177 | [[image:image-20220729090235-15.png]] |