[riot-commits] [RIOT-OS/RIOT] fe0b82: boards/common/nrf52: add openocd support for 'nord...

Alexandre Abadie noreply at github.com
Wed Sep 11 15:33:10 CEST 2019


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: fe0b829d5bff3a64b9269be34d02e05b109239cb
      https://github.com/RIOT-OS/RIOT/commit/fe0b829d5bff3a64b9269be34d02e05b109239cb
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2019-09-10 (Tue, 10 Sep 2019)

  Changed paths:
    M boards/common/nrf52/Makefile.include

  Log Message:
  -----------
  boards/common/nrf52: add openocd support for 'nordic_softdevice_ble'

Enable the handling of flashing `softdevice.hex` when flashing the firmware
for openocd.

However, for flashing, only the `hexfile` and `binfile` can currently be used.

The `elffile` is generated with local pages aligned to `0x10000` which makes
the program starting at `0x1f000` be flashed from `0x10000` with padding bytes
even if the `.text` section is indeed at `0x1f000`:

    readelf --sections bin/nrf52dk/gnrc_networking.elf

      ...
      [ 1] .text         PROGBITS    0001f000 00f000 00f698 00  AX  0   0 16
      ...

    readelf --segments  bin/nrf52dk/gnrc_networking.elf

      ...
      LOAD           0x000000 0x00010000 0x00010000 0x1e6a0 0x1e6a0 R E 0x10000
      ...

The padding bytes would go through `verify_image` in `openocd` so be expected
to not be overwritten but are by `softdevice.hex`

Using --nmagic at link time removes the local page alignement but would
need dedicated testing.


  Commit: 23c1831473e97090c331f2c7e79a5f843db68cbb
      https://github.com/RIOT-OS/RIOT/commit/23c1831473e97090c331f2c7e79a5f843db68cbb
  Author: Alexandre Abadie <alexandre.abadie at inria.fr>
  Date:   2019-09-11 (Wed, 11 Sep 2019)

  Changed paths:
    M boards/common/nrf52/Makefile.include

  Log Message:
  -----------
  Merge pull request #11470 from cladmi/pr/nrf52/opencd/softdevice

boards/common/nrf52: add openocd support for 'nordic_softdevice_ble'


Compare: https://github.com/RIOT-OS/RIOT/compare/c12b88ef5994...23c1831473e9


More information about the commits mailing list