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

1854 Commits

Author SHA1 Message Date
MrKevinWeiss
b98e5bd55d
dist/tools/doccheck/exclude_simple: Add LSM6 excludes 2024-03-26 18:13:20 +01:00
Mikolai Gütschow
666d42971d
dist/tools/dhcpv6-pd_ia: recognize Debian correctly 2024-03-19 16:06:27 +01:00
Oleg Hahm
cc14954c57 doc: doxygen: add "Topics" to menus
Beginning with doxygen 1.9.8 "Modules" are renamed to "Topics". This
patch adds the new entry to the layout file. Having both, "Modules" and
"Topics" in the layout file should generate similar output for older and
newer doxygen versions.
2024-03-01 12:15:24 +01:00
Benjamin Valentin
fe48fae2ad dist/tools/insufficient_memory: add 'does not fit in ROM' message 2024-02-28 13:17:59 +01:00
Marian Buschsieweke
aa356d8b7b
ci: add test that features_existing.inc.mk is up to date 2024-02-23 15:12:11 +01:00
Marian Buschsieweke
3ee25d02be
features.yaml: List and document all RIOT features
This lists and documents features in a machine readable form. It is
intended to be used for documentation and the build system.

Co-authored-by: mguetschow <mikolai.guetschow@tu-dresden.de>
Co-authored-by: chrysn <chrysn@fsfe.org>
2024-02-23 15:12:11 +01:00
Marian Buschsieweke
ce5bae3edb
dist/tools/features_yaml2mx: feature management utility
Add a python script that allows having a single YAML file as source of
truth for what features are available, and also add documentation such
as help texts and grouping to them.

This utility converts such a YAML file to a Makefile with the contents

```
FEATURES_EXISTING := \
    feature_a \
    feature_b \
    ... \
    features_z \
    #
```

This allows the Makefile based build system to easily check if all
provided features and all requested features do actually exist.

In addition, this also converts the YAML file to a markdown file that
documents the features. This file is then intended to be used by
Doxygen to document the provided features.

Co-authored-by: mguetschow <mikolai.guetschow@tu-dresden.de>
Co-authored-by: chrysn <chrysn@fsfe.org>
2024-02-23 15:12:07 +01:00
Marian Buschsieweke
147945402c
dist/tools/ci/print_toolchain_versions.sh: Update
This drops support for the legacy riscv-none-embed target triple. That
value has been incorrect since the beginning and the toolchain that
used that has been long declared obsolete and is fairly outdated.

With our CI updating the toolchain, we no longer need to check for
that.
2024-02-12 20:40:30 +01:00
Marian Buschsieweke
3718f48bc2
dist/tools/insufficient_memory: add RISC-V failure mode
On RISC-V a RAM overlow is reported as:

    /opt/xpack-riscv-none-elf-gcc-13.2.0-2/bin/../lib/gcc/riscv-none-elf/13.2.0/../../../../riscv-none-elf/bin/ld: section .stack VMA [80003f00,80003fff] overlaps section .bss VMA [800000a8,80003fb7]

This extends the list of patters detecting RAM overflow.

Co-authored-by: benpicco <benpicco@googlemail.com>
2024-02-12 16:13:41 +01:00
Marian Buschsieweke
80cdde4bee
Merge pull request #20345 from maribu/dist/tools/mspdebug
dist/tools/mspdebug: build from source
2024-02-06 15:47:47 +00:00
Marian Buschsieweke
aafc099a1c
dist/tools/mspdebug: build from source
This adds mspdebug as package, similar to EDBG, so that the
programmer/debugger is build from source.

This has the advantage that we can indeed provide patches of our own.
The first patch fixes a bug with the CPU detection of `mspdebug` in
combination with the Olimex MSP430-JTAG-TINY-V2. The second adds the
`--expect-id <CPU_NAME>` argument.

The RIOT integration is updated to directly make use of the
`--expect-id` parameter. No more spending time debugging why firmware
the firmware for the `olimex-msp430-h2618` doesn't run when flashed on
the `olimex-msp430h1611` hardware :D
2024-02-06 15:23:02 +01:00
Frederik Haxel
0d89040ae3 CI: Add native64 to CI
- Test native64 like native in murdock
- Add native64 to "Platform: native" in github labeler
- Add "BUILDTEST_MCU_GROUP == x86_64" to `dist/tools/ci/build_and_test.sh`
2024-02-05 22:02:21 +01:00
MrKevinWeiss
ceec795ae5
compile_and_test_for_board: Add only-if-changed feature
This will use the make test-input-hash-changed feature to save
the test hashes with the results and optionally skip running
the test if nothing has changed.

Murdock already has this feature but it is not easily accessible.

