Firmware for the Nitrokey Pro device
Clone or download
szszszsz Merge branch '50-windows_10_1809_connection_issue'
Fix Windows 10 1809 connection issue

Tests:

Ubuntu 18.04:
 libnitrokey Python tests (v3.4.1-21-gef171df, current master),
 Purism OTP feature (v1.0-LibremKey-0-g5b2bb42, current master).

Nitrokey App:
 Test on Ubuntu 18.04,
 Test on Fedora 29,
 Test on Windows 10 1809,
 Test on Windows 10 1803,
 Test on macOSX 10.13.6.

Fixes #50
Related: Nitrokey/nitrokey-app#392
Latest commit 217b7e1 Nov 23, 2018

README.md

Nitrokey Pro firmware Build Status Code Health Coverity Scan Build

Building

make [VID=0x20a0] [PID=0x4108] firmware

Parameters:

  • VID: Define Vendor ID
  • PID: Define Product ID

Flashing

Versaloon

  1. export OPENOCD_BIN=<path-to-openocd-bin-folder> && ./flash_versaloon.sh or edit the script directly to contain OPENOCD_BIN=<path-to-openocd-bin-folder>
  2. make flash-vesaloon

(TODO: For now it has a bug. Run it once, then kill it with Ctrl-C, then re-run it and it should flash the image)

A proper OpenOCD (patched for SWD) seems to be this one: https://github.com/snowcap-electronics/OpenOCD-SWD

or this one which is configured for automake 1.14: https://github.com/ggkitsas/OpenOCD-SWD

STM

  1. When using the MCU's bootloader use STM Boot Loader Demonstrator or stm32flash under Linux.
  2. Read-protect the flash

sudo stm32flash -w crypto.hex -v /dev/ttyUSB0