Wiki source code of Compile and Upload Code to ASR6601 Platform
Show last authors
author | version | line-number | content |
---|---|---|---|
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 | 罗工把ASR6601 的 SDK 的 Github 代码连接也放到这里。 | ||
43 | |||
44 | |||
45 | |||
46 | == (% style="color:blue" %)**Step 4:Connect your LA66 to PC via USB TTL.**(%%) == | ||
47 | |||
48 | |||
49 | (这边放两个例子图: LA66 Shield 和 LA66 USB Adapter) | ||
50 | |||
51 | |||
52 | |||
53 | == (% style="color:blue" %)**Step 5:Check USB Port**(%%) == | ||
54 | |||
55 | |||
56 | (% class="box infomessage" %) | ||
57 | ((( | ||
58 | **ls /dev/** | ||
59 | ))) | ||
60 | |||
61 | |||
62 | [[image:image-20220729090235-5.png]] | ||
63 | |||
64 | |||
65 | |||
66 | == (% style="color:blue" %)**Step 6:Open Makefile File, Modify Region and USB Port**(%%) == | ||
67 | |||
68 | |||
69 | [[image:image-20220729090235-6.png]] | ||
70 | |||
71 | |||
72 | |||
73 | [[image:image-20220729090235-7.png]] | ||
74 | |||
75 | |||
76 | |||
77 | == (% style="color:blue" %)**Step 7:Use Make to compile**(%%) == | ||
78 | |||
79 | |||
80 | Open Directory cd E:/ASR6601_soft_DRAGINO/LA66 | ||
81 | |||
82 | source build/envsetup.sh | ||
83 | |||
84 | cd Projects/Applications/DRAGINO-LRWAN-AT | ||
85 | |||
86 | make | ||
87 | |||
88 | make flash | ||
89 | |||
90 | [[image:image-20220729090235-8.png]] | ||
91 | |||
92 | |||
93 | [[image:image-20220729090235-9.png]] | ||
94 | |||
95 | [[image:image-20220729090235-10.png]] | ||
96 | |||
97 | |||
98 | |||
99 | == (% style="color:blue" %)**Step 8:Uplink Image to LA66**(%%) == | ||
100 | |||
101 | |||
102 | (这边按复位键的地方需要两个例子图: LA66 Shield 和 LA66 USB Adapter) | ||
103 | |||
104 | Put USB LoRaWAN Adapter into Program Mode, and press reset | ||
105 | |||
106 | [[image:image-20220729090235-11.png]] | ||
107 | |||
108 | |||
109 | **Run make flash** | ||
110 | |||
111 | [[image:image-20220729090235-12.png]] | ||
112 | |||
113 | [[image:image-20220729090235-13.png]] | ||
114 | |||
115 | Wait for update finish, remove program jumper and press reset | ||
116 | |||
117 | |||
118 | |||
119 | **Below is the serial output after update success.** | ||
120 | |||
121 | [[image:image-20220729090235-14.png]] | ||
122 | |||
123 | |||
124 | |||
125 | **Example for output files of Make** | ||
126 | |||
127 | [[image:image-20220729090235-15.png]] |