This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Flashing SDK examples onto a QFAB board

Hi!

I am attempting to flash sdk11 examples onto a QFAB board compiled using arm-gcc over JLINK SWD p20 via the NRF-51DK.

While running make flash, the nrfjprog command line utility fails to flash onto the QFAB board with the error message that the hex file is invalid. Whereas make flash_softdevice for the s130 softdevice works file without any errors.

I want to know what changes need to be made to the Makefiles. I am unable to flash default code because they are for QFAA board. I flashed the same code onto the NRF51-DK board and it worked fine.

Thanks.

  • The QFAB has 128kB Flash/ 16kB RAM as opposed to the 256 kB Flash/16kB RAM of the QFAA variant. The linker script must be changed accordingly, i.e.

      FLASH (rx) : ORIGIN = 0x1b000, LENGTH = 0x5000
      RAM (rwx) :  ORIGIN = 0x20002080, LENGTH = 0x1920
    

    Furthermore, you might have to tell the compiler to optimize for size (-Os) and not for speed(-O3) in order to get the applications to fit in application flash, i.e.

    CFLAGS += -Wall -Werror -Os -g3
    

    -Bjørn

Related