Skip to main content

Compile and Upload Code to ASR6601 Platform

1. Instruction for Windows OS Platform

Step 1:Install MSYS2

Download MSYS2 and Install

image-20220729090235-1.png

Step 2:Open MSYS2

image-20220729090235-2.png

Install related software: pacman -S git vim make unzip python python-pip

Use pip to install pyserial:pip install pyserial configparser

image-20220729090235-3.png

image-20220729090235-4.png

Step 3:Get LA66 SDK.

Step 1: Download LA66 code. There are two alternatives, you can use one of them.

image-20220729114259-17.png

Step 2: Downloads | GNU Arm Embedded Toolchain Downloads – Arm Developer

image-20220729112807-16.png

Step 3: Copy the file downloaded in step 2 to the folder directory of .../LA66/tools/toolchain in step 1.

1659066692266-907.png

Step 4:Connect your LA66 to PC via USB TTL.

image-20220729115250-18.png

1659066790319-777.png

Step 5:Check USB Port

ls /dev/

image-20220729090235-5.png

Step 6:Open Makefile File, Modify Region and USB Port

image-20220729090235-6.png

image-20220729090235-7.png

Step 7:Use Make to compile

Open Directory cd E: /ASR6601_soft_DRAGINO/LA66
source build/envsetup.sh
cd Projects/Applications/DRAGINO-LRWAN-AT
make
make flash

image-20220729090235-8.png

image-20220729090235-9.png

image-20220729090235-10.png

LA66 LoRaWAN shield:

Connection:

Connect the Jump cap

10 <-> USB TTL RX
11 <-> USB TTL TX
GND <-> USB TTL GND
3V3 <-> USB TTL 3.3v

Switch SW1 to ISP

Press the RST key

1659066869051-599.png

Put USB LoRaWAN Adapter into Program Mode, and press reset

image-20220729090235-11.png

Run make flash

image-20220729090235-12.png

image-20220729090235-13.png

Wait for update finish, remove program jumper and press reset

Below is the serial output after update success.

image-20220729090235-14.png

Example for output files of Make

image-20220729090235-15.png

2. Instruction for Keil

Step 1:Install and buy Keil MDK

Download Keil and Install

image-20230601083231-1.png

Step 2:Get LA66 SDK

Step 1: Download LA66 code. There are two alternatives, you can use one of them.

image-20220729114259-17.png

Step 2: Downloads | GNU Arm Embedded Toolchain Downloads – Arm Developer

image-20220729112807-16.png

Step 3: Unzip the file downloaded in step 2 to the root directory of keil. As shown below:

image-20230601083523-3.png

Step 3:Add firmware library to keil

Step 1: Open the keil project.

image-20230601083545-4.png

Step 2: Add firmware library.

image-20230601083634-5.png

Step 3: Compile successfully.

image-20230601083710-6.png

Step 4:Download firmware

UART Access for LoRa ST v4 base model