Supporting Systems with DFU

2010-10-14

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:

#ifdef DFU_SUPPORT
  SCB->VTOR = 0x08003000;
#endif

That is, we setup vector at initialization of hwinit0.

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

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