Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
bootloader [2020/09/28 23:02] yairbootloader [2020/09/29 10:02] yair
Line 2: Line 2:
 ===to compile a tiny bootloader=== ===to compile a tiny bootloader===
  
-**TLDR**+===TLDR===
 on ubuntu (or wsl) on ubuntu (or wsl)
 <code bash> <code bash>
Line 15: Line 15:
 make upload make upload
 </code> </code>
 +
 +we are piggy backing on a windows successful bootloader upload to grab the right fuses everything. \\
 +just need to adapt 
 +  * serial port (if changed from the windows upload sequence. 
 +  * full path to HEX file (TinyFlexiAudioBoot_PB0.hex) you got from the make/linux build.\\
 +WIP
  
 <code> <code>
Line 24: Line 30:
 </code> </code>
  
 +=== why===
 was asked to compile the [[https://github.com/idiot-io/TinyAudioBoot|TinyAudioBoot]] bootloader.  was asked to compile the [[https://github.com/idiot-io/TinyAudioBoot|TinyAudioBoot]] bootloader. 
  
-i couldn't get budi's ''TinyAudioBoot/bootloaderbuild'' to work, must be a typo of mine. \\+i couldn't get budi's ''TinyAudioBoot/bootloaderbuild'' to work,<del> must be a typo of mine.</del> \\ 
 +yes, recreate the symbolic link for ''bootloaderbuild/main.cpp'' 
 +  ln -s /where/is/repo/TinyAudioBoot/TinyAudioBoot/TinyAudioBoot.c main.cpp
 so decided to make an automated build system that will pull (most) needed dependencies and compile.  so decided to make an automated build system that will pull (most) needed dependencies and compile. 
  
Line 37: Line 45:
   * [[https://github.com/SpenceKonde/ATTinyCore|ATTinyCore]]   * [[https://github.com/SpenceKonde/ATTinyCore|ATTinyCore]]
  
-===os support===+**os support** 
 for the following i used ubuntu on windows. \\ for the following i used ubuntu on windows. \\
 so get into ubuntu, TLDR: use [[https://code.visualstudio.com/|vscode]] and click the bottom left green button. so get into ubuntu, TLDR: use [[https://code.visualstudio.com/|vscode]] and click the bottom left green button.
Line 61: Line 70:
   ./install.sh   ./install.sh
 from the arduino directory to get the icons on desktop, we are not interested.  from the arduino directory to get the icons on desktop, we are not interested. 
 +
 +
 ===get the project=== ===get the project===
 we will clone the git for tinyaudio and get the two other submodules.  we will clone the git for tinyaudio and get the two other submodules.