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

18494 Commits

Author SHA1 Message Date
Gaëtan Harter
d4ca2644a3
boards/iotlab-m3|a8: fix openocd configuration
iotlab-m3 boards always ended up not being able to flash after time.
This changes managed to fix and flash boards that where able to be flashed with
the deprecated `ft2232` driver and not with the `ftdi` driver used in RIOT.

It combines configuration from openocd, iot-lab, RIOT config and Alexandre
Abadie feedback

* http://repo.or.cz/openocd.git/blob/HEAD:/tcl/interface/ftdi/iotlab-usb.cfg
  * ftdi configuration
* https://github.com/iot-lab/iot-lab-gateway/blob/2.4.1/gateway_code/static/iot-lab-m3.cfg
  * `trst_and_srst` config
* Alexandre feedback and http://openocd.org/doc/html/Reset-Configuration.html
  * 'connect_assert_srst' reset configuration
    * it prevents errors in the output on first flash
    * should help on boards with invalid code
    * It was taken from what Alexandre found for board 'b-l072z-lrwan1'
  * It requires using '-c reset halt' instead of '-c halt' before debug
* RIOT
  * Keep the `configure -rtos` auto
2018-07-02 11:00:48 +02:00
MichelRottleuthner
2ac61b7f1f
Merge pull request #9282 from jcarrano/new-mkconstfs
tools/mkconstfs: Add an improved tool.
2018-07-02 10:50:37 +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
Peter Kietzmann
c68ebca154
Merge pull request #9468 from gebart/pr/mulle-uart-pins
boards/mulle: Fix mixed up RX TX pins on UART0
2018-07-02 08:28:49 +02:00
Joakim Nohlgård
723d86bab0 boards/mulle: Fix mixed up RX TX pins on UART0 2018-06-30 15:40:27 +02:00
Francisco Acosta
4b7f85de75
Merge pull request #9285 from Lydrin/master
pkg/jerryscript: update to latest commit
2018-06-29 18:14:02 +02:00
Gaëtan Harter
d055fde171
Merge pull request #8790 from aabadie/pr/openocd_b-l072z-lrwan1
boards/b-l072z-lrwan1: fix openocd configuration and 'make debug'
2018-06-29 18:09:03 +02:00
cda12a0c2b
Merge pull request #9462 from MichelRottleuthner/pr_pn532_fix_buffer_type
drivers/pn532: fix wrong buffer type
2018-06-29 17:38:18 +02:00
Michel Rottleuthner
41d103ad10 drivers/pn532: fix wrong buffer type 2018-06-29 16:48:59 +02:00
05c53a9216
Merge pull request #9435 from OTAkeys/pr/stm32f2_cpu_line
cpu/stm32f2: make use of CPU_LINE
2018-06-29 15:42:37 +02:00
5206446cf7
Merge pull request #9439 from OTAkeys/pr/stm32f3_cpu_line
cpu/stm32f3: make use of CPU_LINE
2018-06-29 15:42:17 +02:00
48d65d656f
Merge pull request #9441 from OTAkeys/pr/stm32f7_cpu_line
cpu/stm32f7: make use of CPU_LINE
2018-06-29 15:41:58 +02:00
Peter Kietzmann
8ab20f0551
Merge pull request #9456 from ZetaR60/RIOT_atmega_gpio_misc_fix
cpu/atmega_common: misc gpio interrupt fixes
2018-06-29 09:18:35 +02:00
Francisco Acosta
23d176f46b
Merge pull request #8857 from ZetaR60/RIOT_atmega_time_dot_h
cpu/atmega_common: Use updated time.h
2018-06-28 22:29:20 +02:00
Matthew Blue
adc44e6496 cpu/atmega_common: misc gpio interrupt fixes 2018-06-28 16:06:36 -04:00
aa7fad6d40 boards/stm32f429i-disc1: add initial support 2018-06-28 20:48:58 +02:00
Ken Bannister
03115a7c0c
Merge pull request #9444 from kb2ma/nanocoap/test_get_uri_path
net/nanocoap: test coap_get_uri() boundaries
2018-06-28 13:06:30 -04:00
Hauke Petersen
a5f2f0e1c0
Merge pull request #9453 from miri64/gnrc_sock_udp/fix/use-sock-ep
gnrc_sock_udp: use sock's local end-point for listening
2018-06-28 18:43:59 +02:00
Martine Lenders
647d1d2b01 tests: provide test for reception on sock with port 0 2018-06-28 17:38:12 +02:00
Martine Lenders
cb74063573 gnrc_sock_udp: use sock's local end-point for listening
Without this fix the listener doesn't actually listen on the
(potentially) ephemeral port introduced in #9382, but on port 0 which is
wrong.
2018-06-28 17:25:26 +02:00
4e1f07b895
Merge pull request #8475 from aabadie/pr/common-stlink
boards/stm32: use common place of openocd config files for all boards using stlink
2018-06-28 15:13:48 +02:00
Gaëtan Harter
77a8aee6fa
Merge pull request #8821 from cladmi/pr/riottools
make: add and export RIOTTOOLS directory
2018-06-28 14:34:25 +02:00
Gaëtan Harter
609c7073db
pkg/relic: use RIOTTOOLS variable 2018-06-28 14:11:00 +02:00
Gaëtan Harter
0a3375ba33
tests: use RIOTTOOLS variable
Add newly added tests
2018-06-28 14:05:33 +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
5e053bffe9
boards: use RIOTTOOLS variable 2018-06-28 14:05:33 +02:00
b0dad7364d
Merge pull request #9448 from danpetry/two_acks_to_change_guidelines
doc: add requirement for two acks for changes
2018-06-28 13:30:18 +02:00
Martine Lenders
68fe6682ff gnrc_sixlowpan_frag: add current_size to exposed struct
Since IPHC also manipulates the total number of bytes of a received
datagram (by decompressing it), this also needs to be exposed. I guess
I was too focused on introducing a *generic* packet buffer for a future
virtual reassembly buffer (where it isn't needed, but so isn't `pkt` to
be honest), that I totally forgot about it in #9352.
2018-06-28 12:28:51 +02:00
danpetry
e225333053 doc: add requirement for two acks for changes
- Two ACKs should be required to ensure that the maintainer guidelines
  remain credible.
