Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
SpDir Continues To Flash Error
In 2015 a batch of TinyG v8's shipped from the factory with incorrect
LOCKBITS set. To fix this issue you may contact Synthetos and we will fix your board and ship it back to you free of cost. However, if you want to fix this error yourself then proceed below.
DIY SpDir LOCKBIT's Fix
To fix this you will need:
- A windows machine (vm or bare metal)
- An AVRISP MKII or compatible programmer that support Atmel Studio and PDI programming mode.
- You can get the xboot.hex file here. [xboot.hex (https://raw.github.com/synthetos/TinyG/master/xboot/xboot/xboot.hex) NOTE: You need to right click and save as on the xboot.hex link to download the hex file correctly.
- Launch Atmel Studio and press CTRL-SHIFT-P (or click on the chip with a lightning bolt on it from the menu). You should see a screen like this:
- Select your programmer (assuming its plugged in correctly to your tinyg and your tinyg is powered up, the raised part on one side of the connector matches up with the gap in the white outline around the target on the tinyg), select the Atxmega192A3 as the chip and then click apply and then read. If all went well you should see your device signature populate.
- Next click on the
Lock Bitsmenu on the left (only visible after a successful step 3). It will look like this: Notice how they do not all say
NOLOCK. They need to ALL say
- Change all LOCKS to say
NOLOCKfrom the dropdown menus.
- Then click the program button below once they all are set to
NOLOCK. NOTE Sometimes this works sometimes it does not. I have not figured out why it works only sometimes. Not to worry move on to the section below if it fails. If it works then you should be good to go and ready to update your tinyg firmware like normal.
Failed To Set Lock Bits
If the above method failed its time to just erase the chip.
- Click on the
Memoriestab on the left. Then click on the erase chip like this:
- Now go back to the
LOCKBITStab and verify that they are all set to
NOLOCK. Like this:
Re-flashing TinyG & the Bootloader
If you were able to reset the lockbit without erasing the board you are pretty much done. However if you had to erase the board we now have no bootloader so follow the steps below to reflash the bootloader AND the new TinyG firmware.
- Follow the steps here to load your bootloader onto your TinyGv7-8. But come back here to finalize loading the TinyG firmware
- Now we need to load a tinyg firmware onto your board via the newly flashed bootloader you loaded in step 1. Remove the AVRISP programmer as you not need it to flash your board. Follow the instructions here.