This should prevent unneeded flash cycles as well as speeding up
constant rerunning of tests for boards.
2024-02-01 13:50:00 +01:00
benpicco
4ea27d4c13
Merge pull request #20300 from jparker324/stm32c0_and_nucleo_c031c6
cpu/stm32: add support for STM32C0 and NUCLEO-C031C6
2024-01-31 15:09:25 +00:00
Martine Lenders
34fcffe37b
Merge pull request #20170 from miquel-b/lsm6dsxx
drivers/lsm6dsxx: refactoring Lsm6dsl into common driver Lsm6dsxx
2024-01-30 19:07:04 +00:00
Jason Parker
b5d72d8242 cpu/stm32: add CPU_FAM_STM32C0 support 2024-01-29 14:44:10 -05:00
MrKevinWeiss
2f7e1e3b53
docs: exclude lsm6dsxx macros 2024-01-24 13:44:50 +01:00
Miquel-HAW
6fc6132359 dist/tools: exclude_simple added warnings 2024-01-24 09:57:04 +01:00
Benjamin Valentin
d0093cf9cc Revert "riotctrl_ctrl: one more indirection to get native"
This reverts commit 5e0c9b4bff.
2024-01-19 12:59:14 +01:00
Marian Buschsieweke
c823412f31
dist/tools/zsh-completion: fix typo
This fixes a typo in a description.
2024-01-16 08:01:11 +01:00
benpicco
8ba210e6f6
Merge pull request #20250 from maribu/dist/tools/zsh-completion
dist/tools/zsh-completion: add completion for flash
2024-01-15 12:10:29 +00:00
Marian Buschsieweke
8008bb435d
dist/tools/zsh-completion: add completion for flash
Also complete and explain `PROGRAMMER=`, `OPENOCD_DEBUG_ADAPTER=`, and
`OPENOCD_RESET_USE_CONNECT_ASSERT_SRST=` when using zsh.

Co-authored-by: benpicco <benpicco@googlemail.com>
2024-01-14 17:49:33 +01:00
Marian Buschsieweke
4fc7700a0f
tools/openocd-rtt: also open GDB port
When using OpenOCD RTT (real-time transfer) for stdio with
`USEMODULE=stdio_rtt make ...`, it is no longer possible to debug
while being connected to stdio. By also opening gdb at RIOT's default
GDB port, `make debug-client` can be used to connect from GDB to the
OpenOCD instance providing stdio via RTT.
2024-01-13 12:47:37 +01:00
Benjamin Valentin
9d350f08c0 dist/tools/riotboot_gen_hdr/genhdr: add update command
Sometimes we want to roll-back to a previous firmware version.
To do so we need a higher riotbot version numbers still.

Add an update command to the riotboot_gen_hdr tool so that an existing
firmware image can be re-rolled out with a new version number.
2024-01-09 16:15:27 +01:00
Marian Buschsieweke
82b7e10988
dist/tools/zsh-completion: provide completion for zsh
This adds command completion that, when manually installed, provides
RIOT-aware command completion for `make` in zsh. The completion
supports:

- most commonly used `make` goals including a help text
- most commonly used `make` variables (such as `BOARD=`, `LTO=`,
  `BUILD_IN_DOCKER=`, `TOOLCHAIN=`)
    - possible values for these variables, including a list of boards
      detected at runtime to complete `BOARD=`

