MT-DB-U4
User Guide
below.
12.
Plug in the board. The blink sketch should be running.
13.
Click Tools>Port and choose the COM port.
14.
You can now upload your own sketch.
Uploading the First Sketch
1.
In the Arduino IDE 1.6.7 (or above), open File>Examples>01.Basics>Blink.
2.
Change the three instances of '13' to 'LED_BUILTIN'.
3.
Be sure the correct options are selected in the Tools menu (see AVR Core Installation above).
4.
With the board plugged in, select the correct port from Tools>Port.
5.
Click the Upload button. After compiling, the sketch should be transferred to the board.
6.
Once the bootloader exits, the blink sketch should be running.
USB CDC Bootloader (Arduino compatible)
Each board has several bootloaders available. The CDC bootloader can be used with Arduino.
Version 130410 or above is required to support the autoreset feature. Note that several boards that
were shipped after 130410 but before 130626 still have the old bootloader.
The bootloader enters programming mode only if the jumper is installed, except when using Arduino
autoreset or when the FLASH is empty. Even with the jumper installed, programming mode will NOT
be entered if the reset was from the watchdog timer, unless the boot key is enabled and the key
matches, as is the case with Arduino autoreset (the Arduino core uses a watchdog reset to enter the
bootloader).
The default CDC bootloader has the following compiletime options defined:
#define ENABLE_LED_BOOT
#define ENABLE_LED_APPLICATION
#define DISABLE_JTAG_APPLICATION
#define ENABLE_CLKDIV_1_APPLICATION
#define ENABLE_BOOT_KEY
#define ENABLE_RESET_AFTER_PROGRAMMING
#define NO_LOCK_BYTE_WRITE_SUPPORT
An alternate version with the above options undefined is available on the website named
Bootloader_no_options.hex. Use it if the default options interfere with your application. For example,
you may disconnect the LED and use the pin as an analog input.
Bootloader Firmware Installation Using the Arduino IDE
1.
If you do not already have the MattairTech AVR core installed, see AVR Core Installation
above.
2.
Plug a compatible programmer into a USB port, then connect it to the powered AVR board.
3.
Select your programmer from Tools>Programmer.
4.
Select your board from Tools>Board.
December 30, 2015
22
http://www.mattairtech.com/