Supporting Systems with DFU


For some target systems (such as CQ STARM and STBee mini), DFU (Device Firmware Upgrade) is the only way to download program into flash.

For those systems, support for DFU is added to Gnuk. Now, you can specify '--with-dfu' for 'configure'.

We changed two places. One is initialization code to have following:

  SCB->VTOR = 0x08003000;

That is, we setup vector at initialization of hwinit0.

Another is the linker script. We introduced configure variables in gnuk.ld.

    flash : org = @ORIGIN@, len = @FLASH_SIZE@
    ram : org = 0x20000000, len = 20k