1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

1012 Commits

Author SHA1 Message Date
ded50b2494
Merge pull request #15446 from fjmolinas/pr_tests_riotboot_cc2538_bsl
tests/riotboot: make automatic script work with cc2538-bsl
2020-11-18 17:09:01 +01:00
Francisco Molina
49d054cc2d
dist/tools/cc2538-bsl: bump version 2020-11-18 14:47:19 +01:00
Roudy Dagher
1dc6c848f6 dist/tools/jlink: debugserver test_config prior test_version 2020-11-17 16:42:54 +01:00
Francisco Molina
6a606e3f21
makefiles/tools/cc2538-bsl: use --write-erase to avoid mass erase 2020-11-16 09:13:57 +01:00
Francisco Molina
8f1e2cbe00
dist/tools/cc2538-bsl: add Makefile to build dependencies 2020-11-16 09:13:57 +01:00
Martine Lenders
a07d3e0fc9
Merge pull request #14755 from benpicco/examples/gnrc_border_router-native
examples/gnrc_border_route: simplify ZEP setup on native
2020-11-13 18:41:03 +01:00
6c190726f0
Merge pull request #15352 from bergzand/pr/usb-cdc-ecm/resolve_shellcheck
usb-cdc-ecm: resolve shellcheck issues
2020-11-13 15:52:27 +01:00
b0ad1564aa
Merge pull request #15441 from fjmolinas/pr_jlnink_test_version_gui
dist/tools/jlink: add -nogui to version test, fix for OSX
2020-11-13 15:39:36 +01:00
Francisco Molina
1dc84b0d9e
dist/tools/jlink: use 'grep -E' instead of 'grep -P'
-P is not suppoted in OSX
2020-11-13 14:27:43 +01:00
Francisco Molina
914912b276
dist/tools/jlink: add -nogui to version test
If multiple debuggers are present when testing for JLinkExe version
a GUI will open to select the debugger to attach, so add -nogui
when testing for version as well.
2020-11-13 14:13:38 +01:00
57116e737b
Merge pull request #14691 from gdoffe/mp1_dev
Port of RIOT-OS to stm32mp1
2020-11-13 12:34:19 +01:00
a42a3fadd1
Merge pull request #15350 from bergzand/pr/whitespacecheck/resolve_shellcheck
whitespacecheck: Resolve most shellcheck issues
2020-11-13 11:29:30 +01:00
Gilles DOFFE
cca2d70808 tools/openocd: add stlink-dap adapter
stlink-dap adapter is based on stlink-dap.cfg and is used by
STM32MP1 family.

Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>
2020-11-13 10:43:08 +01:00
Gilles DOFFE
8a35e114c0 tools/openocd: add GDB_PORT_CORE_OFFSET variable
In case of muticore CPU, openocd opens one debug port by core for gdb.
Thus add a GDB_PORT_CORE_OFFSET port offset to select the right port
for debugging.

Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>
2020-11-13 10:43:08 +01:00
Gilles DOFFE
5424ef1dfe tools/openocd: add flashr action
As for debugr, boards like stm32mp157c-dk2 does not have flash memory.
The firmware could be flashed using the operating system (mainly Linux) or
the bootloader (mainly u-boot) of the dual architecture (cortex-A7 on
stm32mp157c-dk2). However in engineering mode (only cortex-M4), the
firmware has to be flashed using jtag once the board is powered up.
The flashr action do this using openocd only.

Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>
2020-11-13 10:43:08 +01:00
Gilles DOFFE
4f3ea5c74c tools/openocd: select target core
For multi-arch SoC like STM32MP1, the right target core has
to be selected to avoid debugging the wrong default cpu.
This is done using openocd command 'targets ${OPENOCD_CORE}'.
OPENOCD_CORE has to be set in board Makefile.include file.
In case it is not set, the command just display available targets, thus it
has no effect on already existing boards using openocd.

Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>
2020-11-13 10:43:08 +01:00
Gilles DOFFE
e7b344983d tools/openocd: add debugr action
In case of STM32MP157c-dk2 board, there is no flash available. Thus,
the elf binary has to be flashed directly to SRAM before debugging.
To do so, the DBG_FLAGS variable has to be overrided to load the binary
using 'load' gdb command.
The START_ADDR variable is the entrypoint extracted from the elf binary
using objdump tool.
The do_debug function can now be used as usual.

Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>
2020-11-13 10:43:08 +01:00
2fff75017b
whitespacecheck: Resolve most of the shellcheck sh issues 2020-11-13 10:31:38 +01:00
2bc4944934
usb-cdc-ecm: resolve shellcheck issues 2020-11-12 14:43:01 +01:00
Benjamin Valentin
54eedd94ba tools/zep_dispatch: add simple ZEP dispatcher 2020-11-10 15:41:15 +01:00
Francisco Molina
017618d1a7
dist/tools/codespell: add Chang, chang 2020-11-10 07:46:37 +01:00
Leandro Lanzieri
71a3aa081e
dist/tools/genconfig: check the APPLICATION symbols only when testing
This changes the Kconfig check to only perform it when testing Kconfig
dependency modlling for now (TEST_KCONFIG=1).
2020-11-06 15:58:02 +01:00
Leandro Lanzieri
1408f3f96e
dist/tools/kconfiglib: add tests for genconfig.py
Also add the test to 'python-tests' GitHub actions.
2020-11-05 09:04:10 +01:00
Leandro Lanzieri
e815863aa9
tools/genconfig: add invalid configurations checks 2020-11-05 09:04:07 +01:00
Marian Buschsieweke
deb52f858c
Merge pull request #15375 from maribu/bmp-fix
dist/tools/bmp: Fix flashing with pygdbmi 0.10.0
2020-11-03 20:11:53 +01:00
Marian Buschsieweke
71b2860322
dist/tools/bmp: Fix flashing with pygdbmi 0.10.0
The flashing script for the black magic probe stopped working with pygdbmi in
version 0.10.0 due to an API change. This adapts the code to first try
initialization with the old pygdbmi API (as before), but tries again with the
new API if that fails.
2020-11-03 16:33:46 +01:00
Francisco
3e3da1217d
Merge pull request #15249 from aabadie/pr/tools/typo
tools/codespell: fix new typos and make it fail when typos are found
2020-11-03 15:01:20 +01:00
Bas Stottelaar
0c8df9bb3c dist/coccinelle: adapt rules for ENABLE_DEBUG 2020-11-02 21:49:40 +01:00
391a26aa2e
Merge pull request #15351 from bergzand/pr/usb-serial/list-ttys/resolve_shellcheck
usb-serial/list-ttys: Resolve shellcheck issues
2020-11-02 10:21:48 +01:00
cf04e5c824
Merge pull request #15347 from bergzand/pr/tools/sh2bash
dist/tools: Use bash instead of sh where needed
2020-10-30 16:47:38 +01:00
9222b72f8b
Merge pull request #15320 from benpicco/tools/insufficient_memory-nodocker
tools/insufficient_memory: restore build with no docker
2020-10-30 16:43:47 +01:00
cb660898b3
usb-serial/list-ttys: Resolve shellcheck issues 2020-10-30 16:13:05 +01:00
c5b2ded055
dist/tools: Use /usr/bin/env bash for bash scripts 2020-10-30 13:13:40 +01:00
96cad82910
dist/tools: Use bash instead of sh where needed
A number of scripts use features from bash such as `local` which are not
in the POSIX spec. This breaks on systems where sh is not symlinked to
bash.

This patch changes the interpreter indicated by the hashbang to bash for
those scripts
2020-10-30 12:12:10 +01:00
Benjamin Valentin
555e8a8efb tools/insufficient_memory: restore build with no docker
It's useful being able to run this script without having Docker installed.
Introduce the `--no-docker` parameter to run the script without docker.
2020-10-29 18:19:04 +01:00
e4f724a443
tools/build_and_test: use all instead of all-debug on native 2020-10-28 22:08:18 +01:00
48ffdcb080
tools/codespell: make it fail when typos are found 2020-10-27 10:33:48 +01:00
cb2974984b
codespell: add 'circular' to the list of ignored words 2020-10-27 10:33:47 +01:00
Bas Stottelaar
62530f42c8 dist/jlink: check for minimum version 2020-10-21 18:23:02 +02:00
Bas Stottelaar
237a24d51b dist/jlink: do not show the GUI.
Since J-Link V6.74, a GUI is shown when flashing from the command line.
This steals the focus of the terminal. Adding `-nogui 1` solves the
issue, but raises the minimum supported version to V6.74 (released
around June 2020).

Note that JLinkGDBServer has a slightly different `-nogui` option.
2020-10-21 14:34:49 +02:00
Bas Stottelaar
8af4f4a60c dist/jlink: textual improvements
- renamed JLink -> J-Link [1]
- fixed incomplete sentence
- fixed typo's

[1] https://wiki.segger.com/J-Link_Commander
2020-10-21 14:08:52 +02:00
Bas Stottelaar
107fd41b1a dist/jlink: unify command line options
According to the documentation [1], the options are case-insensitive.
Unify all options to use a single style (lower case was the easiest).

[1] https://wiki.segger.com/J-Link_Commander
2020-10-21 14:02:28 +02:00
6c63e1b6c4
tools/insufficient_memory: improve error handling and output 2020-10-13 15:37:50 +02:00
b2aaebc699
tools/suit/manifest-generator: small fixes
- fix typo 'formated' -> 'formatted'
- remove unused variable
2020-10-02 07:59:51 +02:00
39c4e36f1a
tools/codespell: add more ignored words 2020-10-02 07:42:16 +02:00
3cf082d59b
Merge pull request #15110 from bergzand/pr/suit/storage_backend
SUIT: Introduction of a payload storage API for SUIT manifest payloads
2020-09-30 22:47:33 +02:00
benpicco
0bc80250cf
Merge pull request #15101 from benpicco/sys/net/uhcp-log
sys/net/uhcp: use LOG_xxx functions
2020-09-30 11:08:53 +02:00
8159819087
tools/suit: Add optional component ID argument
This extends the component argument of the gen_manifest.py script with
an optional component name. As component names in the SUIT manifest
consist of an array of bytestrings, the commponent name in the argument
is also split. Each part of the name ends up as a separate part of the
component name in the manifest. Component names are split by colons to
match the separator used in the rest of the argument.
2020-09-29 15:18:56 +02:00
Benjamin Valentin
f163f1580b sys/net/uhcp: use LOG_ functions
Using `gnrc_border_router` with `uhcp` is quite noisy.
uhcpc will regularly refresh the prefix and print a bunch of status messages.

Allow the user to tone it down by setting a higher `LOG_LEVEL`.
For this, convert calls to `printf()` and `puts()` to `LOG_xxx()`.

This requires a dummy header for `uhcpd`.
2020-09-29 09:55:28 +02:00
Martine Lenders
2ed4b32e54
tapsetup: add support for single, unbridged TUN interface 2020-09-28 12:31:22 +02:00