Co-authored-by: mguetschow <mikolai.guetschow@tu-dresden.de>
2024-01-08 13:48:17 +01:00
benpicco
5dae1eb0b4
Merge pull request #20130 from maribu/dist/tools/insufficient_memory/update_insufficient_memory_board.sh
dist/tools/insufficient_memory: always update Makefile.ci
2024-01-04 17:38:33 +00:00
benpicco
b47771cd5e
Merge pull request #19996 from benpicco/topogen_enhance
tools/zep_dispatch: enhancements and fixes
2024-01-03 14:15:09 +00:00
Benjamin Valentin
ba8130e69f tools/zep_dispatch: topogen: add help text 2023-12-21 23:17:53 +01:00
Benjamin Valentin
f7e6a4ada2 tools/zep_dispatch: topogen: print list of nodes 2023-12-21 23:17:53 +01:00
Benjamin Valentin
2e19c2d712 tools/zep_dispatch: topogen: place first node at origin 2023-12-21 23:17:53 +01:00
Benjamin Valentin
b85b7937c3 tools/zep_dispatch: topogen: use numeric names 2023-12-21 23:17:53 +01:00
Benjamin Valentin
61992fe1a7 tools/zep_dispatch: add support for PIDFILE 2023-12-21 23:17:53 +01:00
Benjamin Valentin
875bf98280 tools/zep_dispatch: topogen: fix distance calculation 2023-12-21 23:17:53 +01:00
Benjamin Valentin
1c15624384 tools/zep_dispatch: allow list of nodes in topo file 2023-12-21 23:17:53 +01:00
Benjamin Valentin
b4efc378a0 tools/zep_dispatch: topogen: add support for generating grid topology 2023-12-21 23:17:53 +01:00
Oleg Hahm
dd184614d8 pyterm: native: remove superfluous tap argument 2023-12-18 20:00:44 +01:00
Oleg Hahm
075f2ffd6a pyterm: label pyterm arg for native generically 2023-12-18 20:00:44 +01:00
Oleg Hahm
b9c8b659ed tools: pyterm: allow for multiple native tap interfaces 2023-12-18 13:44:20 +01:00
Oleg Hahm
2cfcc93933 tools: pyterm: add native_args and tap interface
Adding arguments for optional arguments to be passed to RIOT native and
for passing the tap interface.
2023-12-18 13:44:20 +01:00
Oleg Hahm
5e0c9b4bff riotctrl_ctrl: one more indirection to get native
Since the native process is a child process of pyterm when called via
make we need to dig deeper for riotctrl. This also means that we require
pyserial to execute it.
2023-12-18 13:44:20 +01:00
Oleg Hahm
a2a1715986 riotctrl_ctrl: fix typo in docs 2023-12-18 13:44:20 +01:00
Oleg Hahm
66343e3bc7 pyterm: add native support
Start RIOT native as a subprocess and communicate to it via a pipe.
2023-12-18 13:44:20 +01:00
Marian Buschsieweke
485a98bd6e
tools/edbg: fix make reset
Likely a change in the command line interface of EDBG broke the
`make reset` integration. This adds the missing flag.

Note: Since the binary is build on demand with our build system, we
      can in fact rely on every using the same version of EDBG. Hence,
      we don't need to be backwards compatible with the flag.
2023-12-14 09:17:19 +01:00
Marian Buschsieweke
922d8c8b9f
dist/tools/insufficient_memory: always update Makefile.ci
Previously the `add_insufficient_memory_board.sh` script would only
add the tested board to `Makefile.ci` when resource requirements grew,
but never remove it when resource requirements got lower.

This updates the script to also remove boards from `Makefile.ci` if
it is no longer needed. It is also rename (`add` --> `update`) to
match the change in behavior.
2023-12-01 16:08:29 +01:00
Mikolai Gütschow
6935ea21e7
sys/hashes: add SHA-512 support 2023-11-29 19:18:51 +01:00
benpicco
c93a5b84a3
Merge pull request #20020 from gompper/periph/freqm
drivers/include/periph: add FREQM peripheral driver
2023-11-27 16:06:52 +00:00
Urs Gompper
bfb3b5fe72 dist/tools/doccheck: add FREQM config to generic_exclude_pattern 2023-11-23 21:00:16 +01:00
MrKevinWeiss
85cebf332d
dist/tools/uf2: Ignore the .json file 2023-11-09 20:22:52 +01:00
bors[bot]
4250c1509e
Merge #20009 #20042
20009: cpu/native: fix bug in periph_timer r=MrKevinWeiss a=maribu

### Contribution description

While debugging https://github.com/RIOT-OS/RIOT/pull/18977#issuecomment-1764258356 it became obvious that the `periph_timer` in `native` is broken and issues early IRQs. This replaces the use of `setitimer` that cannot use a monotonic clock source with `timer_settime()`.

### Testing procedure

I have some non-publishable code that tests if the time an ISR fires in terms of `timer_read()` is no earlier than the time expected. This occasionally triggered with `master`, but I didn't see any of these issues anymore with this PR. I guess I should revive my PR to spice up the periph timer tests and add a polished version of this and let this run for an hour or two.

The tests ins `tests/periph/timer*` should still succeed on `native`. (They do for me in a container running `riot/riotbuild`).

### Issues/PRs references

Found while debugging https://github.com/RIOT-OS/RIOT/pull/18977#issuecomment-1764258356

20042: dist/tools/uf2: add target to also copy families.json file r=MrKevinWeiss a=MichelRottleuthner

### Contribution description

The updated UF2 pkg (#20035) stores the family ID in an external .json file. I overlooked that and flashing fails if this file is not present. This PR fixes it by also copying the json into the tool folder.

### Testing procedure
Check if the `feather-nrf52840-sense` can be flashed when the new UF2 pkg is cloned freshly.


### Issues/PRs references
 Fixes a regression introduced with #20035 


Co-authored-by: Marian Buschsieweke <marian.buschsieweke@posteo.net>
Co-authored-by: Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>
2023-11-03 14:52:20 +00:00
Michel Rottleuthner
1e6ac1f093 dist/tools/uf2: add target to also copy families.json file 2023-11-02 11:49:59 +01:00