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

666 Commits

Author SHA1 Message Date
Martine Lenders
5ac02f5134
Merge pull request #10010 from smlng/pr/fix/cppcheck-suppress
dist/cppcheck: fix missing cppcheck-suppression reasons
2018-09-25 13:52:28 +02:00
smlng
d7942cd974 dist/tools: fix tunslip6 strncat num param
Cppcheck was (correctly) warning here that concat to strings might
result in buffer overflow because the terminating `\0` was not considered.
This is fixed here, making the cppcheck suppression also obsolete.
2018-09-25 12:03:58 +02:00
smlng
3f811c44db cppcheck: extend cppcheck README example
Extend the cppcheck suppression example to show that each suppression
should have a reason describing the intentional suppression of a
cppcheck warning or error.
2018-09-25 12:03:58 +02:00
smlng
59e299635b cppcheck: add/correct reason for cppcheck-suppress
Adding and correcting description/rational on why certain cppcheck
warnings or errors are intentionally suppressed.
2018-09-25 12:03:58 +02:00
smlng
6d24033bd6 dist/tools: print OS and Kernel version
Add output to print_toolchain_version script to include info
on the operating system and its kernel version.
2018-09-25 09:22:42 +02:00
smlng
87505f0334 dist/tools: fix whitespace in print_toolchain_versions 2018-09-25 09:22:41 +02:00
smlng
c73ed667c1 dist/tools: print more tool versions
This adds openocd, python, python2, and python3 to the helper
script print_toolchain_versions.sh.
2018-09-25 09:22:41 +02:00
smlng
424830b06b dist/tools: parse version info from stderr
Currently version information of commands and tools is only parsed
from STDOUT, however some tools like openocd print version info
to STDERR only. This commits adds parsing of STDERR for version
infos if STDOUT does not contain such info.
2018-09-25 09:22:41 +02:00
Leandro Lanzieri
31fa4fd64d dist/tools: Add stm32loader flash utility 2018-09-18 18:07:42 +02:00
Francisco Acosta
89fa4da4c3 dist/tools/jlink: remove duplicated check 2018-09-11 17:29:12 +02:00
0c1a207bf9
Merge pull request #9867 from kaspar030/pr/unify_app_folder_search
make: unify app folder search (examples/*, tests/*, ...)
2018-09-06 09:30:12 +02:00
de55265835 dist/tools/compile_test: make use of makefiles/app_dirs.inc.mk 2018-09-05 12:03:09 +02:00
Schorcht
e528fb8e2d cpu: add esp8266 vendor files 2018-09-05 02:39:50 +02:00
cladmi
bc7e53f3d4
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.
2018-09-04 13:53:38 +02:00
cladmi
36b51467dd
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.
2018-09-04 13:50:46 +02:00
cladmi
5748d6a75f
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.
2018-09-04 13:49:45 +02:00
cladmi
60aac4a75b
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.
2018-09-04 13:48:16 +02:00
cladmi
09f0930f59
openocd.sh: add a debug message when flashing with an offset 2018-09-04 13:48:12 +02:00
cladmi
5bb9babfe0
openocd.sh: update to bash
Update to bash to have `local` variables and `=~` regex matching.
Will be used in upcoming commits.
2018-09-04 13:46:25 +02:00
75dba75fbb dist/tools/pyterm: handle ctrl+d nicely 2018-09-03 17:34:23 +02:00
a5714cc7c7 dist/tools/compile_test: fix flake8 issues 2018-08-31 08:50:52 +02:00
Semjon Kerner
a01eb37b6f dist/tools/pyterm: change deprecated warn to warning 2018-08-23 12:23:59 +02:00
Leandro Lanzieri
28b832ad1f dist/tools: Add option to set the value of RTS and DTR pins in pyterm 2018-08-22 11:13:45 +02:00
Leandro Lanzieri
9b0dd23ebf dist/tools: Add option to invert DTR and RTS logic values in pyterm 2018-08-22 09:00:06 +02:00
Gaëtan Harter
cc63d2d21c
genconfigheader: use lazysponge for file management
Remove file management from `genconfigheader` script and use `lazysponge` in
Makefile.include.

Use --verbose option when in non QUIET building mode.
2018-08-20 11:34:55 +02:00
Gaëtan Harter
0528e0903f
dist/tools: add lazysponge tool
Write stdin to <outfile> if it is different from the previous content.

If data provided in stdin is the same as the data that was in <outfile>, it is
not modified so `last modification date` is not changed.
2018-08-20 11:34:49 +02:00
Gaëtan Harter
31aba49a31
Merge pull request #9759 from smlng/pr/pythonlibs/testrunner
dist: move testrunner to pythonlibs as package
2018-08-16 11:54:02 +02:00
Gaëtan Harter
a3c7d26a7d
dist/tools/has_minimal_version: add tool to check minimal version
usage: has_minimal_version.sh <version> <minimal_version> [toolname]
      Checks that version >= minimal_version
      Version format MAJOR.MINOR.PATCH ex 3.1.4
2018-08-14 15:26:51 +02:00
smlng
dd9a43bdc9 dist: move testrunner to pythonlibs as package
As testrunner is moved to dist/pythonlibs which is exported
via PYTHONPATH, testrunner is found by all test scripts.
2018-08-13 14:11:22 +02:00
smlng
68a6ba8987 make: introduce common Python lib path
Introduce dist/pythonlibs directory to store RIOT python packages.
This directory is exported via PYTHONPATH by the build system to
make it commonly available.
2018-08-10 11:37:43 +02:00
Yegor Yefremov
ea7fa8bb63 dist/tests/if_lib: use '==' for string comparison
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2018-08-06 10:19:43 +02:00
Yegor Yefremov
87ecb78d2f dist/tests/if_lib: don't invoke super class __init__
Python invokes super class __init__ automatically
unless it is overridden.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2018-08-06 09:55:43 +02:00
Yegor Yefremov
ff525eb354 dist/tests/if_lib: move testing infrastructure files to a stand-alone package
Create if_lib package containing all the modules and adapt the *.py files
to import each other using the intra-package references.

The idea behind a package is to invoke test.py either by permanently
modifying PYTHONPATH in user profile via adding path to $RIOTBASE/dist/tests
or make temporary PYTHONPATH changes during the invocation:

PYTHONPATH=$PYTHONPATH:$RIOTBASE/dist/tests python3 test.py

Leave periph_i2c_if.py in the same folder as test.py as this file is
just a Python wrapper around periph specific main.c.

Update BPT memory map. Use definitions generated with the latest code
generator. Both routine names and mapping have changed.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2018-08-02 13:34:47 +02:00
Cenk Gündoğan
36529e3d61
Merge pull request #9586 from miri64/dist/fix/iotlab-term
iotlab-support: use iotlab command to check credentials
2018-08-02 09:26:07 +02:00
Gaëtan Harter
5284849621
Merge pull request #9063 from bergzand/pr/shellcheck/initial
shellcheck: Add CI check script
2018-07-30 13:52:58 +02:00
c5c3903617
shellcheck: Add CI check script 2018-07-29 15:28:13 +02:00
Martine Lenders
ad65aadb37 iotlab-support: use iotlab command to check credentials
Since the `iotlab-term` target uses `tmux` error messages are not really
printed, so it took me a while to find out why at some sites this target
wasn't working for me anymore.

If the IoT-LAB password was changed, just checking if `.iotlabrc`
exists isn't enough, so I use `iotlab-experiment` to check if I'm logged
in properly to prompt the password input in case I'm not.
2018-07-17 13:02:54 +02:00
Gaëtan Harter
3cb57b68c2
Merge pull request #9502 from dylad/pr/update_edbg
dist/tools: update EDBG version
2018-07-12 22:14:02 +02:00
dylad
edf0360103 dist/tools: update EDBG version
update to the current lastest version of EDBG to allow user to reflash a bricked board due to sleep mode or wrong clock assignment. this avoid the use of Atmel Studio to erase flash.
2018-07-10 15:10:40 +02:00
Martine Lenders
49036c7065 mosquitto_rsmb: add MQTT listener to config
This helped me a lot while testing #9464 to interact with the broker
using the mosquitto shell command clients.
2018-07-05 13:17:59 +02:00
Hauke Petersen
3ccb27d00d tools: add mosquitto.rsmb MQTT-SN broker 2018-07-04 11:36:57 +02:00
Juan Carrano
6cfafc8923 tools/mkconstfs: Add an improved tool.
The new tool (mkconstfs2) features:

* more robust filename handling: no need for mangling,
  and works on Windows.
* Better output generation: nothing is written in case
  of failures.
* Allows more control over the files that are included:
 - does not traverse directories, filenames must be explicitly
   given.
 - The "root" can be explicitly given (thus the tool can get
   the same result independently of the CWD).

Thanks to MichelRottleuthner for making it work with Windows paths.
2018-07-02 10:15:56 +02:00
Gaëtan Harter
1087e49379
dist/tools/usb-serial: use RIOTTOOLS variable 2018-06-28 14:05:33 +02:00
Gaëtan Harter
b0b2835503
dist/tools/jlink: use RIOTTOOLS variable 2018-06-28 14:05:33 +02:00
Gaëtan Harter
41105bb23f
pic32prog: add a documentation on how to update PICkit3
To use pic32prog, the PICkit3 must be updated with a scripting mode firmware.
This describes how to do it on Linux using a windows VM (free).
2018-06-18 10:21:37 +02:00
Gaëtan Harter
7e81f54205
makefile.iotlab.single: add 'info-iotlab-node' target
Add a target to show the value of IOTLAB_NODE. Can be used to get the result of
using IOTLAB_NODE=auto or IOTLAB_NODE=auto-ssh.
2018-06-15 15:37:33 +02:00
Gaëtan Harter
124f9ec9bb
makefile.iotlab.single: check iotlab-node/iotlab-ssh return value
Format the output to be '0' on success and check it with grep.

This makes command fail when they failed on IoT-LAB.
2018-06-15 15:37:29 +02:00
Gaëtan Harter
d900e0a548
makefile.iotlab.single: add auto and auto-ssh modes
Usage:

    make BOARD=iotlab-m3 IOTLAB_NODE=auto-ssh all flash term

Add support to select node number in auto mode
2018-06-15 15:37:25 +02:00
Gaëtan Harter
3bba0c5895
makefile.iotlab.single: add IoT-LAB testbed support for one node
Add support to do flash/reset/term on an IoT-LAB node.
It also allow running test using 'testrunner'.

Configuration variables are:

* `IOTLAB_NODE` which should be set to your node url
  * The full url including site to use from your computer `m3-1.grenoble.iot-lab.info`
  * The short url when used on the IoT-LAB frontend `m3-1`
* `IOTLAB_EXP_ID` for your experiment id for flash and reset.
  By default it tries to use your currently running experiment if you have only one
* `IOTLAB_USER`: is read from `${HOME}/.iotlabrc` as saved by `iotlab-auth`
  * It is expected to have run `iotlab-auth` beforehand.
2018-06-15 15:37:18 +02:00
Gaëtan Harter
ec2fe9a308
Merge pull request #9294 from smlng/pr/tools/cwd
tools: allow static checks to be run from any directory
2018-06-12 12:39:42 +02:00