MEDIATEK LinkIt Smart 7688 Developer's Manual page 89

Hide thumbs Also See for LinkIt Smart 7688:
Table of Contents

Advertisement

6.6.9.
Using LinkIt Smart 7688 Duo to program boot loader on another LinkIt
Smart 7688 Duo
In the following example, there are two LinkIt Smart 7688 Duo boards called A and B. The first
board A will act as the programmer to program the second board B.
In Arduino IDE, go to Tools > Board > and select LinkIt Smart 7688 Duo
1)
Open the sketch
2)
Modify the code line #define RESET SS to #define RESET 10
3)
Upload the modified sketch to board
4)
S0, S1, S2, GND
Connect pins
5)
D10
Connect pin
6)
In Arduino IDE, go to Tools > Programmer > and select LinkIt Smart 7688 Duo
7)
Finally, go to Tools > and select Burn Boot loader
8)
6.6.10.
Using AVRDUDE from OpenWrt To Program Boot loader
You can also program ATmega32U4 from the Linux side (MT7688). The system image is
preloaded with AVRDUDE package that allows you to program the ATmega32U4. AVRDUDE is a
command line tool for flashing codes to MCU on Linux.
Copy the boot loader file to a storage device (USB drive or SD card) or to your computer.
1)
The boot loader file is located in the following path:
{ARDUINO_IDE_PREFERENCE_LOCATION}Arduino15\packages\LinkIt\hardware\
avr\0.1.5\bootloaders\caterina\Caterina-smart7688.hex
Please see
Transfer the boot loader to LinkIt Smart 7688 Duo. You can use a storage device or SCP
2)
tool to transfer the boot loader. In this example, a USB drive called
Connect the USB drive to LinkIt Smart 7688 Duo and in the system console, go to the root
directory by typing the following command:
cd /Media/USB-A1
In the system console, execute the following command:
3)
avrdude –p m32u4 –c linuxgpio –v –e –U flash:w:Caterina-smart7688.hex –U
lock:w:0x0f:m
After the boot loader is programmed into the ATmega32U4, you should see a screen
4)
similar to Figure 60.
This document contains information that is proprietary to MediaTek Inc.
Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited.
> ArduinoISP
Example
A
of board
RST
of board
A
to pin
Figure 50
for Arduino preference location.
© 2015, 2016 MediaTek Inc.
MediaTek LinkIt™ Smart 7688 Developer's Guide
A
to the same pins of board
of board
B
B
ISP
as
USB-A1
is used.
Page 89

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents