Tags: ccoors/RIOT
Tags
RELEASE 2020.01 RIOT-2020.01 - Release Notes ============================ RIOT is a multi-threading operating system which enables soft real-time capabilities and comes with support for a range of devices that are typically found in the Internet of Things: 8-bit and 16-bit microcontrollers as well as light-weight 32-bit processors. RIOT is based on the following design principles: energy-efficiency, soft real-time capabilities, small memory footprint, modularity, and uniform API access, independent of the underlying hardware (with partial POSIX compliance). RIOT is developed by an international open-source community which is independent of specific vendors (e.g. similarly to the Linux community) and is licensed with a non-viral copyleft license (LGPLv2.1), which allows indirect business models around the free open-source software platform provided by RIOT. About this release: =================== The 2020.01 release includes: - Initial support for MicroPython - Initial support for GNRC based LoRaWAN stack - Initial (experimental) asynchronous sock support - Extend support for lpc2387 and fe310 cpus - Xtimer concurrency/robustness improvement, fixing RIOT-OS#8388, RIOT-OS#5338 & RIOT-OS#5103 - Complete re-implementation of esp8266 based on ESP8266 RTOS SDK - Improvements in automatic tests - Introduce and start using Kconfig as a configuration tool - +12 new boards, +7 new drivers, +4 new packages About 527 pull requests, composed of 1367 commits, have been merged since the last release, and about 29 issues have been solved. 61 people contributed with code in 111 days. Approximately 3053 files have been touched with 134416 (+) insertions and 31870 deletions (-). Notations used below: ===================== + means new feature/item * means modified feature/item - means removed feature/item New features and changes ======================== System libraries ---------------- + core/kernel_defines: Introduce 'IS_ACTIVE' macro * core/assert: allow multiple static_asserts within a function * core/ringbuffer: compensate 'ringbuffer_remove' underflow error + core/thread: add zombie thread state + sys: basic C++ compatibility with C11 atomics + sys/arduino: + added Wire (I2C) interface + added SPI interface * allow use of arduino libraries without need for arduino sketch * add implementation for analogWrite * fixed frequency selection in SPI * sys/bitfield: unify byte order and bit order to both be most significant bX first * sys/checksum: move crc8 implementation from sht3x to common code * sys/color: add color_rgb_set_brightness() and color_rgb_shift() * sys/crypto/modes/ccm: support length of AAD > 24 * sys/crypto/modes/ccm: support plain text length < 2^32 + sys/frac: add frac library for integer scaling by semi-constant fractions + sys/luid: add luid_get_eui48() / luid_get_eui64() + sys/progress_bar: add module for managing a progress bar in stdout * sys/posix/pthread/pthread.c: fix pthread reaper * sys/shell: make shell_run run shell forever * sys/shell_commands: make 6Lo compression contexts configurable on non-6LBR + sys/stdio_null: add null driver * sys/suit: use c25519 instead of hacl - sys/suit: remove dependency on tinycbor * sys/usbus: * add descriptor prefix support * unify terminology to use 'descriptor' everywhere * cdc_acm: add interface association descriptor, enable Windows enumeration and usage of RIOT CDC ACM * cdc_acm: fix to avoid lost characters on USBUS CDC ACM STDIO * sys/xtimer: * concurrency/robustness improvements * fix xtimer_mutex_lock_timeout by having _mutex_timeout() check waiting list - remove dependency to core_msg Networking ---------- + sys/gnrc_lorawan: add initial support for GNRC based LoRaWAN stack * sys/gnrc_netif: make 6LoENC dynamically configurable + sys/gnrc_sock: provide asynchronous event implementation * sys/gnrc_ipv6: fix source check for loopback address * sys/gnrc_ipv6_ext_frag: remove fragment header when n-th fragment is first * sys/gnrc_ipv6_nib: allow for configuration of static link-local addresses * sys/gnrc_netif: highest source address scope wins selection * sys/gnrc_netif: only use prefix matching as tie-breaker in source selection * sys/gnrc_sixlowpan_frag_rb: split out classic frag specific code * sys/gnrc_sixlowpan_frag_rb: fix memory-leak in _rm_by_datagram() and in interval marker inherited from base * sys/gnrc_sixlowpan_frag: various optimizations on sending * sys/gnrc_sixlowpan_iphc: add fragment forwarding stubs * sys/gnrc_sixlowpan_iphc_nhc: determine UDP hdr length from reassembly buffer, fix fragmented data size allocation * sys/gnrc_tcp: return immediately on gnrc_tcp_recv if connection is closing + sys/net/gcoap: add macro to delay initialization of gcoap * sys/net/gcoap: do not allocate RX buf on stack * sys/pthread: check malloc() return value, prevent NULL pointer deference * sys/shell/gnrc_netif: use netif API for ifconfig * sys/shell/sc_nimble`_netif: allow connecting by name + sys/sock: initial definitions for asynchronous event handling + sys/sock_async: initial import of event-based implementation Packages -------- * pkg: cleanup management of dependencies * pkg/pkg.mk: use intermediate state files * pkg/ccn-lite: bump version + pkg/flatbuffers: add support for FlatBuffers serialization library * pkg/gecko_sdk: update to version 2.7 * pkg/libfixmath: several improvements and fixes to support 8bit * pkg/littlefs: bump littlefs version to 1.7.2 * pkg/lora-serialization: bump to latest version and update test for AVR * pkg/lwip: * add support for esp32 Ethernet device * add IPv4 support for LWIP-stm32 * start DHCP for a netif with lwip_dhcp * add stm32 ethernet support * enable lwIP for ESP8266 + pkg/nanopb: add Nanopb protocol buffers library package * pkg/nimble: * bump version + add simple BLE connection manager: autoconn + add user event callback to autconn + nimble_netif: catch L2CAP connection failures + nimble_netif: add additional events * pkg/tinydtls: add DTLS sock API implementation * pkg/tinydtls: bump version + pkg/tensorflow-lite: add support to RIOT + pkg/utensor: add support to RIOT * pkg/u8g2: refactor the U8g2 package * pkg/wakaama: add basic LWM2M client implementation Boards ------ - boards: remove RTT_NUMOF/RTC_NUMOF - boards: unexport PROGRAMMER + boards/adafruit-nrf52840: initial support * boards/arduino-zero: configure ADC channels + boards/atmega328p: initial support for standalone version * boards/atmega328p: support variable xtimer frequencies + boards/atmega1284P: initial support for standalone version + boards/atmega256rfr2: initial support + boards/avr-rss2: initial support + boards/cc1252: initial support * boards/common: clean up msba2 common files + boards/derfmega*: initial support + boards/esp32-ttgo-t-beam: initial support - boards/frdm: remove support for OpenOCD < v0.10.0 + boards/mcb2288: initial support + boards/microduino-corerf: initial support * boards/nucleo-f207zg: add ethernet configuration * boards/native: allow for native to be reset via SIGUSR1 * boards/particle-*: configure PCB antenna for 2.4GHz radio * boards/pic32-clicker: cleanup uart configuration and initialization * boards/pic32-clicker: use pic32prog as default programmer + boards/pinetime: initial support for the PINE64 PineTime smartwatch + boards/sodaq-*: add arduino support * boards/sodaq-*: refactor common code + boards/stm32f030f4-demo: initial support * boards/stm32-common: * allow SPI signals routed on multiple alternate functions * add 54MHz and 108MHz SPI divtable entries * common programmer/debugger/serial config * boards/thingy: add dependency for on-board hts221/lps22hb sensors CPU --- + cpu/arm7_common: hook up puf_sram + cpu/atmega128rfa1: add initial support + cpu/atmega256rfr2: symbol counter based RTT support + cpu/atmega_common: * clean ups and fix code run at end of ISR to behave like `thread_yield_higher` * fixed atmega_exit_isr * uart: use TX_ISR to check uart transmission end + cpuid: provide for every device + rtt: initial peripheral driver support + wdt: initial peripheral driver support * cpu/cortexm: fix -mfpu flag value for CortexM7 * cpu/fe310: * several cleanup in implementation and clock setup * change default optimization to "-Os" * uart: rework driver and fixes + i2c: initial peripheral driver support + spi: initial peripheral driver support + cpp: add feature * cpu/esp*: esp_wifi used as default netdev for lwip * cpu/esp32: * improvements and cleanup of log_module * fix lwip + esp_wfi, esp_wifi send buffer should not be on stack * use esptool.py from riot tools * rtc: fixes, improvements and cleanups * spi: fix CS handling in spi_transfer_bytes * uart: workaround uart sporadically set to wrong value when the CPU clock is changed * spi: enable use of SPI flash drive with pkg_littlefs * cpu/esp8266: * complete re-implementation based on ESP8266 RTOS SDK * fix of esp_wifi_send function * fix bootloaders and log outputs in vendor code * cpu/efm32: fix uart handling of RX when no RX callback is configured * cpu/efm32: normalize time in rtc_series1 * cpu/lpc2387: * allow for more flexible clock selection + add support for backup RAM * uart: update the UART driver + pm: initial support + dac: initial support * rtc: enable RTC on rtc_init(), align with other RTC implementations * lpc2387.ld: cleanups and align with cortexm_base.ld * lpc2387.ld: provide thread_isr_stack_*() - MicroPython + cpu/kinetis: add flashpage for W & K series * cpu/msp430_common: add flashpage_raw * cpu/native: + initial import of stdio_native * allow Access to Hardware SPI Bus on Linux * fix all-asan Makefile target * cpu/stm32: * i2c_2: fix read bytes flag - i2c_2: do not support repeated start reading * stmclk: fix M-factor shift for SAI PLL * stcmlk: add functions for low power mode clock config + stm32f0: add support for stm32f030cc CPU + stm32f1: add rtt peripheral driver + stm32l0: add stm32l010c6 support * cpu/sam0_common: * uart: implement non-blocking uart write + uart: add hardware flow control support * rtt: enable COUNTSYNC in CTRLA, fixes `rtt_get_counter()` return value * spi: power off spi on release, avoid bus errors affecting application code * adc: fix API to return `-1` on unsupported resolution * cpu/samd21: use dedicated 1kHz GCLK4 for RTC and WDT Device Drivers -------------- + doc/doxygen: add device driver guide + drivers: add Differentially Operated Serial Ethernet (DOSE) driver * drivers/at86rf2xx: add support for ATmegaRF MCUs * drivers/at86rf2xx: enable Smart Reduced Power Consumption for AT86RFR2 * drivers/bmx280: added SPI models + drivers/dcf77: add driver for DCF77 * drivers/hd44780: move params header to the right place + drivers/ili9341: initial import of ili9341 LCD driver * drivers/ina220: re-worked and added SAUL adaptation + drivers/ina3221: add driver for INA3221 current, power & voltage monitor + drivers/itg320x: add driver for InvenSense ITG-320X 3-axis gyroscope * driver/mpu9x50: make mpu9150 more generic * drivers/mrf24j40: allow for basic self-test on init * drivers/mrf24j40: fix start up code + drivers/qmc588rl: add support for QMC5883L + drivers/shtc1: add driver for SHTC1 temperature and humidity sensor + drivers/ws281x: add driver for WS281x RGB LED driver for ATmega platform * drivers/xbee: fix reference to device from netif in send function * periph/adc: change return type of `adc_sample()` to `int32_t` Build System / Tooling ---------------------- + dist/tools: + add Kconfiglib + add helper script for Black Magic Probe + add support for miniterm.py * fix 'make reset' with bootloader in avrdude + dist/testbed-support: add nrf52{840,832}mdk in IOTLAB_NODE targets + doc/advanced-build-system-tricks: handle multiple boards + doc/doxygen: add build system doc page for BOARD, CPU, FEATURE + doc/doxygen: add build-system-basics.md with general build system tips + Kconfig: + add build system integration and test application + makefiles: include configuration symbols to build system + makefiles: add symbols for used packages + expose gnrc/ipv6/whitelist configurations + expose gnrc/lorawan configurations + expose usb configurations + expose net/sock/util configurations + expose gnrc/netif configurations + expose gnrc/ipv6 configurations + make: + introduce 'BOARDSDIR' to support external boards using common code in 'RIOTBOARD' * fail by default when errors are expected + add architectures features + add features blacklisting + add blob utility header * enable SECONDEXPANSION for module/application builds + add CXXEXT and CXXEXCLUDE variable for customizing C++ builds - makefiles: - remove use of export with LINKFLAGS variable + add possibility to provide board specific application dependencies in a separate Makefile * generate proper dependency files when using ccache * fix LOG_LEVEL handling - disable `-Watomic-alignment` on LLVM + introduce 'PROG_DEV' to specify programmer device * assert CPU is defined by BOARD/Makefile.features + add TERMFLASHDEPS to TERMDEPS so it also applies to `test` * tools: allow make reset via avrdude * tools: set DEBUG_ADAPTER_ID as JLINK_SERIAL Testing ------- - dist/tests/philip: Removed old code and tests * dist/tools/testrunner: * make interactive test sync retries/delay configurable * reset before opening terminal - reset after opening terminal only if interactive test sync is not used * add variable for customizing a delay before reset * make interactive test sync retries/delay configurable * dist/tools/compile_and_test_for_board.py: allow use of wildcards for applications selection + murdock: enable esp32-wroom-32 for CI testing * tests: + use test_interactive_test_util + add automated tests guidelines in README - remove APPLICATION definition in tests/* + tests/gnrc_sock_neterr: proof of concept test for gnrc_sock + gnrc_neterr + tests/bench_xtimer: initial import * tests/lwip: enable IPv4 * tests/malloc: improve application and add an automatic test script * tests/memarray: add python script for automatic testing * tests/nordic_softdevice: cleanup test script and fix test + tests/periph_timer_short_relative_set: initial import * tests/periph_cpuid: add automatic test script * tests/sys_arduino: fix test synchronization issues * tests/unittests: fix `tests-pkt` for non-32bit platforms API Changes =========== - drivers/ina220: changes to comply with RIOT's design goals & SAUL adaption - usbus: unified terminology within USBUS to match the terminology from the specs. `hdr`, `hdrs`, `headers`, etc is replaced everywhere with `descr` `descriptors` and `descriptors`. - Makefile.include: fail by default when errors are expected ```diff /* change return type of `adc_sample()` to `int32_t` to allow support for ADCs with resolution of more than 16 bits on 8 bit and 16 bit platforms*/ - int adc_sample(adc_t line, adc_res_t res) = int32_t adc_sample(adc_t line, adc_res_t res) /* pass memo to resp_handler directly */ - typedef void (*gcoap_resp_handler_t)(unsigned req_state, coap_pkt_t* pdu, - sock_udp_ep_t *remote); + typedef void (*gcoap_resp_handler_t)(const gcoap_request_memo_t *memo, + coap_pkt_t* pdu, + const sock_udp_ep_t *remote); /* allow to pass user context to requests */ size_t gcoap_req_send(const uint8_t *buf, size_t len, const sock_udp_ep_t *remote, - gcoap_resp_handler_t resp_handler); + gcoap_resp_handler_t resp_handler, void *context); /* assume `netif->ops->init()` to be set to at least a default */ - _init_from_device(netif); - #ifdef DEVELHELP - _test_options(netif); + netif->ops->init(netif); + #if DEVELHELP + assert(options_tested); - netif->cur_hl = GNRC_NETIF_DEFAULT_HL; - #ifdef MODULE_GNRC_IPV6_NIB - gnrc_ipv6_nib_init_iface(netif); - #endif - if (netif->ops->init) { - netif->ops->init(netif); - } /* split the semantic of gnrc_netif_is_6ln() into two check functions */ /* is the interface performing 6Lo-ND as specified in RFC 6775. */ - bool gnrc_netif_is_6ln(const gnrc_netif_t *netif); + bool gnrc_netif_is_6lo(const gnrc_netif_t *netif); + static inline bool gnrc_netif_is_6ln(const gnrc_netif_t *netif /* add function to start a shell and exit once EOF is reached. */ + void shell_run_once(const shell_command_t *commands, char *line_buf, int len); /* return reassembly buffer entry created or updated */ - void gnrc_sixlowpan_frag_rb_add(gnrc_netif_hdr_t *netif_hdr, - gnrc_pktsnip_t *frag, size_t offset, - unsigned page); + gnrc_sixlowpan_frag_rb_t *gnrc_sixlowpan_frag_rb_add(gnrc_netif_hdr_t *netif_hdr, + gnrc_pktsnip_t *frag, + size_t offset, unsigned page); /* move gnrc_sixlowpan_frag_rb_dispatch_when_complete() out of gnrc_sixlowpan_frag_rb_add(). The caller of the latter function is now responsible to call it. */ + int gnrc_sixlowpan_frag_rb_dispatch_when_complete(gnrc_sixlowpan_frag_rb_t *rbuf, + gnrc_netif_hdr_t *netif); /* don't assume interface specifier is an int for splitting, add functions to split int and string */ - * @return interface number or -1 if none specified + * @return string containing the interface specifier. + * @return NULL if no interface was specified. + */ - static inline int ipv6_addr_split_iface(char *addr_str) + static inline char *ipv6_addr_split_iface(char *addr_str) - int ipv6_addr_split(char *addr_str, char seperator, int _default); + int ipv6_addr_split_int(char *addr_str, char seperator, int _default); + char *ipv6_addr_split_str(char *addr_str, char separator); /* change address getter and setter functions to avoid byte order confusion */ - uint16_t at86rf2xx_get_addr_short(const at86rf2xx_t *dev); + void at86rf2xx_get_addr_short(const at86rf2xx_t *dev, network_uint16_t *addr); - void at86rf2xx_set_addr_short(at86rf2xx_t *dev, uint16_t addr); + void at86rf2xx_set_addr_short(at86rf2xx_t *dev, const network_uint16_t *addr); - uint64_t at86rf2xx_get_addr_long(const at86rf2xx_t *dev); + void at86rf2xx_get_addr_long(const at86rf2xx_t *dev, eui64_t *addr); - void at86rf2xx_set_addr_long(at86rf2xx_t *dev, uint64_t addr); + void at86rf2xx_set_addr_long(at86rf2xx_t *dev, const eui64_t *addr); ``` Deprecations ============ Warnings -------- - GNU make <4 will be removed after release 2020.01 - net/gcoap: gcoap_finish() will be removed after release 2020.04 - makefiles/vars.inc.mk: PORT_BSL & AVRDUDE_PORT will be removed after release 2020.04 - gnrc_nettest: will be removed after release 2020.07 Removals -------- - sys/ubjson: remove module - dist/tests/philip: removed unneeded and unused tests and code - net/gcoap: remove gcoap_req_send2() - cpu/efm32: remove EFM32_UART_MODES - boards: remove RTT_NUMOF/RTC_NUMOF Known issues (130) ================== Networking related issues (45) ------------------------------ packet buffer address assertion or completely without error configured prefix chars address Timer related issues (17) ------------------------- on Nucleo-f401re time. _xtimer_now() and irq_disable() Drivers related issues (12) --------------------------- MHz clock cycles supported Native related issues (3) ------------------------- Other platforms related issues (16) ----------------------------------- (not previous) boards CS LTO Build system related issues (9) ------------------------------- evaluation image value Other issues (28) ----------------- esp32-wroom-32 shell after flashing with J-Link 10 static_asserts in the same scope everywhere Fixed Issues since the last release (2019.10) (29) ================================================= wrote in tests/pkg_fatfs. support on host flashfile Acknowledgements ================ We would like to thank all companies that provided us with hardware for porting and testing RIOT-OS. Further thanks go to companies and institutions that directly sponsored development time. And finally, big thanks to all of you contributing in so many different ways to make RIOT worthwhile! More information ================ http://www.riot-os.org Mailing lists ------------- * RIOT OS kernel developers list devel@riot-os.org (http://lists.riot-os.org/mailman/listinfo/devel) * RIOT OS users list users@riot-os.org (http://lists.riot-os.org/mailman/listinfo/users) * RIOT commits commits@riot-os.org (http://lists.riot-os.org/mailman/listinfo/commits) * Github notifications notifications@riot-os.org (http://lists.riot-os.org/mailman/listinfo/notifications) IRC --- * Join the RIOT IRC channel at: irc.freenode.net, #riot-os License ======= * The code developed by the RIOT community is licensed under the GNU Lesser General Public License (LGPL) version 2.1 as published by the Free Software Foundation. * Some external sources and packages are published under a separate license. All code files contain licensing information.
Merge pull request RIOT-OS#13237 from MichelRottleuthner/pr_bp13212 sys/xtimer: compare two offsets rather than absolute times [backport 2020.01]
Merge pull request RIOT-OS#13183 from fjmolinas/backport/2020.01/fix_… …xtimer_now_irqdisable sys/xtimer: _xtimer_now64(): fix irq_disable() return value type [backport 2020.01]
Merge pull request RIOT-OS#13085 from miri64/boards/feat/feather-nrf5… …2840 boards: initial import of Adafruit Feather nRF52840 Express
RELEASE 2019.10 RIOT-2019.10 - Release Notes ============================ RIOT is a multi-threading operating system which enables soft real-time capabilities and comes with support for a range of devices that are typically found in the Internet of Things: 8-bit and 16-bit microcontrollers as well as light-weight 32-bit processors. RIOT is based on the following design principles: energy-efficiency, soft real-time capabilities, small memory footprint, modularity, and uniform API access, independent of the underlying hardware (with partial POSIX compliance). RIOT is developed by an international open-source community which is independent of specific vendors (e.g. similarly to the Linux community) and is licensed with a non-viral copyleft license (LGPLv2.1), which allows indirect business models around the free open-source software platform provided by RIOT. About this release: =================== The 2019.10 release includes: - initial support for SUIT firmware updates - USB CDC-ACM serial communication - complete rewrite of TI CC110x radio driver - initial support for IPv6 fragmentation - DTLS support in the sock networking stack - complete blockwise messaging for gcoap and nanocoap - as always, bug fixes and documentation updates About 460 pull requests, composed of 950 commits, have been merged since the last release, and about 60 issues have been solved. 57 people contributed with code in 105 days. Approximately 2000 files have been touched with 129000 insertions and 25000 deletions. Notations used below: ===================== + means new feature/item * means modified feature/item - means removed feature/item New features and changes ======================== System libraries ---------------- + sys/arduino: Added millis() * sys/arduino: make ADC feature optional + sys/fmt: Added submodule fmt_table for printing tables + sys/log: add module for colorized logging + sys/riotboot: add initial image digest verification * riotboot: define if building the bootloader + sys/shell: add heap command + sys/shell: cancel current line on CTRL-C. * shell/sc_gnrc_ipv6_nib: list and edit authoritative border router (ABR) list + sys/suit: initial support for SUIT firmware updates * sys: add schedstatistics module to remove dependency on xtimer * can: use memarray for pkt and router allocation + sys: single interrupt handler thread for interrupts in modules with blocking functions (but likely to be removed -- see Deprecations section below) Networking ---------- + sys: Add (CoAP) Link Format module + sys: add credman (D)TLS credential management module + sys: new sock submodule for DTLS + gnrc_ipv6_ext_frag: Initial import of IPv6 fragmentation and reassembly + gnrc_netif: allow for wait of minimum time between sends * gnrc_netif: add netif setter (part of refactoring to a pointer-based approach) * gnrc_sixlowpan_frag_vrb: add gnrc_sixlowpan_frag_vrb_from_route() + gnrc_sixlowpan_frag_rb: move reassembly buffer functions to their own module + gcoap: add Blockwise support * nanocoap: complete Blockwise support + nanocoap: add coap_opt_get_next() to iterate over options + nanocoap: add coap_opt_get_opaque() to retrieve option bytes * gnrc_tcp: several small improvements Packages -------- * ccn-lite: version bump * pkg/libcose: bump version and update crypto support * nimble: adapt to nrf51 family + nimble: add IP-over-BLE support via netif/GNRC * nimble: bump version to 1.2.0 * nimble/netif: set max conn explicitly * semtech-loramac: add uplink_counter get/set functions + Cifra: add AES crypto library * cayenne-lpp: bump version to 0.1.1 + wolfSSL pkg addition with examples Boards ------ + board: add support for SAMR34-XPRO + boards/arduino-mkrwan1300: add initial support (without LoRa) * boards: Split off 128KiB version of bl*pill + boards/doc: Add a guide to find physical board pins + boards: Initial support for board HiFive1B - boards/mips-malta: remove board. + boards/nrf52: introduce shared dependencies in common/nrf52 and update boards * boards/nrf52832-mdk: enable I2C and use default configuration * board/nucleo-l031k6: Add i2c to periph_conf * board/nucleo-l432kc: Implementing I2C for board * boards: move CPU/CPU_MODEL definition to Makefile.features + boards/p-l496g-cell02: add support - boards: Remove support for the Jiminy-Mega256RFR2 * boards/sam0: refactor ADC_0 into plain ADC * boards/slwstk6000b-*: split one board for each module * boards/slwstk6000b: move CPU definition to Makefile.features + boards/stm32f723e-disco: add initial support * boards/stm32: introduce common timer configurations and use them where possible + boards/stm32l0538-disco: add initial support * pic32-wifire: add support for flashing with pic32prog CPU --- + cpu/esp32: lwIP netdev * cpu/esp*: various improvements * cpu/kinetis: enable HWRNG for k64f - cpu/mips32r2_generic: remove cpu. * cpu: Moved stdio_init() prior to periph_init() for ARM targets * cpu/nrf5x: declare radio_nrfble feat for all nrfs + cpu/nrf5x: implement wdt peripheral driver + cpu/sam0_common: add hwrng driver * cpu/sam0_common/gpio: don't hard-code number of ports * cpu/sam0: update doc.txt with new MCU families * cpu/saml21: Make Low-Power SRAM available to programs + cpu/stm32_common: add watchdog for stm32 * stm32-common/spi: allow custom pin modes on spi to minimize power consumption * cpu/stm32f(2|4|7): add riotboot requirements * cpu/stm32l1: optimize power consumption * stm32l1/vendor: update vendor files to v2.3.0 * sam0: allow flashing with JLinkExe + sam0: Implement watchdog driver * cpu/samr30: update vendor files using ASF 3.35.1 + cpu/efm32: provide periph_uart_mode Device Drivers -------------- + drivers: add mtd wrapper for periph_flashpage + drivers/cc110x: Complete rewrite from scratch, and detailed documentation * drivers/include/periph/eeprom: Changed uint8_t* to void* in API * drivers/periph/i2c: Updated i2c_release() to return void + drivers/ph_oem: support for Atlas Scientific pH OEM sensor + drivers: support for NXP PCA9685 I2C 16-channel, 12-bit PWM controller + usbus: Add CDC-ACM (Serial console) function * periph/timer: Fix return codes of timer API + can: add ncv7356 SW transceiver driver + drivers/lis2dh12: add I2C mode + drivers/periph: add doc on power management aspects * drivers/mrf24j40: add pseudomodules for MRF24J40MA/B/C/D/E Build System / Tooling ---------------------- * dist/tools/pyterm: drop loglevel from output * make: docker: delegate bind mounts to the containers * Makefile.base: implement relative path linking without 'realpath' * Makefile.base: use thin static archives. * Makefile.include: add flash-only as dependency of term * Makefile.include: do not build HEXFILE by default anymore * Makefile.include: require make version 4. * makefiles: add support for sysfs gpio debug adapter * Makefiles: add support to generate both `.hex` and `.bin` file and add FLASHFILE variable * makefiles/docker.inc.mk: various improvements * makefiles/murdock.inc.mk: change policy to run tests by default * make: introduce $(CLEAN) + murdock: introduce 'TEST_ON_CI_BLACKLIST' * toolchain/cflags: enable dwarf compression (save 50% HDD) * edbg: verify before flash + ci: add codespell check script for tracking typos + Makefile.include: add cleanterm target and use it for tests * arduino/sketches: build sketches as a module + github: use stale-bot to mark and close PRs without activity Testing ------- + tests: add distinct test app for nrfmin driver + tests: add Nordic SoftDevice test app * tests/gnrc_ndp: enhance coverage * tests/lua_loader: run the test in CI * tests/mcuboot: handle building in docker * tests/pkg_u8g2: run the test in CI * tests: provide test case for malformed IEEE 802.15.4 packets * tests/pthread_rwlock: run the test in CI * tests: re-enable utf-8 tests on native + tests/riotboot: add automatic test + tests/sys_crypto: add RFC3610 and NIST SP 800-38C tests * tests/test_tools: add a test for the testing tools environment * tools/compile_and_test_for_board: allow setting the flash targets * tests/gnrc_tcp: provide regression tests for fixed issues API Changes ======================== ``` /* no error handling possible, so no need to return a value */ - int i2c_release(i2c_t dev) + void i2c_release(i2c_t dev) /* return 0 on success, rather than 1; so like timer_init() */ int timer_set(tim_t dev, int channel, unsigned int timeout) int timer_set_absolute(tim_t dev, int channel, unsigned int value) int timer_clear(tim_t dev, int channel) /* implementations already cast the argument to uint8_t* internally, so not a significant semantic change */ - size_t eeprom_read(uint32_t pos, uint8_t *data, size_t len) + size_t eeprom_read(uint32_t pos, void *data, size_t len) - size_t eeprom_write(uint32_t pos, const uint8_t *data, size_t len) + size_t eeprom_write(uint32_t pos, const void *data, size_t len) /* now returns CIPHER_ERR_INVALID_KEY_SIZE on invalid keySize */ int aes_init(cipher_context_t *context, const uint8_t *key, uint8_t keySize) /* add setter for netif of interface header */ + void gnrc_netif_hdr_set_netif(gnrc_netif_hdr_t *hdr, const gnrc_netif_t *netif) ``` Deprecations ======================== Warnings -------- net/emb6 net/nhdp pkg/oonf_api As the release was finalized, rough consensus was reached on a system event thread handler (RIOT-OS#12474) that likely will remove the interrupt handler thread (RIOT-OS#10555) just introduced with this release. Removals -------- net/coap: remove deprecated COAP_CT_... defines Known issues ============ Networking related issues ------------------------- packet buffer address assertion or completely without error configured prefix chars address Timer related issues -------------------- time. _xtimer_now() and irq_disable() Drivers related issues ---------------------- MHz clock cycles supported Native related issues --------------------- Other platforms related issues ------------------------------ on host (not previous) boards CS LTO Build system related issues --------------------------- flashfile evaluation image value Other issues ------------ -none- tests/pkg_fatfs: vol_idx print overflow on large negative value 10 static_asserts in the same scope everywhere Fixed Issues from the last release (2019.07) ============================================ echo -n causes Segmentation fault optimization in udp.c log_printfnoformat Makefile.include R21 types Acknowledgements ================ We would like to thank all companies that provided us with hardware for porting and testing RIOT-OS. Further thanks go to companies and institutions that directly sponsored development time. And finally, big thanks to all of you contributing in so many different ways to make RIOT worthwhile! More information ================ http://www.riot-os.org Mailing lists ------------- * RIOT OS kernel developers list devel@riot-os.org (http://lists.riot-os.org/mailman/listinfo/devel) * RIOT OS users list users@riot-os.org (http://lists.riot-os.org/mailman/listinfo/users) * RIOT commits commits@riot-os.org (http://lists.riot-os.org/mailman/listinfo/commits) * Github notifications notifications@riot-os.org (http://lists.riot-os.org/mailman/listinfo/notifications) IRC --- * Join the RIOT IRC channel at: irc.freenode.net, #riot-os License ======= * The code developed by the RIOT community is licensed under the GNU Lesser General Public License (LGPL) version 2.1 as published by the Free Software Foundation. * Some external sources and packages are published under a separate license. All code files contain licensing information.
Merge pull request RIOT-OS#12521 from miri64/backport/2019.10/gnrc_ip… …v6/fix/i11980 gnrc_ipv6: fix SEGFAULT when multicasting with multiple interfaces [backport 2019.10]
Merge pull request RIOT-OS#12375 from miri64/tests/enh/rs-i137 tests: prepare for RIOT-OS/Release-Specs#137
RELEASE 2019.07 RIOT-2019.07 - Release Notes ============================ RIOT is a multi-threading operating system which enables soft real-time capabilities and comes with support for a range of devices that are typically found in the Internet of Things: 8-bit and 16-bit microcontrollers as well as light-weight 32-bit processors. RIOT is based on the following design principles: energy-efficiency, soft real-time capabilities, small memory footprint, modularity, and uniform API access, independent of the underlying hardware (with partial POSIX compliance). RIOT is developed by an international open-source community which is independent of specific vendors (e.g. similarly to the Linux community) and is licensed with a non-viral copyleft license (LGPLv2.1), which allows indirect business models around the free open-source software platform provided by RIOT. About this release: =================== The 2019.07 release includes a number of new features including many new boards and cpu, riotboot added to many new and old boards, USB is now available, BLE improvements, Ethernet on stm32 platforms, as well as many bug fixes and documentation updates. Testing has also improved with both On-Target Testing increasing and now Hardware Assisted Automated Tests being run. About 300 pull requests with about 659 commits have been merged since the last release and about 50 issues have been solved. 26 people contributed with code in 106 days. Approximately 1377 files have been touched with 181993 insertions and 19668 deletions. Notations used below: ===================== + means new feature/item * means modified feature/item - means removed feature/item New features and changes ======================== System libraries ---------------- + Add OCB encryption mode + sys/shell: add loramac shell command * Fletcher16: extend with multi-part functions + USBUS: Initial work towards an USB stack + usbus: Initial simple auto init structure * sys: make uart_stdio RX optional + sys/event: add event_wait_until() + sys/bluetil: add bluetil_addr_from_str() + usbus: Add CDC-ECM (Ethernet Control Model) function * usbus: simplify adding entry to list * sys/stdio_ethos: replace USE_ETHOS_FOR_STDIO by stdio_ethos pseudomodule Networking ---------- * gnrc_ipv6_nib: add address from netif to address validation timer + netdev_ieee802154: add txpower and page + net/lorawan/hdr: add lorawan header helpers + ble/nimble: add support for build-in IPSS service * pkg/semtech-loramac: rework interaction with the MAC * pkg/semtech-loramac: provide basic persistence for MAC state * RPL: API update suggestions + ipv6_ext: add fragmentation extension definitions * net/sock_util: Accept NULL pointers in urlsplit + sys/net: add netopt options for lorawan * gnrc_tftp: Fix out-of-bounds memory access when comparing modes - gnrc_pktbuf: remove gnrc_pktbuf_duplicate_upto - gnrc_ipv6: remove obsolete and harmful reception code * gnrc_tftp: set port on server init + ble/softdevice: add ble_nordic_softdevice feature * net/mqttsn: fix client ID length to comply to the standard + gnrc_tftp: Add minimum packet length check Packages -------- * pkg/monocypher: bump version to 2.0.5 * ble/nimble: bump version to 9d4bda2 * openthread: update to release 20180926 * minmea: bump version to current master + nanocbor: Initial support for the nanocbor package * pkg/lua: Make the module searchers conform to the API Boards ------ + boards/stm32l0538-disco: add initial support + boards/nucleo-l4r5zi: initial basic support + boards/particle-{xenon,argon,boron}: add initial support * boards/kw41z: add common configuration and use it with existing kw41z boards + added SPI support for Nucleo-F767ZI + boards: Add support for the Arduino-Leonardo * boards/nucleof7*: SPI and refactoring + boards/stm32: introduce and use new common rtt configuration header + boards/stm32l0/l4: add rtt feature + boards: add support for i-nucleo-lrwan1 (Arduino-like shield) + boards/nrf52840-mdk: added I2C config + boards/lsn50: add support for Dragino LSN50 LoRa Sensor Node * boards/stm32l0: introduce common clock configuration and apply it to related boards * boards/b-l072z-lrwan1: use STM32 common i2C configuration + Add usbdev feature to Sodaq boards + boards/pba-d-01-kw2x: add riotboot support + sensebox: add usbdev feature + boards/stm32f429i-disc1: add i2c configuration + boards/nucleo-l476rg: add riotboot + boards/same54-xpro: add riotboot support + boards: Add FLASHFILE support + boards/nucleo-l476rg: Add DMA support + nrf52: Add suspend/resume detection to usbdev + nrf5x: Add UART modecfg feature implementation + boards/stm32f3: add support for riotboot feature + boards/lobaro-lorabox: add sx1272 radio driver dependency to netdev_default + boards/stm32l4: add riotboot support + boards/microbit: add QEMU emulation + boards/frdm-kw41z-k64f: add riotboot * boards/sltb001a: reset before flashing CPU --- * cpu/esp8266: added/changed helper functions + cpu/cc2538: Add periph_uart_mode implementation * saml1x: enable pm_layered by default + cpu/cc26x0: implement uart_mode() + cpu/sam0: add support for SAMD5x/SAME5x + sam0_common: add uart modecfg support + cpu/stm32f3: add support for flashpage and flashpage_raw * cpu/stm32l{1,4}: refactor flashpage numof macros * cpu/stm32: optimize stop mode for stm32f* * cpu/nrf5x_common: map hwrng to SoC library if SoftDevice is present Device Drivers -------------- + devfs: add /dev/urandom and /dev/hwrng * drivers/mrf24j40 : support of NETOPT_LAST_ED_LEVEL + drivers/mrf24j40: add external PA/LNA control on MC/MD/ME devices * drivers/at86rf2xx: enable NETOPT_RX_END_IRQ and fix RSSI values * drivers/adt7310: Replace binary literal with hex literal + drivers/ds75lx: add basic driver for temperature sensor + drivers/include: add header definition for wdt + drivers/at: Add 'at_recv_bytes_until_string' function + sx127x: add several NETOPT for GNRC LoRaWAN * drivers/sx127x: fix device reset + drivers: stm32 eth peripheral driver + drivers/periph/gpio_util: add gpio_util_shiftin() Build System / Tooling ---------------------- * makefiles/docker: export BOARDS + makefiles: add bootloaders to the list of applications * Makefile.include: allow overwriting flash-recipe * dist/tools/buildsystem_sanity_check: add an export variable check * sys/Makefile.include: include riotboot headers when FEATURES_REQUIRED=riotboot + make: add print-versions helper target + make: add LOG_LEVEL to overridable variables * riotboot/Makefile.include: increase RIOTBOOT_HDR_LEN for ARMv7*-M * dist/tools/build_system_sanity_check: BUG fix errors being ignored * boards/common: use Makefile.features + make: add termdeps target * periph_common: add as dependency to periph drivers + nrf52: Add USB peripheral driver + makefiles/boards.inc.mk: list boards variables + makefiles/app_dirs.inc.mk: target to list supported applications/boards + Makefile.features: add a common file for the features parsing + Makefile.features: add declarative FEATURES_ variables definition + makefiles/utils/variables: add functions to help managing variables * Migrate all boards to define FLASHFILE * tools/openocd.sh: try to probe the board for real flash address Testing ------- * tests/periph_flashpage: add RWWEE automatic test if hw supports it * tests/pthread_tls: allow negative key values * tests/gnrc_udp: include `gnrc_pktbuf_cmd` per default + tests/periph_hwrng: add automated python test * tests/periph_timer: include kw41z boards in low-power timer boards * tests/pkg_c25519: increase timeout for arduino-mega2560 + tests/xtimer_usleep: fail with negative offsets + unittests: add tsrb tests + tests/stdin: add non regression test for stdin module + tests/xtimer_mutex_lock_timeout: add simple case test + Add NimBLE heart rate sensor example (GATT notifications) * tests/driver_rn2xx3: fix invalid element index for txmode * tests/pkg_semtech-loramac: don't init the mac from main * tests/devfs: move tests-devfs out of unittests + examples/lorawan: fix semtech_loramac_send TX ret code * tests/unittests: split remaining packages tests to different test directory API Changes ======================== - uart_stdio RX is now optional - CPU_MODEL declared in boards/Makefile.features ```c - void isrpipe_init(isrpipe_t *isrpipe, char *buf, size_t bufsize); + void isrpipe_init(isrpipe_t *isrpipe, uint8_t *buf, size_t bufsize); - int isrpipe_write_one(isrpipe_t *isrpipe, char c); + int isrpipe_write_one(isrpipe_t *isrpipe, uint8_t c); - int isrpipe_read(isrpipe_t *isrpipe, char *buf, size_t count); + int isrpipe_read(isrpipe_t *isrpipe, uint8_t *buf, size_t count); - int isrpipe_read_timeout(isrpipe_t *isrpipe, char *buf, size_t count,\ int32_t timeout); + int isrpipe_read_timeout(isrpipe_t *isrpipe, uint8_t *buf, size_t count,\ uint32_t timeout); - int isrpipe_read_all_timeout(isrpipe_t *isrpipe, char *buf, size_t count,\ uint32_t timeout); + int isrpipe_read_all_timeout(isrpipe_t *isrpipe, uint8_t *buf, size_t count,\ uint32_t timeout); typedef struct tsrb { ... - char *buf; /**< Buffer to operate on. */ + uint8_t *buf; /**< Buffer to operate on. */ ... } tsrb_t - int tsrb_get(tsrb_t *rb, char *dst, size_t n); + int tsrb_get(tsrb_t *rb, uint8_t *dst, size_t n); - int tsrb_add_one(tsrb_t *rb, char c); + int tsrb_add_one(tsrb_t *rb, uint8_t c); - int tsrb_add(tsrb_t *rb, const char *src, size_t n); + int tsrb_add(tsrb_t *rb, const uint8_t *src, size_t n); typedef struct { ... - uint16_t (*calc_rank)(gnrc_rpl_parent_t *parent, uint16_t base_rank); - gnrc_rpl_parent_t *(*which_parent)(gnrc_rpl_parent_t *, gnrc_rpl_parent_t *); + uint16_t (*calc_rank)(gnrc_rpl_dodag_t *dodag, uint16_t base_rank); - void (*reset)(gnrc_rpl_dodag_t *); /**< resets the OF */ + void (*reset)(gnrc_rpl_dodag_t *dodag); ... - void (*init)(void); /**< OF specific init function */ + void (*init)(gnrc_rpl_dodag_t *dodag); } gnrc_rpl_of_t; - thread_state_t + thread_status_t - void sched_set_status(thread_t *process, thread_state_t status); + void sched_set_status(thread_t *process, thread_status_t status); struct _thread { ... - thread_state_t status; + thread_status_t status; ... } - bool mrf24j40_cca(mrf24j40_t *dev); + bool mrf24j40_cca(mrf24j40_t *dev, int8_t *rssi); ``` Deprecations ======================== Warnings -------- `gnrc_tftp` module `ubjson` module Removals -------- `gcoap_req_send()` replaced with `gcoap_req_send2()->gcoap_req_send2()` Known issues ============ Networking related issues ------------------------- address assertion or completely without error configured prefix chars address Timer related issues -------------------- time. _xtimer_now() and irq_disable() Drivers related issues ---------------------- clock cycles R21 supported Native related issues --------------------- log_printfnoformat Other platforms related issues ------------------------------ (not previous) boards CS LTO types Build system related issues --------------------------- bionic`. evaluation image Makefile.include value * buildtest with BUILD_IN_DOCKER hides host toolchain errors Other issues ------------ optimization in udp.c 10 static_asserts in the same scope everywhere Fixed Issues from the last release (2019.04) ============================================ and no error Acknowledgements ================ We would like to thank all companies that provided us with hardware for porting and testing RIOT-OS. Further thanks go to companies and institutions that directly sponsored development time. And finally, big thanks to all of you contributing in so many different ways to make RIOT worthwhile! A special thanks to @fjmolinas, @leandrolanzieri, @cladmi, @jia200x, @miri64 for helping run the release tests More information ================ http://www.riot-os.org Mailing lists ------------- * RIOT OS kernel developers list devel@riot-os.org (http://lists.riot-os.org/mailman/listinfo/devel) * RIOT OS users list users@riot-os.org (http://lists.riot-os.org/mailman/listinfo/users) * RIOT commits commits@riot-os.org (http://lists.riot-os.org/mailman/listinfo/commits) * Github notifications notifications@riot-os.org (http://lists.riot-os.org/mailman/listinfo/notifications) IRC --- * Join the RIOT IRC channel at: irc.freenode.net, #riot-os License ======= * The code developed by the RIOT community is licensed under the GNU Lesser General Public License (LGPL) version 2.1 as published by the Free Software Foundation. * Some external sources and packages are published under a separate license. All code files contain licensing information.
PreviousNext