Firmware for Easy PDK Programmer
================================

Requirement: ARM toolchain

Option 0: Toolchain from distribution
 * install toolchain from distribution (e.g. on Debian-based GNU/Linux install the gcc-arm-none-eabi and libnewlib-arm-none-eabi packages)

Option 1: GNU Arm Embedded Toolchain from ARM: 
 * download and unpack from here: https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads
 * open Makefile and modify first line GCC_PATH to point to GNU ARM embedded Toolchain "bin" folder
   e.g. GCC_PATH = ../gcc-arm-none-eabi-9-2019-q4-major/bin

 * run make to compile the firmware

Update firmware on Easy PDK Programmer:

 * after compilation you can find "EASYPDKPROG.bin" in "build" folder

 * use dfu-util to update firmware on Easy PDK Programmer:


1. unplug USB from Easy PDK programmer

2. on Easy PDK programmer PRESS AND KEEP HOLDING THE BUTTON

3. WHILE STILL HOLDING THE BUTTON connect USB

4. ONLY AFTER USB is connected release the button

5. EXECUTE: 
   dfu-util -d 0483:df11 -a "@Internal Flash  /0x08000000/064*0002Kg" --dfuse-address 0x08000000 -D EASYPDKPROG.bin 

6. UNPLUG USB from Easy PDK programmer