2018-06-28 12:28:12 +02:00
danpetry
3423008a01
Merge pull request #9445 from bergzand/pr/maintaining/split_pr
doc: Add atomicity to review fundamentals
2018-06-28 12:26:27 +02:00
122650c124
doc: Add atomicity to review fundamentals 2018-06-28 12:10:21 +02:00
Joakim Nohlgård
904c583038
Merge pull request #8697 from aabadie/pr/drivers/params/lis3dh
drivers/lis3dh: apply unified driver params scheme + cleanup
2018-06-28 10:52:48 +02:00
Peter Kietzmann
e684f49037
Merge pull request #9438 from gebart/pr/kinetis-spi-scgc
kinetis: Clean up SPI module power handling
2018-06-28 09:35:44 +02:00
Ken Bannister
a7e5562268 net/nanocoap: test coap_get_uri() boundaries 2018-06-27 23:28:37 -04:00
Dylan Laduranty
ea7044f3d2
Merge pull request #9442 from gebart/pr/fxos8700-frdm
boards/frdm: Add bus configuration for onboard FXOS8700CQ sensor
2018-06-27 22:14:02 +02:00
Joakim Nohlgård
95c04efe7c frdm-kw41z: Add FXOS8700CQ configuration 2018-06-27 21:41:14 +02:00
Joakim Nohlgård
8163e285ac frdm-k64f: Add FXOS8700CQ configuration 2018-06-27 21:41:03 +02:00
Joakim Nohlgård
1e395aeee7 frdm-k22f: Add FXOS8700CQ configuration 2018-06-27 21:40:54 +02:00
Vincent Dupont
c93002351b cpu/stm32f7: make use of CPU_LINE 2018-06-27 10:38:46 -07:00
Vincent Dupont
d89fda5768 cpu/stm32f3: make use of CPU_LINE 2018-06-27 10:27:19 -07:00
Joakim Nohlgård
28fe4b8653 kinetis: Clean up SPI module power handling
Fixes a problem with hardware CS when using slow SPI speeds,
mentioned in https://github.com/RIOT-OS/RIOT/issues/6437#issuecomment-283114795
2018-06-27 19:21:39 +02:00
Vincent Dupont
48a360afff cpu/stm32f2: make use of CPU_LINE 2018-06-27 09:47:40 -07:00
Martine Lenders
acfe57a52b gnrc_pktbuf_static: reduce checks to be in line with new alignment 2018-06-27 17:19:34 +02:00
Martine Lenders
8a75d8d189 gnrc_pktbuf_static: fix alignment issue / leaks
This fixes an alignment issue I encountered in the static version of
the packet buffer.

