USB library and build system for ChipWhisperer devices
Also includes other shared driver code (usart_driver, fpga_program code, etc.)
To build, navigate to the directory above this one (i.e. cd ..
) and run make
.
The makefile supports multiple jobs (-j
flag) and supports the following options:
VERBOSE
: If not "false", output the full build command for each file. Defaults to "false"GCCCOLOURS
: If "yes", force gcc to always output coloured text. If auto, leave it up to gcc. Otherwise, do not print colours. Defaults to "yes".Running make program
will attempt to erase and program the device with the newly built firmware.
TARGET = <X>
, where <X>
is your target's name (e.g. ChipWhisperer-Husky)SRC += <SRCFILES>
where <SRCFILES>
are your custom source files (e.g. main.c, others)SRC += <NAEUSBFILES>
where <NAEUSBFILES>
are any source files you need from this directoryLINKERFILE = <LINKERFILE>
where <LINKERFILE>
is the linker file you need to useOPT=<X>
where <X>
is the optimization levelinclude naeusb/makefile.cw
makefile.cw
wValue & 0xFF: