[riot-commits] [RIOT-OS/RIOT] 5bb9ba: openocd.sh: update to `bash`

Francisco Acosta fco.ja.ac at gmail.com
Tue Sep 4 19:31:51 CEST 2018


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 5bb9babfe0c7280fab04989919fbbb7d786d8649
      https://github.com/RIOT-OS/RIOT/commit/5bb9babfe0c7280fab04989919fbbb7d786d8649
  Author: cladmi <gaetan.harter at fu-berlin.de>
  Date:   2018-09-04 (Tue, 04 Sep 2018)

  Changed paths:
    M dist/tools/openocd/openocd.sh

  Log Message:
  -----------
  openocd.sh: update to `bash`

Update to bash to have `local` variables and `=~` regex matching.
Will be used in upcoming commits.


  Commit: 09f0930f594ace1c6c7738b5aec358ab469407a1
      https://github.com/RIOT-OS/RIOT/commit/09f0930f594ace1c6c7738b5aec358ab469407a1
  Author: cladmi <gaetan.harter at fu-berlin.de>
  Date:   2018-09-04 (Tue, 04 Sep 2018)

  Changed paths:
    M dist/tools/openocd/openocd.sh

  Log Message:
  -----------
  openocd.sh: add a debug message when flashing with an offset


  Commit: 60aac4a75b86824cf2678adacf71f2ab852d71b0
      https://github.com/RIOT-OS/RIOT/commit/60aac4a75b86824cf2678adacf71f2ab852d71b0
  Author: cladmi <gaetan.harter at fu-berlin.de>
  Date:   2018-09-04 (Tue, 04 Sep 2018)

  Changed paths:
    M dist/tools/openocd/openocd.sh

  Log Message:
  -----------
  openocd.sh: fix verify_image with IMAGE_OFFSET

When flashing with an IMAGE_OFFSET, it should also be passed to
verify_image. It is handling the base address in the image too.

This works with both elf files and binaries with the base address added.


  Commit: 5748d6a75faa9f2efd203a2d3646eef3e0e6d779
      https://github.com/RIOT-OS/RIOT/commit/5748d6a75faa9f2efd203a2d3646eef3e0e6d779
  Author: cladmi <gaetan.harter at fu-berlin.de>
  Date:   2018-09-04 (Tue, 04 Sep 2018)

  Changed paths:
    M dist/tools/openocd/openocd.sh

  Log Message:
  -----------
  openocd.sh: add a _is_binfile function

Returns 0 if it is true.

The test is based on the file extension, but also use the IMAGE_TYPE variable
to force setting to binary.


  Commit: 36b51467ddb3709b5d4ee13be47d64b33d8f750e
      https://github.com/RIOT-OS/RIOT/commit/36b51467ddb3709b5d4ee13be47d64b33d8f750e
  Author: cladmi <gaetan.harter at fu-berlin.de>
  Date:   2018-09-04 (Tue, 04 Sep 2018)

  Changed paths:
    M dist/tools/openocd/openocd.sh

  Log Message:
  -----------
  openocd.sh: add functions to access board flash address

This allows getting the ROM base address.

It may not be available in the build system directly so better extract it from
openocd. Also openocd is board specific and this address is cpu specific
so would have definition order issue in the build system.


  Commit: bc7e53f3d463e0bed68052346ab04a40004d640e
      https://github.com/RIOT-OS/RIOT/commit/bc7e53f3d463e0bed68052346ab04a40004d640e
  Author: cladmi <gaetan.harter at fu-berlin.de>
  Date:   2018-09-04 (Tue, 04 Sep 2018)

  Changed paths:
    M dist/tools/openocd/openocd.sh

  Log Message:
  -----------
  openocd.sh: include base address in IMAGE_OFFSET for binfiles

Add the rom base address to the flash address when flashing binaries.
This allows flashing binaries with the default openocd configuration.

It is an API change to IMAGE_OFFSET with binary files as it should now
only be an offset to the base address.

Force openocd type to '.bin' in case we want to flash hex/elf objects or
files not automatically recognized as bin.


  Commit: 7a40aaed5eb97b6aadf469a60fa140b658233ca2
      https://github.com/RIOT-OS/RIOT/commit/7a40aaed5eb97b6aadf469a60fa140b658233ca2
  Author: Francisco Acosta <fco.ja.ac at gmail.com>
  Date:   2018-09-04 (Tue, 04 Sep 2018)

  Changed paths:
    M dist/tools/openocd/openocd.sh

  Log Message:
  -----------
  Merge pull request #9787 from cladmi/pr/openocd/flashbin

openocd.sh: allow flashing binary files without configuration


Compare: https://github.com/RIOT-OS/RIOT/compare/749d8aed5443...7a40aaed5eb9
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the commits mailing list