The bug is caused by a race-condition where a certain order of
operations leads to a chunk being released according to the
byte-alignment of the platform, but overlapping potential space for
a future `_unused_t` struct e.g. (x mark allocated regions):

                    Future leak of size sizeof(_unused_t)       Time
                    v                                            |
    +------------+-----+--------------------+                    |
    |xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|                    +
    +------------+-----+--------------------+                    |
                                                                 |
    +------------+--+--+--------------------+                    |
    |               |xxxxxxxxxxxxxxxxxxxxxxx|                    +
    +------------+--+--+--------------------+                    |
                                                                 |
    +-----+------+--+--+--------------------+                    |
    |xxxxx|         |xxxxxxxxxxxxxxxxxxxxxxx|                    +
    +-----+------+--+--+--------------------+                    |
                                                                 |
    +-----+------+-----+---------+----------+                    |
    |xxxxx|                      |xxxxxxxxxx|                    +
    +-----+------+-----+---------+----------+                    |
                                                                 |
    +-----+------+-----+--------------------+                    |
    |xxxxx|      |xxxxxxxxxxxxxxxxxxxxxxxxxx|                    +
    +-----+------+-----+--------------------+                    |
                                                                 |
    +------------+-----+--------------------+                    |
    |xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|                    +
    +------------+-----+--------------------+                    |
                                                                 |
    +------------+-----+--------------------+                    |
    |xxxxxxxxxxxxxxxxxx|                    |                    +
    +------------+-----+--------------------+                    |
                                                                 |
    +------------+-----+--------------------+                    |
    |            |xxxxx|                    |                    +
    +------------+-----+--------------------+                    |
                                                                 v

Sadly, I wasn't able to create a reproducable unittest that show-cases
this corner-case, since I don't understand the order of operations that
cause this one 100%, but the bug is reproducable (but also not
reliably) by sending large (i.e. fragmented) packets to a 6Lo-enabled
host from more than 1 host simultaneously (use `gnrc_pktbuf_cmd` to
check).

By making the size of `_unused_t` the only condition for alignment,
this bug is fixed.
2018-06-27 17:18:24 +02:00
Martine Lenders
0689f69ddd
Merge pull request #9431 from neiljay/pr/fix_size_t_usage
tests: Fix size_t vs int issues
2018-06-27 16:18:23 +02:00
Neil Jones
a77f1eea45 tests: Fix size_t vs int issues
size_t can be any unsigned type but is never a signed integer.
2018-06-27 15:04:07 +01:00
Peter Kietzmann
35359904c9
Merge pull request #9427 from gebart/pr/tests-rng-speed-xtimer
tests/rng: Use xtimer for speed test timeout
2018-06-27 15:06:57 +02:00
81219e148b
Merge pull request #9425 from gebart/pr/thread-flags-uncrustify
core: uncrustify thread_flags.h
2018-06-27 13:46:01 +02:00
Joakim Nohlgård
21310e4260 tests/rng: Use xtimer for speed test timeout 2018-06-27 13:04:34 +02:00