Skip to content

Commit 3dbfa90

Browse files
committed
Add programing files. Add back board file.
1 parent deb08f3 commit 3dbfa90

File tree

7 files changed

+7342
-148
lines changed

7 files changed

+7342
-148
lines changed
73.7 KB
Binary file not shown.

Binaries/batch_program.bat

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@echo Programming SparkFun LoRaSerial
2+
3+
rem if [%1]==[] goto usage
4+
5+
:loop
6+
7+
@echo Programming binary: %1 on %2
8+
9+
@echo Flashing bootloader and firmware...
10+
@bossac.exe -i -d --port=%2 -U true -i -e -w -v %1 -R
11+
12+
@echo Done programming! Ready for next board.
13+
rem @pause
14+
15+
rem goto loop
16+
17+
rem :usage
18+
rem @echo Missing the binary file and com port arguments. Ex: batch_program.bat LoRaSerial_Firmware_v10.bin COM29

Binaries/bossac.exe

11.3 MB
Binary file not shown.

Binaries/readme.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Programming ATtiny84x in Circuit
2+
===========================================================
3+
4+
The Qwiic Twist uses an ATtiny84A that must be programmed with firmware. This is done with spring pins aka Pogo Pins and an AVR programmer of your choice. We've had success with using an [Arduino as the ISP programmer](https://www.arduino.cc/en/Tutorial/BuiltInExamples/ArduinoISP) but we use the [Tiny AVR Programmer](https://www.sparkfun.com/products/11801) for day to day work.
5+
6+
1) Get the Tiny AVR Programmer and the [necessary drivers](https://learn.sparkfun.com/tutorials/tiny-avr-programmer-hookup-guide#driver-installation) installed.
7+
2) Clear the VCC solder jumper from the Tiny AVR Programmer. This jumper is closed by default and will power the target at 5V. While 5V will not harm the ATtiny targets, but many Qwiic boards have 3.3V sensitive sensors and peripherals so it's best to power the target through a Qwiic cable.
8+
3) Solder 6-pin [female header](https://www.sparkfun.com/products/115) to the bottom of the programmer
9+
4) Assemble the [SparkFun ISP Pogo Adapter](https://www.sparkfun.com/products/11591)
10+
5) Attach the pogo adapter to the bottom of the programmer.
11+
12+
![Programming ISP via Pogo Pins on ATtiny84A](https://github.com/sparkfun/Qwiic_Twist/blob/master/Programming/Images/ATtiny%20Pogo%20ISP%20-%202.jpg?raw=true)
13+
14+
15+
6) Identify and mark pin 1 on the bottom of the adapter. You'll need to know where pin 1 is to align it on the target ISP holes.
16+
17+
![Programming ISP via Pogo Pins on ATtiny84A](https://github.com/sparkfun/Qwiic_Twist/blob/master/Programming/Images/ATtiny%20Pogo%20ISP%20-%203.jpg?raw=true)
18+
19+
7) Attach Tiny AVR Programmer to a USB extension cable to allow free movement of the programmer. Confirm that avrdude can see the programmer.
20+
8) Connect the target device to a development board using a Qwiic cable so that it is powered.
21+
9) Download the contents of the 'Programming' folder so that you have **avrdude.exe**, **avrdude.conf**, and **program_qwiic_twist.bat** in a folder.
22+
9) Open a command line, navigate to 'program_qwiic_twist.bat' and run. It should fail because no ATtiny was detected. If it failed because an attinyusb was not found then you may need to troubleshoot your Tiny AVR Programmer and/or edit the batch file to match your programmer type.
23+
10) Press and hold the pogo pins against the 6 exposed pins on the target. Your mark on the pogo pins should match with the small white silkscreen on the ISP on the target. You may need to wiggle the Pogo adapter until you hear all 6 pins seat into the ISP footprint.
24+
25+
![Programming ISP via Pogo Pins on ATtiny84A](https://raw.githubusercontent.com/sparkfun/Qwiic_Twist/master/Programming/Images/ATtiny%20Pogo%20ISP%20-%201.jpg)
26+
27+
28+
11) Press enter with your free hand to begin programming.
29+
![Programming ISP via Pogo Pins on ATtiny84A](https://github.com/sparkfun/Qwiic_Twist/blob/master/Programming/Images/avrdude%20output.jpg?raw=true)
30+

Firmware/LoRaSerial_Firmware/LoRaSerial_Firmware.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
Compiled with Arduino v1.8.15
4040
*/
4141

42-
const int FIRMWARE_VERSION_MAJOR = 1;
43-
const int FIRMWARE_VERSION_MINOR = 0;
42+
const int FIRMWARE_VERSION_MAJOR = 0;
43+
const int FIRMWARE_VERSION_MINOR = 1;
4444

4545
//#define ENABLE_DEVELOPER //Uncomment this line to enable special developer modes
4646

Firmware/LoRaSerial_Firmware_RX/Train.ino

Lines changed: 0 additions & 146 deletions
This file was deleted.

0 commit comments

Comments
 (0)