Skip to content

kiibohd/manufacturing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

manufacturing

Visit our IRC channel

Programs and scripts used in manufacturing

Supports the following flashers:

  • Bus Pirate
  • Segger JLink

NOTE

These scripts are intended to be installed as a bundle The current flashing stations are Arch Linux installs which can be updated with the package.

Building Package

cd archpkg
makepkg

Generating Ruby Gem Packages

After installing the kiibohd-manufacturing package. This requires an internet connection as well as the pacgem package to be installed.

cd /tmp
/usr/local/kiibohd/gemgen.bash

Install all packages. The builds will run again, this time providing you all of the pkgs in the /tmp/gempkgs folder.

Remember, these packages may be platform specific. Pay attention to the platform.

Flashing

Flashing is straight-forward.

  • Attach flasher and keyboard to flashing station.
  • Run flashing script (e.g. IC60.flash)

Supported Devices

  • IC60.flash
  • ICED-R.flash
  • ICED-L.flash
  • WF.flash

Backend Scripts

Each .flash script calls many other scripts. In general these are:

  • erase.bash - #1 Erases chip, runs first.
  • bootloader.bash - #2 Flashes bootloader using external flasher
  • firmware.bash - #3 Flashes firmware using built-in usb flasher
  • test.bash - #4 Runs basis QA script

The generate.bash script is used to compile the specific git branch/revision of the bootloader and firmware binary images. This is only used when building the package.

Misc Scripts

Here's an example of a .bashrc configuration that takes advantage of the manufacturing infrastructure.

###### Flasher ######
alias mk20dx128vlf5='export DEVICE="MK20DX128XXX5"; export FAMILY="K20_50"'
alias mk20dx256vlh7='export DEVICE="MK20DX256XXX7"; export FAMILY="K20_72"'

jlink() {
	export TOOLCHAIN=$HOME/Downloads/jlink/JLink_Linux_V496m_x86_64
	export FIRMWARE=$2
	export ADDRESS=$3
	$HOME/Source/manufacturing/jlink.bash $1
}

buspirate() {
	export TOOLCHAIN=$HOME/Source/manufacturing/archpkg/src/programmer
	export FIRMWARE=$2
	export ADDRESS=$3
	$HOME/Source/manufacturing/buspirate.bash $1
}

About

Programs and scripts used in manufacturing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages