All Versions
10
Latest Version
Avg Release Cycle
106 days
Latest Release
198 days ago

Changelog History

  • v1.11

    May 29, 2019

    🚀 In this release the mpy file format has been moved to version 4 and has some significant improvements: mpy file size is reduced on average by about 35%, loading time of mpy files is reduced by about 40%, and they now have support to save native, viper and inline assembler code (or machine code generated from any other source). Size reduction of mpy files was achieved by adding a qstr window to reuse past qstrs when encoding them, by packing qstrs directly in the bytecode, and by defining a static qstr set.

    Some VM opcodes were also changed to fix a bug when doing a break/continue out of a finally block, and to make some simplifications. In particular POP_BLOCK and POP_EXCEPT opcodes were replaced with POP_EXCEPT_JUMP.

    Most uppercase macros have been converted to lowercase to make a more consistent C API, including all MP_OBJ_IS_xxx and MP_xxx_SLOT_IS_FILLED macros.

    0️⃣ The default PYTHON makefile variable is now changed from "python" to "python3", but Python 2 is still supported via "make PYTHON=python2".

    🖨 The mpy-cross compiler supports the new mpy version 4 and has new command line options: "-march=" to select the native emitter, and "--version" to print the MicroPython version and the mpy version. Also mpy-tool.py has support for freezing native code.

    📚 A module system for external, user C modules has been implemented and documentation for this is available in the new "docs/develop" section.

    💻 A new "javascript" port has been added which targets JavaScript as the machine via Emscripten. This allows to run MicroPython as an application within node.js, and to run it within a browser (among other things).

    All bare-metal ports have the following improvements: machine.sleep() is now machine.lightsleep(), and both lightsleep() and deepsleep() now take an optional argument which is the maximum time to sleep in milliseconds. These ports also now allow freezing of boot.py and main.py using the usual methods. And a new I2C method i2c.writevto(addr, vect) is added which can be used to write a tuple/list of buffers all at once to an I2C device.

    👀 The stm32 port now has a fully integrated Ethernet MAC driver (see the network.LAN class) using lwIP for the TCP/IP stack, and sockets were made significantly more robust. Support for F413 MCUs was added. There are also some minor user-facing changes to this port:

    • 0️⃣ machine.UART (and pyb.UART) now defaults to timeout=0 (was 1000ms) which gives UARTs a non-blocking behaviour.
    • 🔧 The USB REPL is now configurable using uos.dupterm, and by default pyb.USB_VCP(0) is put on dupterm slot 1 before boot.py is executed. To disable the default REPL use: uos.dupterm(None, 1).
    • pyb.DAC(id) will now only reset the DAC the first time it is called; to get the old behaviour pass the bits parameter like: pyb.DAC(id, bits).
    • pyb.DAC.noise() and pyb.DAC.triangle() now output at full scale.
    • The system will not recreate boot.py if it's missing (it will only create it if the filesystem is corrupt, or when doing a factory reset).

    ⚡️ For the esp32 port, the build process has been updated to align better with the ESP IDF and now uses sdkconfig to configure features. Dual core mode is now enabled by default, SPIRAM is in memory-mapped mode so all of it can be used for the MicroPython heap, there is support to change the CPU frequency, and the WDT now panics and resets the device if it times out.

    A detailed list of changes follows.

    py core:

    • ✂ remove calls to file reader functions when these are disabled
    • ➕ add optional support for 2-argument version of built-in next()
    • compile: swap order of pop_block/pop_except in "except as" handler
    • ⚠ warning: support categories for warnings
    • 🖨 builtinhelp: only print help re FS modules if external import enabled
    • downcase all MP_OBJ_IS_xxx macros to make a more consistent C API
    • downcase MP_xxx_SLOT_IS_FILLED inline functions
    • 0️⃣ mkenv.mk: change default PYTHON variable from "python" to "python3"
    • qstr: evaluate find_qstr only once then pass to Q_GET_HASH macro
    • obj.h: remove obsolete mp_obj_new_fun_viper() declaration
    • objfun: make fun_data arg of mp_obj_new_fun_asm() a const pointer
    • ⚠ eliminate warnings about unused arguments when debugging disabled
    • 👀 compile: fix handling of unwinding BaseException in async with
    • compile: add optimisation to compile OrderedDict inplace
    • objexcept: fix hash of exc str created in mp_obj_new_exception_msg
    • ⚡️ py.mk: update lwip build config to work with latest lwip version
    • 🛠 fix VM crash with unwinding jump out of a finally block
    • vm: remove currently_in_except_block variable
    • replace POP_BLOCK and POP_EXCEPT opcodes with POP_EXCEPT_JUMP
    • persistentcode: add a qstr window to save mpy files more efficiently
    • persistentcode: pack qstrs directly in bytecode to reduce mpy size
    • persistentcode: define static qstr set to reduce size of mpy files
    • ➕ add independent config for debugging sentinel object values
    • emitnative: consolidate where HASCONSTS is set to load-const-obj fun
    • emitnative: provide concentrated points of qstr emit
    • emitnative: adjust accounting of size of const_table
    • emitglue: remove union in mp_raw_code_t to combine bytecode & native
    • ➕ add support to save native, viper and asm code to .mpy files
    • persistentcode: bump .mpy version to 4
    • 👍 allow registration of modules at their definition
    • implement a module system for external, user C modules
    • ⚡️ update and rework build system for including external C modules
    • move mp_native_type_from_qstr() from emitnative.c to nativeglue.c
    • nativeglue: rename native convert funs to match other native helpers
    • 👍 compile: add support to select the native emitter at runtime
    • 👍 compile: support multiple inline asm emitters
    • compile: check that arch is set when compiling native, viper or asm
    • 🚚 runtime: remove long-obsolete MICROPY_FSUSERMOUNT init code
    • ⏱ scheduler: convert micropythyon.schedule() to a circular buffer
    • nlrthumb: add support for iOS where the C func is _nlr_push_tail
    • 👉 makedefs: use io.open with utf-8 encoding when processing source
    • ⚙ runtime: optimise to not create temp float for int to power negative
    • runtime: fix mp_unpack_ex so seq can't be reclaimed by GC during use
    • 🖨 mpprint: support printing %ld and %lu formats on 64-bit archs
    • 👍 asmthumb: support asm_thumb code running on normal ARM processors
    • 👍 native: improve support for bool type in viper functions
    • ✂ remove "if (0)" and "if (false)" branches
    • objgenerator: fix handling of None passed as 2nd arg to throw()
    • 🚚 objgenerator: remove unneeded forward decl and clean up white space
    • misc.h: rename _MP_STRINGIFY to not use leading underscore in ident
    • persistentcode: change "len" type to size_t for mp_obj_str_get_data
    • 👍 objarray: add support for memoryview.itemsize attribute
    • objarray: add decode method to bytearray
    • ⚡️ update makefiles to use $(CAT) variable instead of hard coded "cat"
    • ⚡️ update makefiles to use $(TOUCH) instead of hard coded "touch"

    extmod:

    • ⚡️ moduzlib: update to uzlib 2.9.2
    • 👍 modlwip: add support for polling UDP sockets for writability
    • moduhashlib: include implementation of sha256 only when required
    • convert legacy uppercase macro names to lowercase
    • ♻️ moduwebsocket: refactor websocket to uwebsocket
    • modlwip: change #ifdef to #if for check of MICROPY_PY_LWIP
    • modlwip: fix bug when polling listening socket with backlog=1
    • modlwip: add concurrency protection macros
    • modwebrepl: fix logic to handle a put of file of size 0
    • ⚡️ vfs_fat: update for new oofatfs version
    • 🚀 modlwip: fix case where concurrency lock isn't released on error
    • 📊 moduselect: adjust select_select and poll_register to use size_t
    • vfs_fat: fallback to FAT32 if standard FAT16/SFD format fails
    • modlwip: handle case of connection closing while on accept queue
    • modlwip: handle case of accept callback called with null PCB
    • 🔒 modlwip: protect socket.accept with lwIP concurrency lock
    • 🆓 modlwip: free any stored incoming bufs/connections on TCP error
    • modlwip: use correct listening socket object in accept callback
    • modlwip: abort TCP conns that didn't close cleanly in a while
    • 👀 modurandom: add init method to seed the Yasmarang generator
    • 🚦 machine_signal: fix fault when no args are passed to Signal()
    • 👍 modussl_mbedtls: support non-blocking handshake
    • 👍 modussl_axtls: add non-blocking mode support
    • 👍 moducryptolib: add optional AES-CTR support
    • 📜 modujson: handle parsing of floats with + in the exponent
    • machine_i2c: change C-level API to allow split I2C transactions
    • 🚚 machine_i2c: remove need for temporary memory in writemem() call
    • machine_i2c: add i2c.writevto() that can write a vector of bufs
    • 🆓 modlwip: free any incoming bufs/connections before closing PCB
    • ⏱ modlwip: register TCP close-timeout callback before closing PCB

    lib:

    • utils/pyexec: implement paste mode with event driven REPL
    • utils/printf: exclude __GI_vsnprintf alias for gcc 9 and above
    • utils/gchelper_m3: add license header and clean up code
    • utils/gchelper_m3: add gc_helper_get_sp() function
    • utils/gchelper: add gchelper.h header file for assembler functions
    • 🖨 netutils: add function to print tracing info for Ethernet frames
    • ⚡️ oofatfs: update oofatfs library to R0.13c working branch
    • ⚡️ oofatfs: update ffconf.h config for new oofatfs version
    • ⚡️ oofatfs: update oofatfs library to fix issue with logic not
    • ⚡️ stm32lib: update library to fix F7 MMC capacity calculation
    • utils/pyexec: add pyexec_file_if_exists() helper function
    • utils: make pyexec_file_if_exists run frozen scripts if they exist
    • utils/interrupt_char: invalidate interrupt char at start up
    • ⚡️ stm32lib: update library to fix UART9/10 baudrate on F4 MCUs
    • ⬆️ nrfx: upgrade nrfx to v1.7.1 plus a UART bug fix

    drivers:

    • memory/spiflash: rework wait_sr to fix uninit'd variable 'sr'
    • display/ssd1306.py: change to use new i2c.writevto() method

    tools:

    • 👍 mpy-tool.py: add support for freezing native code
    • upip.py: use "raise arg" instead of no-arg raise form, for native
    • pyboard.py: add missing line from example usage comments
    • mpy-tool.py: adjust use of super() to make it work with Python 2
    • 🚚 mpy-tool.py: fix init of QStrWindow, and remove unused variable
    • pyboard.py: don't accumulate output data if data_consumer used
    • 0️⃣ upip.py: add support for multiple index URLs with custom default

    ✅ tests:

    • ✅ basics: add tests for try-except-else and try-except-else-finally
    • ✅ run-tests: support running native tests via mpy
    • ✅ import: add test for importing x64 native code
    • ✅ extmod: add test for FAT filesystem on a very large block device
    • ✅ run-tests: ignore exception in process kill when ending repl test
    • ✅ micropython: add some tests for failed heap allocation
    • ✅ skip tests needing machine module if (u)machine doesn't exist
    • ussl_basic: disable setblocking() calls
    • ✅ basics/sys1.py: add test for calling sys.exit() without any args
    • ⚡️ pyb: update UART expected output now that default timeout is 0
    • ✅ basics: add coverage tests for memoryview attributes

    mpy-cross:

    • 🏗 enable building of x64 native .mpy files
    • ➕ add "-march=" option to select native emitter
    • support compiling with MICROPY_PY___FILE__ enabled
    • automatically select ARMV6 arch when running on such a host
    • ➕ add --version command line option to print version info

    all ports:

    • 🔄 change PYB message prefix to MPY
    • convert legacy uppercase macro names to lowercase
    • ⚡️ update to work with new oofatfs version
    • {stm32,esp8266}: set mpy-cross native arch for frozen native code
    • convert to use pyexec_file_if_exists() to execute boot/main.py

    unix port:

    • mpthreadport: add thread deinit code to stop threads on exit
    • mpthreadport: cleanup used memory on thread exit
    • 🚚 mpthreadport: remove busy wait loop in thread garbage collection
    • modmachine: handle repeated /dev/mem open errors
    • ⚠ modffi: eliminate unused-argument warning when debugging disabled
    • ⚡️ Makefile: update coverage tests to match those in Travis
    • mpthreadport: use named semaphores on Mac OS X
    • gcollect: make sure stack/regs get captured properly for GC
    • ✅ coverage: add test for printing literal % character
    • modusocket: fix use of setsockopt in usocket.settimeout impl
    • ⏱ modusocket: raise ETIMEDOUT when connect or accept has timeout

    🏁 windows port:

    • 🛠 fix line wrapping behaviour on the REPL

    qemu-arm port:

    • rework to run bare-metal on boards with Cortex-M CPUs
    • 👉 use gchelper code to get registers for GC scanning

    stm32 port:

    • implement machine.lightsleep()
    • ✅ rtc: check RTCEN=1 when testing if RTC is already running on boot
    • usbdev: add USB config option for board being self powered
    • usbdev: add USB config option for max power drawn by the board
    • main: make board-defined UART REPL use a static object and buffer
    • ✏️ boards/stm32f429_af.csv: fix typos in UART defs Tx->TX and Rx->RX
    • mboot: add option to autodetect the USB port that DFU uses
    • sdcard: don't use SD clock bypass on F7 MCUs
    • usb: add flow control option for USB VCP data received from host
    • 👍 boards/make-pins.py: add basic support for STM32H7 ADC periphs
    • 📌 boards/stm32h743_af.csv: add ADC entries to pin capability table
    • 📌 adc: add basic support for ADC on a pin on STM32H7 MCUs
    • mboot: use USB HS as main USB device regardless of USB_HS_IN_FS
    • 👍 mboot: add support for STM32F769 MCUs
    • 👍 mboot: add support for GPIO ports G, H, I and J
    • 🚀 mboot: allow deploying via deploy-stlink
    • usb: use USB HS as main USB device regardless of USB_HS_IN_FS
    • 👍 usbd_conf: fully support USB HS with external PHY
    • modmachine: make bootloader() enter custom loader if it's enabled
    • 👍 boards/STM32F769DISC: support the use of USB HS with external PHY
    • 🔧 boards/STM32F769DISC: configure for use with mboot by default
    • systick: rename sys_tick_XXX functions to systick_XXX
    • systick: make periodic systick callbacks use a cyclic func table
    • pendsv: clean up pendsv IRQ handler and eliminate duplicate code
    • ⏱ pendsv: add ability to schedule callbacks at pendsv IRQ level
    • 🔧 systick: provide better compile-time configurability of slots
    • modnetwork: change lwIP polling to be based on background systick
    • 🚚 move gchelper assembler code to lib/utils for use by other ports
    • gccollect: use gchelper.h header instead of explicit declaration
    • pendsv: fix inline asm constant and prefix with # character
    • 👍 mboot/Makefile: support specifying BOARD_DIR for custom board
    • 👍 boards/NUCLEO_L476RG: add support for RNG, DAC and CAN1
    • 👍 boards/make-pins.py: add cmdline options to support use by mboot
    • 📌 mboot/Makefile: generate all pin header files from board pins.csv
    • 📌 mboot/mphalport.h: include genhdr/pins.h for access to pin names
    • 🔧 qspi: use static af functions for pin configuration
    • 👍 mboot: add support for loading gzip'd firmware from a filesystem
    • 🚚 mboot: move some BSS vars to new section that isn't zeroed out
    • 👍 mboot: add support script which can program mboot and application
    • modmachine: add ability to pass through user data to mboot
    • mboot: add hook to run board-specific code early on startup
    • boards/stm32f429.ld: increase uPy heap size by 64k for F429 MCU
    • extint: fix ExtInt to work with non-GPIO pins
    • extint: fix RTC Alarm/FS USB EXTI constants for L4
    • 📜 make-stmconst.py: improve regex to parse more constants
    • extint: add non-GPIO EXTI IRQ sources for F0
    • 🚚 extint: remove unused (and incorrect) EXTI defines
    • stm32_it: fix RTC IRQ handler to handle all EXTI IRQs on F0 MCUs
    • sdram: increase GPIO speed for SDRAM interface to "very high"
    • boards/NUCLEO_F767ZI: fix up comments about HCLK computation
    • mphalport: add mp_hal_get_mac() helper function
    • eth: add low-level Ethernet MAC driver
    • network_lan: add high-level network.LAN interface to ETH driver
    • mpconfigport.h: enable lwIP concurrency protection mechanism
    • modnetwork: don't call NIC callback if it's NULL
    • boards/NUCLEO_F767ZI: enable lwIP and Ethernet peripheral
    • boards/STM32F7DISC: enable lwIP and Ethernet peripheral
    • boards/STM32F769DISC: enable lwIP and Ethernet peripheral
    • boards/NUCLEO_F429ZI: enable lwIP and Ethernet peripheral
    • ⏱ qspi: enable sample shift and disable timeout counter
    • 👉 Makefile: allow a board to specify its linker sections for FW
    • boards/STM32F769DISC: use external QSPI flash to store some code
    • 🏗 use global lwip build config and support building without lwip
    • ⚡️ boards: update to use new build config for lwip component
    • ➕ add compile-time option to use HSI as clock source
    • ⚡️ mboot: update to match latest oofatfs version
    • 👍 allow to build with threading with the GIL disabled
    • 📌 qspi: set pin speed to very-high and allow to config some options
    • usb: allow to override USB strings & VID/PID in app and mboot
    • stm32_it: guard UART7_IRQHandler with check for UART7 define
    • 0️⃣ mboot: set USE_MBOOT=1 by default in the Makefile
    • 0️⃣ system_stm32: provide default value for HSI calibration
    • 🚚 mpconfigport.h: remove malloc/free/realloc helper macros
    • 👍 boards/STM32L476DISC: enable servo support on STM32L476DISC board
    • 👉 Makefile: allow to override CROSS_COMPILE with included Makefile
    • 0️⃣ make default USB_VCP stream go through uos.dupterm for main REPL
    • timer: expose the PWM BRK capability of Timer 1 and 8
    • uart: handle correctly the char overrun case of RXNE=0 and ORE=1
    • rename MICROPY_HW_HAS_SDCARD to MICROPY_HW_ENABLE_SDCARD
    • ➕ add support for MMC driver, exposed via pyb.MMCard class
    • moduos: allow to compile again without USB enabled
    • network_wiznet5k: add ability to trace Ethernet TX and RX frames
    • network_wiznet5k: add ability to set the MAC address
    • network_wiznet5k: automatically set MAC if device doesn't have one
    • 👍 i2cslave: add support for H7 MCUs
    • 👍 usbd_conf: add support for USB HS peripheral on H7 MCUs
    • 👍 mboot: add support for H7 MCUs, with H743 flash layout
    • 👍 boards/NUCLEO_H743ZI: add config options to support mboot
    • 0️⃣ boards/NUCLEO_L432KC: disable complex nos and default frozen mods
    • rtc: add auto-LSE-bypass detection with fallback to LSE then LSI
    • 🚚 rtc: remove unused LSE detection code
    • 🚚 rtc: remove non-ASCII mu-character from source code comment
    • timer: correctly initialise extended break settings on F7/H7/L4
    • system_stm32f0: enable PWR clock on startup
    • 👍 system_stm32f0: add support for using HSE and PLL as SYSCLK
    • powerctrl: enable EIWUP to ensure RTC wakes device from standby
    • dac: rework DAC driver to use direct register access
    • usbdev: make USB device descriptors at runtime rather than static
    • usb: add USB device mode for VCP+VCP without MSC
    • powerctrl: deselect PLLSAI as 48MHz src before turning off PLLSAI
    • usb: remove mp_hal_set_interrupt_char now that it's reset at boot
    • 0️⃣ main: increase default UART REPL rx buffer from 64 to 260 bytes
    • 👍 powerctrl: support changing frequency when HSI is clock source
    • flash: fix bug computing page number for L432 page erase
    • ➕ add support for F413 MCUs
    • 🔧 boards: add NUCLEO_F413ZH board configuration
    • 0️⃣ machine_uart: change default UART timeout to 0, for non blocking
    • 🚚 move factory reset files and code to separate source file
    • usbd_cdc_interface: don't retransmit chars if USB is reconnected
    • rtc: allow overriding startup timeouts from mpconfigboard
    • dma: initialise all members of DMA structs for H7 MCUs
    • 🔧 dma: always reset and configure the H7 DMA peripheral
    • spi: enable SPI IRQs and add IRQHandlers for H7 MCUs
    • irq: fix IRQ_ENABLE_STATS stats config to work on all MCUs
    • boards/NUCLEO_H743ZI: enable SPI3 on this board
    • modmachine: create dedicated asm function to branch to bootloader
    • adc: fix VBAT_DIV to be 4 for STM32F411
    • ⚡️ machine_i2c: update to support new C-level I2C API
    • 🔧 i2c: make timeout for hardware I2C configurable
    • machine_i2c: simplify ROM initialisation of static HW I2C objects
    • 👍 i2c: support setting the I2C TIMINGR value via keyword arg
    • sdcard: add switch break to ensure only correct SD/MMC IRQ is run
    • ⚡️ sdram: update MPU settings to block invalid region, change attrs
    • ⚡️ mboot/README: fix some typos, describe bootloader and fwupdate.py
    • modmachine: in bootloader() disable caches before reset of periphs

    cc3200 port:

    • mods/modussl: fix ca_certs arg validation in mod_ssl_wrap_socket
    • modmachine: rename machine.sleep to machine.lightsleep
    • 👉 use common gchelper_m3.s code from lib/utils
    • mpconfigport.h: disable compiler optimisation of OrderedDict

    esp8266 port:

    • modmachine: implement optional time_ms arg to machine.deepsleep
    • modmachine: rename machine.sleep to machine.lightsleep
    • modmachine: implement simple machine.lightsleep function
    • modmachine: in lightsleep, only waiti if wifi is turned off
    • modmachine: call ets_event_poll after waiti in machine.idle
    • modmachine: handle overflow of timer to get longer periods
    • 🛠 fix ticks_ms to correctly handle wraparound of system counter

    esp32 port:

    • ⏱ don't put py/scheduler.o in iRAM, it's no longer needed
    • 👉 Makefile: put all IDF compenents in .a libs to use IDF ld script
    • ⚡️ update to latest ESP IDF using sdkconfig and new ldgen procedure
    • machine_timer: deinit all active timers on soft reset
    • 👉 Makefile: make sure that directory exists for sdkconfig.h
    • 0️⃣ boards: use auto xtal freq config instead of default 40MHz
    • modsocket: fix crashes when connect/bind can't resolve given addr
    • modmachine: rename machine.sleep to machine.lightsleep
    • 👉 use SPIRAM in mem-map mode so all of it can be used for uPy heap
    • 👍 modmachine: add support for changing the CPU frequency
    • modsocket: fix usocket.send to accept anything with buffer proto
    • modsocket: change socket.socket to be socket type rather than fun
    • network_lan: add arg to constructor to set clock mode for ETH PHY
    • modnetwork: catch and report Ethernet events
    • network_lan: make power arg to constructor optional
    • modnetwork: fix wifi.isconnected to return False after disconnect
    • modnetwork: implement RSSI for WiFi STA via WLAN.status('rssi')
    • 🚚 modnetwork: remove redundant esp_log include
    • 👉 Makefile: add some missing IDF source files to bootloader and app
    • mphalport: use ets_delay_us for mp_hal_delay_us_fast
    • machine_pin: make it so None as pull value disables pull up/down
    • 📌 machine_pin: add new PULL_HOLD pin pull mode
    • machine_pin: rework pull mode config to fix GPIO hold feature
    • mpthreadport: exit vPortCleanUpTCB early if threading not init'd
    • 0️⃣ boards: enable dual core support by default
    • boards/sdkconfig: disable WDT check of idle task on CPU1
    • 📜 README: add info about pyparsing and the correct Python version
    • ⏱ machine_wdt: add timeout arg to select interval, make WDT panic
    • modnetwork: change type to size_t for uses of mp_obj_str_get_data
    • machine_uart: implement UART.deinit() method
    • ⏱ network_ppp: add a timeout for closing PPP connection
    • machine_touchpad: use HW timer for FSM to enable wake-on-touch
    • modsocket: raise EAGAIN when accept fails in non-blocking mode

    javascript port:

    • ➕ add new port targeting JavaScript via Emscripten
    • 🛠 fix Emscripten async load, and to compile with modern clang
    • 🗄 library: use Buffer.alloc() since new Buffer() is deprecated
    • pass (error) exit value out from script to process caller
    • 👉 Makefile: fix unrepresentable float error by using clamp
    • 🖨 library: print data as raw bytes to stdout so unicode works

    nrf port:

    • modmachine: rename machine.sleep to machine.lightsleep
    • uart: use formula instead of switch for baudrate calculation
    • 🚚 uart: remove unused machine.UART() parameters
    • shrink " does not exist" error messages
    • pin: cleanup Pin. str to print relevant information
    • pin: print pull information in Pin. str
    • ticker: remove duplicate NRFX_IRQ_PRIORITY_SET
    • timer: fix disabling Timer 1 when using soft PWM
    • ⚡️ readme: update link to nrfjprog download
    • bluetooth: improve advertisment behavior for nrf52 targets
    • ⚠ bluetooth: resolve compilation warning in ble_drv.c
    • ⚡️ readme: update make flash command when defining board
    • pwm: remove superfluous NULL in machine_hard_pwm_instances
    • 👍 bluetooth: add support for SoftDevice s132 version 6.1.1
    • board: migrate all nrf52832 targets to new BLE stack
    • 🗄 bluetooth: deprecate use of SoftDevice s132 v6.0.0
    • 👍 bluetooth: add support for SoftDevice s140 version 6.1.1
    • board: migrate nrf52840 target to new BLE stack
    • 🗄 bluetooth: deprecate use of SoftDevice s140 v6.0.0
    • readme: add section about LTO
    • ⚡️ Makefile: update to match latest oofatfs version
    • 👍 boards: add support for BLYST Nano module based boards
    • change types to size_t for all uses of mp_obj_str_get_data
    • ⚡️ machine/i2c: update to support new C-level I2C API
    • nrfx_glue: adapt to nrfx v.1.7.1
    • uart: change UART driver to be non-blocking and use IRQs
    • mpconfigport.h: enable MICROPY_KBD_EXCEPTION by default
    • 🖨 uart: make UART print output something, and add write method
    • mphalport: use wfi to save power while waiting at the UART REPL

    zephyr port:

    • modzephyr: revamp stacks_analyze() call
    • modzsensor: rename "TEMP" sensor channel to "DIE_TEMP"
    • prj_minimal.conf: switch to CONFIG_STDOUT_CONSOLE
    • Makefile: proxy ram_report, rom_report targets from Zephyr
    • prj_frdm_k64f.conf: add fxos8700 sensor
    • prj_frdm_kw41z.conf: add new board configuration
    • 👍 i2c: add support for hardware i2c
    • CMakeLists.txt: set AR to point to the Zephyr toolchain exe
    • ⚡️ machine_i2c: update to support new C-level I2C API
    • switch back to enabling I2C in board-specific configs

    📄 docs:

    • ⏱ machine: change sleep to lightsleep and add timeout arguments
    • convert all cases of machine.sleep to machine.lightsleep
    • ure: fix match.group signature to indicate index param is required
    • uos: document extra requirements on stream objs passed to dupterm
    • pyboard: add link to pyboard v1.1 schematic and layout PDF
    • 0️⃣ pyboard: make pyboard v1.1 pinout the default shown in quickref
    • ➕ develop: fix typos in C-module example for example_add_ints
    • 📌 library/machine.Pin: add PULL_HOLD constant to possible pin pulls
    • 📌 esp32: add a note to quickref about use of Pin.PULL_HOLD
    • 📌 esp32: add example for pin isolation in combination with deepsleep
    • 🚚 develop: remove paragraph that was copied in error from other doc
    • cmodules: fix example to globally define MODULE_EXAMPLE_ENABLED
    • cmodules: note the various ways MODULE_EXAMPLE_ENABLED can be set
    • esp8266: add tutorial for APA102 LEDs
    • 0️⃣ esp32: correct quickref for ESP32 hardware SPI with non-default IO
    • machine.I2C: add writevto method to write a vector of byte bufs
    • pyboard/quickref: refer to new machine.I2C instead of old pyb.I2C

    travis:

    • ⚡️ update to use Ubuntu 16.04 Xenial for CI builds
    • ✅ enable test for running native code via mpy
  • v1.10

    January 25, 2019

    🚀 In this release there are a wide range of improvements and additions to both the core and the ports. In the core the main improvement was to the native emitter to have much more comprehensive support for general Python features, such as generators and complex exception handling, and the generated machine code is smaller and retains its efficiency. Elsewhere, fuzzy testing was used to find and eliminate some corner-case bugs, user classes were optimised when they don't use special accessors, underscores in numeric literals are now supported (PEP515), and the uio.IOBase class was added to allow user defined streams.

    👍 For the extended modules there is now a VfsPosix filesystem component, a new ucryptolib module with AES support, addition of ure.sub() and of uhashlib.md5, and the lwIP socket implementation now has working TCP listen/accept backlog.

    🚀 Compared to the last release the minimal baseline core code size is reduced by about 2.2%, down by roughly 1500 bytes for bare-arm port and 3500 bytes for minimal x86 port. Most other ports have increased in size due to the addition of new features (eg ucryptolib, ure.sub).

    ♻️ The stm32 port sees the introduction of a new bootloader -- mboot -- which supports DFU upload via USB FS, USB HS, as well as a custom I2C protocol, and also support to program external SPI flash. There is significant refactoring of the USB device driver, improved VCP throughput, and support for 2x VCP interfaces on the one USB device. lwIP has been integrated, and support added for SDRAM. Cortex-M0 CPUs are now supported along with STM32F0 MCUs.

    🔧 For the esp8266 port the heap is increased by 2kbytes, the radio is automatically put to sleep if no WLAN interfaces are active, and the UART can now be disconnected from the REPL and its RX buffer length configured. Upon soft-reset sockets are now cleaned up.

    🐎 The esp32 port has added support for external SPI RAM, PPPoS functionality, improved performance and stability when using threads, and other general bug fixes.

    👍 There is a new nrf port for Nordic MCUs, currently supporting nRF51x and nRF52x chips.

    📚 The docs have now been unified so there is just one set of documentation covering all ports. And initial documentation for the esp32 port is added.

    There are two changes at the Python API level that are not backwards with previous versions:

    • uos.dupterm now requires that a stream passed to it is derived from uio.IOBase (or is a native stream object).
    • ⚡️ The esp32 neopixel driver has had its default timing changed from 400kHz to 800kHz; existing code that didn't explicitly specify the "timing" parameter in the NeoPixel constructor may need to be updated to specify this as "timing=0" to get 400kHz timing.

    A detailed list of changes follows.

    py core:

    • mpconfig.h: be stricter when autodetecting machine endianness
    • mpstate.h: adjust start of root pointer section to exclude non-ptrs
    • nlrx86: use naked attribute on nlr_push for gcc 8.0 and higher
    • vm: adjust #if logic for gil_divisor so braces are balanced
    • objfun: fix variable name in DECODE_CODESTATE_SIZE() macro
    • vm: use enum names instead of magic numbers in multi-opcode dispatch
    • 🐎 vm: improve performance of opcode dispatch when using switch stmt
    • repl: fix handling of unmatched brackets and unfinished quotes
    • misc.h: add MP_STATIC_ASSERT macro to do static assertions
    • compile: change comment about ITER_BUF_NSLOTS to a static assertion
    • emitbc: avoid undefined behavior calling memset() with NULL 1st arg
    • parsenum: use int instead of mp_int_t for parsing float exponent
    • 📜 parsenum: avoid undefined behavior parsing floats with large exponents
    • objfloat: fix undefined shifting behavior in high-quality float hash
    • mpz: avoid undefined behavior at integer overflow in mpz_hash
    • objfloat: fix undefined integer behavior hashing negative zero
    • gc: when GC threshold is hit don't unnecessarily collect twice
    • 📜 parsenum: adjust braces so they are balanced
    • 👍 modbuiltins: add support for rounding integers
    • objgenerator: save state in old_globals instead of local variable
    • objgenerator: protect against reentering a generator
    • emit: combine fast and deref into one function for load/store/delete
    • emit: combine yield value and yield-from emit funcs into one
    • 🏗 emit: combine build tuple/list/map emit funcs into one
    • emit: combine name and global into one func for load/store/delete
    • emit: combine load/store/delete subscr into one emit function
    • emit: combine load/store/delete attr into one emit function
    • emit: combine break_loop and continue_loop into one emit function
    • emit: combine import from/name/star into one emit function
    • 🏗 emit: merge build set/slice into existing build emit function
    • emit: combine setup with/except/finally into one emit function
    • objtype: fix assertion failures in mp_obj_new_type by checking types
    • objtype: fix assertion failures in super_attr by checking type
    • stream: move definition of mp_stream_p_t from obj.h to stream.h
    • reader: allow MICROPY_VFS_POSIX to work with MICROPY_READER_POSIX
    • mpconfig.h: add default MICROPY_VFS_FAT config value
    • obj.h: introduce a "flags" entry in mp_obj_type_t
    • objtype: don't expose mp_obj_instance_attr()
    • objtype: optimise instance get/set/del by skipping special accessors
    • gc: add gc_sweep_all() function to run all remaining finalisers
    • 👍 lexer: add support for underscores in numeric literals
    • modio: add uio.IOBase class to allow to define user streams
    • mkrules.mk: regenerate all qstrs when config files change
    • stream: introduce and use efficient mp_get_stream to access stream_p
    • objarray: replace 0x80 with new MP_OBJ_ARRAY_TYPECODE_FLAG_RW macro
    • ➕ add checks for stream objects in print() and sys.print_exception()
    • compile: combine break and continue compile functions
    • compile: combine subscript_2 and subscript_3 into one function
    • compile: combine global and nonlocal statement compile functions
    • ✅ compile: combine or_test and and_test compile functions
    • compile: combine expr, xor_expr and and_expr into one function
    • compile: handle return/break/continue correctly in async with
    • objgenerator: eliminate need for mp_obj_gen_wrap wrapper instances
    • 🏗 obj.h: fix broken build for object repr C when float disabled
    • simplify some cases of accessing the map of module and type dict
    • objdict: make mp_obj_dict_get_map an inline function
    • objmodule: make mp_obj_module_get_globals an inline function
    • obj.h: give compile error if using obj repr D with single-prec float
    • ⚠ malloc: give a compile warning if using finaliser without GC
    • objgenerator: implement name with normal fun attr accessor code
    • 🏗 emitnative: optimise for iteration asm code for non-debug build
    • runtime: use mp_obj_new_int_from_ll when return int is not small
    • stream: introduce MP_STREAM_GET_FILENO ioctl request
    • objstr: in format error message, use common string with %s for type
    • asmthumb: optimise native code calling runtime glue functions
    • mpconfig.h: introduce MICROPY_DEBUG_PRINTER for debugging output
    • 🛠 fix compiling with debug enabled and make more use of DEBUG_printf
    • emitnative: factor common code for native jump helper
    • emitnative: fix x86 native zero checks by comparing full word
    • asmx86: use generic emit function to simplify cmp emit function
    • emitnative: fix native locals stack to start at correct location
    • emitnative: simplify handling of exception objects from nlr_buf_t
    • emitnative: allocate space for local stack info as it's needed
    • compile: for dynamic compiler, widen literal 1 to get correct shift
    • py.mk: don't hardcode path to libaxtls.a
    • gc: in gc_alloc, reset n_free var right before search for free mem
    • 🏗 objarray: allow to build again when bytearray is disabled
    • stream: adjust mp_stream_posix_XXX to take void*, not mp_obj_t
    • emitnative: use small tables to simplify handling of local regs
    • asmxtensa: handle function entry/exit when stack use larger than 127
    • 👍 asm*: support assembling code to jump to a register, and get PC+off
    • 👻 emitnative: optimise and improve exception handling in native code
    • asmxtensa: fix bug with order of regs in addi encoding
    • 👍 asmxtensa: optimise loading local addr and support larger offsets
    • emitnative: fix bug with store of 16 and 32 values in viper ARM mode
    • asmxtensa: use narrow version of add instr to reduce native code size
    • emitnx86: fix number of args passed to mp_setup_code_state, 4 not 5
    • vm: fix handling of finally-return with complex nested finallys
    • 👻 emitnative: cancel caught exception once handled to prevent reraise
    • 👍 emitnative: add support for return/break/continue in try and with
    • 👻 compile: factor code that compiles start/end of exception handler
    • 🏗 py.mk: build axtls library directly from its source files
    • runtime: fix incorrect test for MICROPY_PORT_DEINIT_FUNC
    • objarray: bytearray: allow 2nd/3rd arg to constructor
    • emitnative: fix try-finally in outer scope, so finally is cancelled
    • 🛠 fix native functions so they run with their correct globals context
    • optimise call to mp_arg_check_num by compressing fun signature
    • asmx64: fix bug in assembler when creating disp with r13 and 0 offset
    • {asmx86,asmx64}: extend test_r8_with_r8 to accept all 8 lower regs
    • emit: move MP_EMIT_OPT_xxx enums from compile.h to emitglue.h
    • emit: remove need to call set_native_type to set native/viper mode
    • emit: remove need to call set_native_type to set viper return type
    • emit: completely remove set_native_type, arg type is set in compiler
    • 🔀 compile: merge viper annotation and normal param compilation stages
    • compile: factor code that compiles viper type annotations
    • emitnative: reuse mp_native_type_from_qstr when searching for a cast
    • 👉 make viper functions have the same entry signature as native
    • 👍 emitnative: support arbitrary number of arguments to viper functions
    • emitnative: use macros instead of raw offsetof for slot locations
    • emitnative: make viper funcs run with their correct globals context
    • asmxtensa: make indirect calls using func table, not raw pointers
    • asmthumb: detect presence of I-cache using CMSIS macro
    • 🔧 objtype: clarify comment about configuring inplace op methods
    • shorten error messages by using contractions and some rewording
    • objstr: make % ( mod ) formatting operator configurable
    • modbuiltins: make oct/hex work when !MICROPY_PY_BUILTINS_STR_OP_MODULO
    • objgenerator: implement PEP479, StopIteration convs to RuntimeError
    • 📜 parsenum: avoid rounding errors with negative powers-of-10
    • modmath: add math.factorial, optimised and non-opt implementations
    • objstr: format: return bytes result for bytes format string
    • fix msvc C++ compiler warnings with MP_OBJ_FUN_MAKE_SIG macro
    • 🏗 vm: make small optimisation of BUILD_SLICE opcode
    • objfloat: fix abs(-0.0) so it returns 0.0
    • emitnative: place const objs for native code in separate const table
    • 🚚 asm*: remove ASM_MOV_REG_ALIGNED_IMM emit macro, it's no longer used
    • emitnative: change type of const_table from uintptr_t to mp_uint_t
    • vm: fix case of throwing GeneratorExit type into yield-from
    • runtime: remove nlr protection when calling next in mp_resume
    • 👍 objtype: support full object model for get/set/delitem special meths
    • 👻 vm: when VM raises exception put exc obj at beginning of func state
    • asmthumb: add wide ldr to handle larger offsets
    • asmthumb: clean up asm_thumb_bl_ind to use new optimised ldr helper
    • asmthumb: extend asm entry/exit to handle stack larger than 508 bytes
    • asmx86: comment out unused asm_x86_nop to prevent compiler warnings
    • asmx64: extend asm_x64_mov_reg_pcrel to accept high registers
    • asmxtensa: use proper calculation for const table offset
    • emitnative: reorder native state on C stack so nlr_buf_t is first
    • emitnative: implement yield and yield-from in native emitter
    • runtime: use mp_import_name to implement tail of mp_import_from
    • runtime: remove comment in mp_import_name about level being 0
    • obj.h: use uint64_t instead of mp_int_t in repr-D MP_OBJ_IS_x macros
    • emitnative: clean up unused macro and forward function declarations
    • asmx64: change stack management to reference locals by rsp not rbp
    • asmx64: change indirect calls to load fun ptr from the native table
    • asmx86: change stack management to reference locals by esp not ebp
    • asmx86: change indirect calls to load fun ptr from the native table
    • emitnative: load native fun table ptr from const table for all archs
    • asmarm: simplify asm_arm_bl_ind to only load via index, not literal
    • asmthumb: remove unused fun_ptr arg from asm_thumb_bl_ind function
    • emitnative: remove unused ptr argument from ASM_CALL_IND macro
    • emitnative: consolidate use of stacked immediate values to one func
    • emitnative: simplify viper mode handling in emit_native_import_name
    • emitnative: push internal None rather than const obj where possible
    • emitnative: put None/False/True in global native const table
    • objtype: remove comment about catching exc from user getattr
    • 🔧 objstr: make str.count() method configurable
    • objmodule: implement PEP 562's getattr for modules
    • 🏗 py.mk: when building axtls use -Wno-all to prevent all warnings
    • compile: fix case of eager implicit conversion of local to nonlocal
    • 🚚 compile: remove unneeded variable from global/nonlocal stmt helpers
    • scope: optimise scope_find_or_add_id to not need "added" arg
    • ⚙ runtime: fix qstr assumptions when handling "import *"
    • unicode: fix check for valid utf8 being stricter about contn chars
    • py.mk: fix broken Gmane URL
    • ➕ add option to reduce GC stack integer size to save RAM
    • 👍 objboundmeth: support loading generic attrs from the method
    • obj: add support for int special method
    • objexcept: use macros to make offsets in emergency exc buf clearer
    • objexcept: make sure mp_obj_new_exception_msg doesn't copy/format msg
    • 🔧 objdict: make .fromkeys() method configurable
    • bc: fix calculation of opcode size for opcodes with map caching
    • qstr: put a lower bound on new qstr pool allocation
    • 🆓 objarray: introduce "memview_offset" alias for "free" field of object
    • gc: adjust gc_alloc() signature to be able to accept multiple flags
    • 🚚 mpconfig: move MICROPY_VERSION macros to static ones in mpconfig.h
    • ⚙ runtime: unlock the GIL in mp_deinit function
    • get optional VM stack overflow check compiling and working again
    • 🛠 fix location of VM returned exception in invalid opcode and comments
    • modio: make iobase_singleton object const so it goes in ROM
    • obj.h: explicitly cast args to uint32_t in MP_OBJ_FUN_MAKE_SIG

    extmod:

    • ⚡️ modlwip: update to work with lwIP v2.0
    • modlwip: set POLLHUP flag for sockets that are new
    • modlwip: allow to compile with MICROPY_PY_LWIP disabled
    • modussl_mbedtls: populate sock member right away in wrap_socket
    • modussl_mbedtls: use mbedtls_entropy_func for CTR-DRBG entropy
    • vfs: use u_rom_obj properly in argument structures
    • vfs_fat: rename FileIO/TextIO types to mp_type_vfs_fat_XXX
    • ➕ add VfsPosix filesystem component
    • vfs: add fast path for stating VfsPosix filesystem
    • vfs: introduce a C-level VFS protocol, with fast import_stat
    • moduhashlib: prefix all Python methods and objects with uhashlib
    • moduhashlib: reorder funcs so that they are grouped by hash type
    • moduhashlib: allow to disable the sha256 class
    • moduhashlib: allow using the sha256 implementation of mbedTLS
    • moduhashlib: make function objects STATIC
    • uos_dupterm: use native C stream methods on dupterm object
    • modussl_axtls: fix del to point to mp_stream_close_obj
    • vfs_fat_diskio: factor disk ioctl code to reduce code size
    • update to use new mp_get_stream helper
    • moducryptolib: add ucryptolib module with crypto functions
    • moducryptolib: optionally export MODE_* constants to Python
    • ♻️ moducryptolib: refactor functions for clean interface with axTLS
    • moducryptolib: add an mbedTLS implementation for this module
    • moducryptolib: prefix all Python methods/objects with ucryptolib
    • 👻 moducryptolib: shorten exception messages to reduce code size
    • moducryptolib: don't include arpa/inet.h, it's not needed
    • ✅ modure: add match.groups() method, and tests
    • ✅ modure: add match.span(), start() and end() methods, and tests
    • ✅ modure: add ure.sub() function and method, and tests
    • 👍 vfs: support opening a file descriptor (int) with VfsPosix
    • 🛠 fix to support compiling with object representation D
    • 👍 vfs_posix: support ilistdir with no (or empty) argument
    • vfs_posix: use DTTOIF if available to convert type in ilistdir
    • modlwip: deregister all lwIP callbacks when closing a socket
    • 👍 modussl: support polling in ussl objects by passing through ioctl
    • modbtree: update to work with new mp_stream_posix_XXX signatures
    • modussl_axtls: use MP_ROM_PTR for objects in allowed args array
    • moduhashlib: add md5 implementation, using axTLS
    • moduhashlib: use newer message digest API for mbedtls >=2.7.0
    • moduhashlib: add md5 implementation using mbedtls
    • 🚚 moductypes: remove BITFIELD from aggregate types enum
    • moductypes: accept OrderedDict as a structure description
    • modonewire: fix reset timings to match 1-wire specs
    • moductypes: make sizeof() accept "layout" parameter
    • modlwip: implement TCP listen/accept backlog
    • modlwip: fix read-polling of listening socket with a backlog
    • moductypes: implement int for PTR
    • moductypes: add aliases for native C types

    lib:

    • lwip: update lwIP to v2.0.3, tag STABLE-2_0_3_RELEASE
    • ⚡️ stm32lib: update library to include support for STM32F0 MCUs
    • 🖨 utils/printf: make DEBUG_printf implementation more accessible
    • 👍 utils: fix to support compiling with object representation D
    • utils: expose pyb_set_repl_info function public
    • libm_dbl/tanh: make tanh more efficient and handle large numbers
    • libm/math: make tanhf more efficient and handle large numbers
    • libm/wf_tgamma: fix tgammaf handling of -inf, should return nan
    • 🏗 libm_dbl: add implementation of copysign() for DEBUG builds
    • ⚡️ stm32lib: update library to fix issue with filling USB TX FIFO
    • libm/math: fix int type in float union, uint64_t should be uint32_t
    • libm/math: add implementation of __signbitf, if needed by a port
    • utils/pyexec: forcefully unlock the heap if locked and REPL active
    • utils: add generic MicroPython IRQ helper functions
    • ⚡️ stm32lib: update library to get F413 BOR defs and fix gcc 8 warning

    drivers:

    • wiznet5k: fix bug with MACRAW socket calculating packet size
    • 🚚 memory/spiflash: move cache buffer to user-provided config
    • memory/spiflash: rename functions to indicate they use cache
    • memory/spiflash: add functions for direct erase/read/write
    • sdcard: change driver to use new block-device protocol
    • sdcard: fix bug in computing number of sectors on SD Card
    • 🚀 sdcard: do not release CS during the middle of read operations
    • cc3000: use cc3000_time_t instead of time_t for custom typedef
    • display/lcd160cr.py: in fast_spi, send command before flushing
    • ✅ sdcard: in test use os.umount and machine module instead of pyb
    • 🚚 sdcard: remove debugging print statement in ioctl method
    • dht: allow open-drain-high call to be DHT specific if needed

    tools:

    • pydfu.py: increase download packet size to full 2048 bytes
    • 👍 pydfu.py: add support for multiple memory segments
    • pydfu.py: use getfullargspec instead of getargspec for newer pyusb
    • 🏁 pydfu.py: workaround stdio flush error on Windows with Python 3.6
    • pydfu.py: improve DFU reset, and auto-detect USB transfer size
    • 👍 mpy-tool.py: support freezing of floats in obj representation D
    • mpy-tool.py: put frozen bignum digit data in ROM, not in RAM
    • mpy-tool.py: set sane initial dynamic qstr pool size with frozen mods
    • mpy-tool.py: fix calc of opcode size for opcodes with map caching
    • 🏗 mpy-tool.py: fix build error when no qstrs present in frozen mpy
    • 👍 dfu.py: pad image data to 8 byte alignment to support L476
    • pyboard.py: run exec: command as a string
    • 👻 pyboard.py: change base class of PyboardError to Exception
    • pyboard.py: in TelnetToSerial.close replace try/except with if

    ✅ tests:

    • ✅ basics/special_methods2: enable some additional tests that work
    • ➕ add some tests for bigint hash, float hash and float parsing
    • ✅ extmod: add test for importing a script from a user VFS
    • 🚚 extmod: remove conditional import of uos_vfs, it no longer exists
    • ✅ pyb: make i2c and pyb1 pyboard tests run again
    • ✅ io: add simple IOBase test
    • ✅ extmod: add test for VFS and user-defined filesystem and files
    • ✅ unix/extra_coverage: don't test stream objs with NULL write fun
    • ✅ extmod/ujson_dump.py: add test for dump to non-stream object
    • ✅ extmod: add test for ujson.dump writing to a user IOBase object
    • ✅ import: add test for importing invalid .mpy file
    • ➕ add tests using "file" argument in print and sys.print_exception
    • ✅ extmod/ucryptolib*: add tests for ucryptolib module
    • ✅ extmod/ucryptolib*: add into and inplace tests for ucryptolib
    • basics/namedtuple*: import ucollections first
    • 🚚 move non-filesystem io tests to basics dir with io_ prefix
    • 👌 improve feature detection for VFS
    • ✅ run-tests: add nrf target
    • ✅ run-tests: improve crash reporting when running on remote targets
    • extmod/ujson_dump_iobase.py: return number of bytes written
    • ✅ make tests work on targets without float support
    • ✅ micropython/viper_cond: add test for large int as bool
    • ✅ run-tests: enable bool1.py test with native emitter
    • ✅ micropython: add tests for try and with blocks under native/viper
    • 🖨 basics/set_pop.py: sort set before printing for consistent output
    • basics/int_big_error.py: use bytearray to test for int overflow
    • ✅ modify tests that print repr of an exception with 1 arg
    • ✅ basics: provide .exp files for generator tests that fail PEP479
    • ✅ run-tests: enable native tests for unwinding jumps
    • ✅ basics: add more tests for return within try-finally
    • ✅ basics: add test cases for context manager raising in enter/exit
    • float/cmath_fun.py: fix truncation of small real part of complex
    • ✅ float: test -inf and some larger values for special math funcs
    • ✂ remove pyboard.py symlink and instead import from ../tools
    • ✅ extmod/uhashlib_md5: add coverage tests for MD5 algorithm
    • ✅ float/float_parse.py: add tests for accuracy of small decimals
    • cpydiff: add case for difference in behaviour of bytes.format()
    • ✅ micropython: test loading const objs in native and viper funcs
    • ✅ basics: split out gen throw tests from yield-from-throw tests
    • ✅ run-tests: enabled native tests that pass now that yield works
    • unix/ffi_float: skip if strtof() is not available
    • 📊 uselect_poll_basic: add basic test for uselect.poll invariants
    • uctypes_sizeof_od: test for using OrderedDict as struct descriptor
    • 🚚 basics/class_getattr: remove invalid test for getattribute
    • ✅ make bytes/str.count() tests skippable
    • extmod/uctypes_sizeof_layout: test for sizeof of different layout
    • import: add .exp file for module_getattr.py to not require Py 3.7
    • ✅ cmdline/cmd_showbc.py: fix test to explicitly declare nonlocal
    • ✅ extmod: skip uselect test when CPython doesn't have poll()
    • import_long_dyn: test for "import *" of a long dynamic name
    • ⚡️ io: update tests to use uos.remove() instead of uos.unlink()
    • ✅ basics/special_methods: add testcases for int
    • extmod/uctypes_ptr_le: test int() operation on a pointer field
    • ✅ extmod/uctypes_error: add test for unsupported unary op
    • ✅ run-tests: make .exp and .out file names unique by prefixing with dir

    mpy-cross:

    • 🏗 make build independent of extmod directory
    • 👮 Makefile: also undefine MICROPY_FORCE_32BIT and CROSS_COMPILE

    minimal port:

    • main: allow to compile without GC enabled

    unix port:

    • support MICROPY_VFS_POSIX and enable it in coverage build
    • moduos_vfs: add missing uos functions from traditional uos module
    • mpconfigport.h: enable MICROPY_PY_UCRYPTOLIB
    • mpconfigport_coverage: enable ure groups, span, start, end and sub
    • modos: convert dir-type to stat-type for file type in ilistdir
    • use MP_STREAM_GET_FILENO to allow uselect to poll general objects
    • 🏗 Makefile: coverage: Explicitly build "axtls" too
    • 🏗 Makefile: enable ussl module with nanbox build
    • 🏗 Makefile: remove building of libaxtls.a which is no longer needed
    • 🏗 Makefile: build libffi inside $BUILD
    • mpconfigport_coverage.h: enable uhashlib.md5
    • modos: include extmod/vfs.h for MP_S_IFDIR, etc
    • modjni: update .getiter signature to include mp_obj_iter_buf_t*
    • 🏗 modjni: get building under coverage and nanbox builds
    • mpconfigport.h: enable MICROPY_PY_UHASHLIB_MD5 for uhashlib.md5
    • moduselect: raise OSError(ENOENT) if obj to modify is not in poller
    • modusocket: initial implementation of socket.settimeout()
    • modusocket: finish socket.settimeout() implementation
    • modffi: add support for "q"/"Q" specs (int64_t/uint64_t)
    • 👉 Makefile: allow to override/omit pthread lib name
    • 🚚 modos: rename unlink to remove to be consistent with other ports
    • enable MICROPY_PY_BUILTINS_ROUND_INT
    • enable uio.IOBase
    • call gc_sweep_all() when doing a soft reset

    🏁 windows port:

    • 🖨 make printing of debugging info work out of the box
    • 👍 msvc: support custom compiler for header generation
    • msvc: implement file/directory type query
    • ✂ remove remaining traces of old GNU readline support

    stm32 port:

    • 🚚 usbd_conf.h: remove unused macros and clean up header file
    • usbd_conf: changes files to unix line endings and apply styling
    • usbdev: convert files to unix line endings
    • 🚚 usbdev: remove unused RxState variable, and unused struct
    • usbdev: be honest about data not being written to HID endpoint
    • usbd_hid_interface: address possible race condition vs. interrupt
    • i2c: add new hardware I2C driver for F4 MCUs
    • machine_i2c: use new F4 hardware I2C driver for machine.I2C class
    • accel: switch pyb.Accel to use new C-level I2C API
    • modpyb: introduce MICROPY_PY_PYB_LEGACY config option for pyb mod
    • pyb_i2c: put pyb.I2C under MICROPY_PY_PYB_LEGACY setting
    • 🚚 modpyb: remove unused includes and clean up comments
    • usb: use usbd_cdc_itf_t pointer directly in USB_VCP class
    • usb: combine CDC lower-layer and interface state into one struct
    • usb: combine HID lower-layer and interface state into one struct
    • usb: make CDC endpoint definitions private to core usbdev driver
    • usb: change CDC tx/rx funcs to take CDC state, not usbdev state
    • usb: change HID report funcs to take HID state, not usbdev state
    • usb: add ability to have 2x VCP interfaces on the one USB device
    • ⚠ usb: initialise cdc variable to prevent compiler warnings
    • enable UART7/8 on F4 series that have these peripherals
    • ➕ add support for STM32L496 MCU
    • boards: add board ld and af.csv files for STM32L496 MCU
    • boards: add config files for new board, STM32L496GDISC
    • rtc: don't try to set SubSeconds value on RTC
    • ↔ integrate lwIP as implementation of usocket module
    • rng: use Yasmarang for rng_get() if MCU doesn't have HW RNG
    • ✂ remove unneeded HTML release notes from usbdev and usbhost dirs
    • ➕ add low-level hardware I2C slave driver
    • ➕ add new component, the mboot bootloader
    • 👍 allow to have no storage support if there are no block devices
    • ➕ add support for Cortex-M0 CPUs
    • timer: make timer_get_source_freq more efficient by using regs
    • allow a board to disable MICROPY_VFS_FAT
    • boards: add startup_stm32f0.s for STM32F0 MCUs
    • ➕ add support for STM32F0 MCUs
    • boards: add alt-func CSV list and linker script for STM32F091
    • 🔧 boards: add NUCLEO_F091RC board configuration files
    • ⚡️ README: update to include STM32F0 in list of supported MCUs
    • boards: split combined alt-func labels and fix some other errors
    • boards: ensure USB OTG power is off for NUCLEO_F767ZI
    • flash: increase H7 flash size to full 2MiB
    • modnetwork: don't take netif's down when network is deinited
    • modnetwork: change base entry of NIC object from type to base
    • modnetwork: provide generic implementation of ifconfig method
    • ➕ add network driver for Wiznet5k using MACRAW mode and lwIP
    • modnetwork: fix arg indexing in generic ifconfig method
    • mpconfigport.h: enable DELATTR_SETATTR and BUILTINS_NOTIMPLEMENTED
    • mboot: increase USB rx_buf and DFU buf sizes to full 2048 bytes
    • 🔧 Makefile: rebuild all qstrs when any board configuration changes
    • ⚡️ boards/STM32L476DISC: update SPI flash config for cache change
    • 👍 timer: support TIM1 on F0 MCUs
    • i2c: fix num_acks calculation in i2c_write for F0 and F7 MCU's
    • i2cslave: fix ordering of event callbacks in slave IRQ handler
    • ⏱ mboot: adjust user-reset-mode timeout so it ends with mode=1
    • boards/stm32f091_af.csv: split labels that are multiple funcs
    • boards/NUCLEO_F091RC: add Arduino-named pins and rename CPU pins
    • can: use MP_OBJ_ARRAY_TYPECODE_FLAG_RW where appropriate
    • spi: fix SPI driver so it can send/recv more than 65535 bytes
    • ⏱ mboot: define constants for reset mode cycling and timeout
    • boards/NUCLEO_F091RC: fix TICK_INT_PRIORITY so it is highest prio
    • qspi: don't require data reads and writes to be a multiple of 4
    • 👍 mboot: add support for erase/read/write of external SPI flash
    • boards: add .ld and af.csv files for STM32F722
    • modnetwork: fix query of DNS IP address in ifconfig()
    • mboot: fix bug with invalid memory access of USB state
    • mboot: only compile in code for the USB periph that is being used
    • 🚤 mboot: always use a flash latency of 1WS to match 48MHz HCLK
    • access dict map directly instead of using helper function
    • 👌 support compiling with object representation D
    • fatfs_port: fix bug when MICROPY_HW_ENABLE_RTC not enabled
    • timer: use enum for indexing keyword arg in pyb_timer_init_helper
    • timer: add tick_hz arg to Timer constructor and init method
    • mphalport: make mp_hal_stdin_rx_chr/stdout_tx_strn weakly linked
    • flashbdev: fix bug with L4 block cache, dereferencing block size
    • ➕ add method for statically configuring pin alternate function
    • sdcard: use mp_hal_pin_config_alt_static to configure SD card pins
    • sdram: add SDRAM driver from OpenMV project
    • sdram: integrate SDRAM driver into rest of code
    • sdram: on F7 MCUs enable MPU on external SDRAM
    • boards/STM32F429DISC: enable onboard SDRAM
    • sdcard: get SDMMC alt func macro names working with F4,F7,H7 MCUs
    • 👉 Makefile: use -Wno-attributes for ll_usb.c HAL source file
    • rtc: get rtc.wakeup working on F0 MCUs
    • modmachine: get machine.sleep working on F0 MCUs
    • extint.h: use correct EXTI lines for RTC interrupts
    • modmachine: get machine.sleep working on L4 MCUs
    • adc: disable VBAT in read channel helper function
    • adc: fix ADC reading on F0 MCUs to only sample a single channel
    • spi: round up prescaler calc to never exceed requested baudrate
    • sdram: allow additional config by a board, and tune MPU settings
    • boards/STM32F429DISC: add burst len and autorefresh to SDRAM cfg
    • boards/STM32F7DISC: enable onboard SDRAM
    • spi: split out pyb.SPI and machine.SPI bindings to their own files
    • spi: add implementation of low-level SPI protocol
    • mboot/main: use correct formula for DFU download address
    • 👉 Makefile: allow external BOARD_DIR directory to be specified
    • boards/STM32L476DISC: enable external RTC xtal to get RTC working
    • for MCUs that have PLLSAI allow to set SYSCLK at 2MHz increments
    • dma: pass DMA direction as parameter to dma_init not in cfg struct
    • dma: reinitialise the DMA if the direction changed on the channel
    • sdcard: use only a single DMA stream for both SDIO TX/RX
    • 🚚 sdcard: move temporary DMA state from BSS to stack
    • spi: be sure to set all SPI config values in SPI proto init
    • 🔄 change flash IRQ priority from 2 to 6 to prevent preemption
    • flashbdev: protect flash writes from cache flushing and USB MSC
    • sdcard: fully reset SDMMC periph before calling HAL DMA functions
    • dma: get DMA working on F0 MCUs
    • 👍 sdram: add support for 32-bit wide data bus and 256MB in MPU cfg
    • 👍 boards/STM32F769DISC: add optional support for external SDRAM
    • ➕ add support for STM32F765xx MCUs
    • 🏗 Makefile: include copysign.c in double precision float builds
    • adc: fix ADC calibration scale for L4 MCUs, they use 3.0V
    • adc: increase sample time for internal sensors on L4 MCUs
    • dcmi: add F4/F7/H7 hal files and dma definitions for DCMI periph
    • 👍 uart: add support for USART3-8 on F0 MCUs
    • 0️⃣ boards/NUCLEO_F091RC: enable USART3-8 with default pins
    • modmachine: re-enable PLLSAI[1] after waking from stop mode
    • 🚚 powerctrl: move function to set SYSCLK into new powerctrl file
    • 🔧 powerctrl: fix configuring APB1/APB2 frequency when AHB also set
    • powerctrl: factor code to set RCC PLL and use it in startup
    • 🔧 powerctrl: factor code that configures PLLSAI on F7 MCUs
    • 0️⃣ powerctrl: optimise passing of default values to set_sysclk
    • 🔧 powerctrl: don't configure clocks if already at desired frequency
    • usbd_conf: allocate enough space in USB HS TX FIFO for CDC packet
    • mpconfigport.h: enable math.factorial, optimised version
    • 🔧 main: add configuration macros for board to set heap start/end
    • usbd_cdc_interface: handle disconnect IRQ to set VCP disconnected
    • usbd_cdc_interface: refactor USB CDC tx code to not use SOF IRQ
    • spi: fix calculation of SPI clock source on H7 MCUs
    • boards/stm32h743.ld: fix total flash size, should be 2048k
    • 🔧 system_stm32: introduce configuration defines for PLL3 settings
    • adc: add ADC auto-calibration for L4 MCUs
    • flashbdev: add missing include for irq.h
    • servo: only initialise TIM5 if it is needed, to save power
    • usb: fully deinitialise USB periph when it is deactivated
    • 🚚 powerctrl: move (deep)sleep funcs from modmachine.c to powerctrl.c
    • powerctrl: disable IRQs during stop mode to allow reconfig on wake
    • boards/STM32F429DISC: enable UART as secondary REPL
    • 🖨 uart: always show the flow setting when printing a UART object
    • mboot: provide led_state_all function to reduce code size
    • 👍 mboot: add support for 4th board LED
    • 🔧 boards: add configuration for putting mboot on PYBv1.x
    • 📚 mboot: add documentation for using mboot on PYBv1.x
    • 👍 powerctrl: add support for standby mode on L4 MCUs
    • uart: add rxbuf keyword arg to UART constructor and init method
    • 🔧 boards: add STM32L432KC chip configuration files
    • ➕ add peripheral support for STM32L432
    • 🔧 boards: add NUCLEO_L432KC board configuration files
    • split out UART Python bindings from uart.c to machine_uart.c
    • uart: factor out code from machine_uart.c that computes baudrate
    • uart: rework uart_get_baudrate so it doesn't need a UART handle
    • uart: factor out code to set RX buffer to function uart_set_rxbuf
    • 🚚 uart: remove HAL's UART_HandleTypeDef from UART object struct
    • uart: simplify deinit of UART, no need to call HAL
    • uart: for UART init, pass in params directly, not via HAL struct
    • uart: move config of char_width/char_mask to uart.c
    • uart: add ability to have a static built-in UART object
    • extint: use correct EXTI channels on H7 MCUs for RTC events
    • adc: fix calibrated volt/temp readings on H7 by using 16bit scale
    • adc: increase ADC sampling time for internal sources on H7 MCUs
    • 🔧 adc: support 16-bit ADC configuration on H7 MCUs
    • boards: allow OpenOCD stm_flash procedure to accept single FW img
    • boards/NUCLEO_L432KC: specify L4 OpenOCD config file for this MCU
    • main: add board config option to enable/disable mounting SD card
    • 👍 implement UART.irq() method with initial support for RX idle IRQ
    • uart: fix uart_rx_any in case of no buffer to return 0 or 1
    • uart: always enable global UART IRQ handler on init
    • uart: clear overrun error flag after reading RX data register
    • uart: make sure user IRQs are handled even with a keyboard intr
    • modmachine: fix reset_cause to correctly give DEEPSLEEP on L4 MCU
    • sdcard: properly reset SD periph when SDMMC2 is used on H7 MCUs
    • wdt: make singleton WDT object const so it goes in ROM
    • main: make thread and FS state static and exclude when not needed
    • use MICROPY_GC_STACK_ENTRY_TYPE to save some RAM
    • 🚚 .gitattributes: remove special text handling of stm32 usbdev files
    • enable MICROPY_PY_BUILTINS_ROUND_INT
    • enable descriptors
    • enable uio.IOBase
    • enable ure.sub()
    • call gc_sweep_all() when doing a soft reset

    cc3200 port:

    • mods: include stream.h to get definition of mp_stream_p_t
    • mods: access dict map directly instead of using helper func
    • use MICROPY_GC_STACK_ENTRY_TYPE to save some RAM

    esp8266 port:

    • mpconfigport.h: add some weak links to common Python modules
    • modnetwork: return empty str for hostname if STA is inactive
    • modnetwork: raise ValueError when getting invalid WLAN id
    • 🏗 modmachine: allow I2C and SPI to be configured out of the build
    • 🔄 change UART(0) to attach to REPL via uos.dupterm interface
    • 🚚 modules/ntptime.py: remove print of newly-set time
    • 🏗 mpconfigport.h: enable ucryptolib module for standard build
    • esp8266_common.ld: put mp_keyboard_interrupt in iRAM
    • modesp: run ets_loop_iter before/after doing flash erase/write
    • let machine.WDT trigger the software WDT if obj is not fed
    • 🏗 Makefile: remove build of libaxtls.a and add back tuned config
    • main: increase heap by 2kb, now that axtls rodata is in ROM
    • ✂ remove scanning of GC pointers in native code block
    • ets_alt_task: process idle callback if no other events occurred
    • modnetwork: automatically do radio sleep if no interface active
    • modnetwork: wait for iface to go down before forcing power mgmt
    • machine_uart: add rxbuf keyword arg to UART constructor/init
    • main: activate UART(0) on dupterm for REPL before boot.py runs
    • esp_mphal: provide mp_hal_pin_od_high_dht so DHT works reliably
    • implement high-res timers using new tick_hz argument
    • use MICROPY_GC_STACK_ENTRY_TYPE to save some RAM
    • enable MICROPY_PY_BUILTINS_ROUND_INT
    • enable descriptors
    • enable uio.IOBase
    • enable ure.sub()
    • call gc_sweep_all() when doing a soft reset, cleans up sockets

    esp32 port:

    • ⚡️ update to latest ESP IDF version
    • modnetwork: fix STA/AP activate/deactivate for new IDF API
    • ⚡️ Makefile: update to latest ESP IDF version
    • esp32.custom_common.ld: put soc code in iram0
    • 🌲 silence ESP-IDF log messages when in raw REPL mode
    • 👉 Makefile: extract common C & C++ flags for consistent compilation
    • ➕ add support for building with external SPI RAM
    • modnetwork: fix isconnected() when using static IP config
    • ✂ remove port-specific uhashlib implementation and use common one
    • fatfs_port: implement get_fattime so FAT files have a timestamp
    • ⚡️ update to latest ESP IDF
    • modules: include umqtt library in frozen modules
    • mpconfigport.h: enable ucryptolib module
    • 👍 allow to build with uPy floats disabled
    • ⬇️ reduce latency for handling of scheduled Python callbacks
    • 👍 modnetwork: add support for bssid parameter in WLAN.connect()
    • implement WLAN.status() return codes
    • modesp32: add raw temperature reading to esp32 module
    • modesp32: use MP_ROM_QSTR and MP_ROM_PTR in const locals dict
    • 👍 modnetwork: add network.(W)LAN.ifconfig('dhcp') support
    • ⚡️ update to latest ESP IDF
    • 🛠 fix int overflow in machine.sleep/deepsleep functions
    • machine_rtc: fix locals dict entry, init qstr points to init meth
    • modesp32: add hall_sensor() function
    • network_ppp: add PPPoS functionality
    • mpthreadport: prevent deadlocks when deleting all threads
    • allocate task TCB and stack from system heap not uPy heap
    • machine_uart: add txbuf/rxbuf keyword args to UART construct/init
    • machine_uart: implement UART.sendbreak() method
    • 👍 machine_pwm: support higher PWM freq by auto-scaling timer res
    • 🚦 machine_pwm: on deinit stop routing PWM signal to the pin
    • 👍 modmachine: enable machine.sleep() now that the IDF supports it
    • 🚀 mphalport: when tx'ing to REPL only release GIL if many chars sent
    • 🚀 modsocket: for socket read only release GIL if socket would block
    • 📌 machine_pin: add Pin.off() and Pin.on() methods
    • 👉 Makefile: use system provided math library rather than uPy one
    • 0️⃣ modules/neopixel.py: change NeoPixel to different default timings
    • machine_hw_spi: use separate DMA channels for HSPI and VSPI
    • machine_hw_spi: make HW SPI objects statically allocated
    • implement high-res timers using new tick_hz argument
    • enable MICROPY_PY_BUILTINS_ROUND_INT
    • enable descriptors
    • enable uio.IOBase
    • enable ure.sub()
    • call gc_sweep_all() when doing a soft reset

    nrf port:

    • ➕ add new port to Nordic nRF5x MCUs
    • align help.c builtin help text to use correct type
    • ➕ add WT51822-S4AT board
    • 👉 use --gc-sections to reduce code size
    • ➕ add compile switch to disable VFS
    • enable Link-time optimizations (LTO)
    • boards/arduino_primo: add missing hal_rng config used by random mod
    • implement NVMC HAL
    • 0️⃣ disable FAT/VFS by default
    • 🚚 hal/nvmc: remove pre-compiler error thrown in nvmc.h, if on nrf52
    • hal/hal_nvmc: fix non-SD code
    • ⚡️ boards: update linker scripts
    • ➕ add micro:bit filesystem
    • drivers/bluetooth/ble_drv: don't handle non-events
    • modules/uos/microbitfs: make OSError numeric
    • main: run boot.py and main.py on startup
    • 👉 use micropython libm to save flash
    • 👍 main: add ampy support
    • drivers/bluetooth: start advertising after disconnect
    • update usage of mp_obj_new_str by removing last parameter
    • remove default FROZEN_MPY_DIR
    • option to enable Ctrl-C in NUS console
    • boards/microbit: add copy of microbit display and image files
    • boards/microbit: add copy of microbit font type from microbit-dal
    • boards/microbit: rename display/image files from .cpp to .c ext
    • ⚡️ boards/microbit: update board modules from C++ to C-code
    • ⚡️ boards/microbit: add framework updates to build micro:bit modules
    • boards/microbit: attempt to get working display/images without FP
    • boards/microbit: add modmicrobit.h to expose module init function
    • boards/microbit: include modmicrobit.h in board_modules.h
    • drivers/softpwm: rename init function to softpwm_init0
    • drivers/ticker: rework ticker functions for microbit display/music
    • ⚡️ boards/microbit: update to work with new ticker code
    • 🚚 modules/music: remove init of softpwm/ticker upon music module load
    • ⚡️ update main.c to init relevant board drivers, if enabled
    • 🚚 boards/microbit: move microbit target to custom linker script
    • boards/microbit/modules: fix tabbing in modmicrobit.c
    • boards/microbit: add temperature back to microbit module
    • ⚡️ boards/microbit: update docs on top level tick low pri callback
    • 🔄 change board module header from board_modules.h to boardmodules.h
    • ➕ add if-def around inclusion of nrf_sdm.h in main
    • boards/microbit: enable music, display, image, microbit module
    • drivers/bluetooth: reset evt_len to size of static buffer each iter
    • ➕ add support for s132 v5.0.0 bluetooth stack (#139)
    • 🔄 change PYB prefix to MPY
    • only search for frozen files if FROZEN_MPY_DIR is set
    • mpconfigport: reduce GC stack size for nrf51
    • 📌 modules/machine/pin: disable pin debug by default
    • boards/common.ld: avoid overflowing the .text region
    • drivers/ble_drv: fixing sd_ble_enable bug for SD s132 v.2.0.1
    • 👉 make machine.UART optional
    • fix stack size in ld script and enable MICROPY_STACK_CHECK
    • 👌 improve include of boardmodules.mk
    • 🔧 make LTO configurable via Makefile flag
    • boards/microbit/modules: initialize variable in microbit_sleep
    • replace custom-HAL with nrfx-HAL
    • 🛠 fix NUS console when using boot.py or main.py
    • 👉 Makefile: fix .PHONY target
    • 0️⃣ enable -g flag by default
    • 👉 make linker scripts more modular
    • ✂ remove port member from Pin object
    • 📌 modules/machine/pin: add support for IRQ on Pin's
    • modules/machine/spi: sPIM (EasyDMA) backend for nrf52x
    • drivers/bluetooth/ble_drv: increase max transfers in progress
    • gccollect: use the SP register instead of MSP
    • 🚚 boards: remove unused defines from board config headers
    • 📌 boards/wt51822_s4at: fixes after nrfx and Pin IRQ introduction
    • modules/random: rename port config for RNG
    • 📌 modules: align method to resolve pin object
    • adc: allow for external use of new and value read function
    • spi: allow for external use of new and transfer function
    • return immediatly from mp_hal_delay_us if 0us is given
    • modules/machine/adc: fix to make adc.c compile for nrf51 targets
    • 🛠 bluetooth: fixes for s132 v5 BLE stack
    • 👉 Makefile: use "standard" GCC -fshort-enums instead of --short-enums
    • 🚚 Makefile: remove -fstack-usage
    • 👉 Makefile: use C11 instead of Gnu99
    • 👉 Makefile: refine dead-code elimination parameters
    • modules/machine/adc: don't compare -1 to an unsigned number
    • modules/uos/microbitfs: fix errno defines
    • modules/uos/microbitfs: remove unused uos_mbfs_mount
    • 0️⃣ enable micro:bit FS by default
    • 🚚 boards/feather52: move phony targets to main Makefile
    • 🚚 modules/machine/spi: move enable-guard to prevent wrong includes
    • 🚚 nrfx_config: move back nrf52832 to use non-EasyDMA SPI
    • 🚚 move pyb module to boards module
    • ➕ add support for reading output pin state
    • generalize feather52 target
    • 🚚 bluetooth: add support for s132/s140 v6, remove s132 v2/3/5
    • boards: check for stack/heap size using an assert
    • quick-fix on const objects with open array dimension in objtuples
    • bluetooth: replace BLE REPL (WebBluetooth) URL
    • ➕ add explicit make flag for oofatfs
    • compile nlr objects with -fno-lto flag
    • ⬆️ upgrade to nrfx 1.1.0
    • drivers: add license text to ticker.h and softpwm.h
    • use mp_raise_ValueError instead of nlr_raise(...)
    • 🏗 include $(SRC_MOD) in the build
    • 👉 Makefile: make sure dependencies for pins_gen.c are correct
    • properly use (void) instead of () for function definitions
    • boards/microbit: use MICROPY_PY_BUILTINS_FLOAT to detect FP support
    • ⚡️ update nrfjprog links to allow to download any version
    • drivers/flash: fix incorrect page alignment check
    • uos: add mbfs enter and exit handlers
    • enable all PWM, RTC and Timer instances for nrf52840
    • correct index checking of ADC/PWM/RTCounter instances
    • 👉 use separate config for each PWM instance
    • 🚚 uart: remove unused UART.char_width field
    • uart: fix UART.writechar() to write just 1 byte
    • bluetooth: set GAP_ADV_MAX_SIZE to 31 (s132/s140)
    • ⚡️ bluetooth: update BLE stack download script

    pic16bit port:

    • ⚡️ update to compile with latest xc16 v1.35 compiler

    teensy port:

    • ➕ add own uart.h to not rely on stm32's version of the file

    zephyr port:

    • README: hint about existence of qemu_x86_nommu
    • ✅ main: after builtin testsuite, drop to REPL
    • mpconfigport.h: enable uhashlib and ubinascii modules
    • modzsensor: zephyr sensor subsystem bindings
    • prj_base.conf: enable DHCP and group static IPs together
    • add prj_disco_l475_iot1.conf with sensor drivers
    • Makefile: add kobj_types_h_target to Z_EXPORTS
    • 🚚 prj_base.conf: remove outdated CONFIG_NET_NBUF_RX_COUNT option
    • prj_qemu_x86.conf: remove outdated CONFIG_RAM_SIZE
    • rename CONFIG_CONSOLE_PULL to CONFIG_CONSOLE_SUBSYS
    • ⚡️ prj_base.conf: update for net_config subsys refactor
    • ♻️ CMakeLists: update for latest Zephyr CMake usage refactorings

    📄 docs:

    • 📚 library: add documentation for ucollections.deque
    • 📄 ucryptolib: add docs for new ucryptolib module
    • usocket: getaddrinfo: describe af/type/proto optional params
    • 🛠 usocket: minor fixes to grammar of getaddrinfo
    • uos: make it clear that block device block_num param is an index
    • ure: document sub(), groups(), span(), start() and end()
    • 👍 ure: document some more supported regex operators
    • 🏗 pyboard: for latex build, use smaller quickref jpg, and no gifs
    • 🚚 library: remove "only" directive from all pyb module docs
    • 🚚 library/machine.UART: remove conditional docs for wipy port
    • 🚚 library/machine: remove conditional docs for wake_reason function
    • 🚚 library/machine: remove conditional docs for rng function
    • 🚚 library/index: remove all conditionals from library index
    • library/index: add hint about using help('modules') for discovery
    • 🚚 reference/index: remove conditional for inline asm docs
    • 🚚 library/machine: remove conditionals in machine class index
    • 🚚 move WiPy specific Timer class to separate doc file
    • library/machine.I2C.rst: clarify availability of primitive I2C ops
    • library/machine.UART.rst: specify optional txbuf and rxbuf args
    • 🗄 library/pyb: add deprecation warning for mount and old block proto
    • 💅 pyboard: fix to use Sphinx style for internal/external links
    • library/machine.SPI: add note about baudrate imprecision
    • 🚚 library/network: move specific network classes to their own file
    • library/network: make AbstractNIC methods layout correctly
    • 📚 unify all the ports into one set of documentation
    • remove sphinx_selective_exclude, it's no longer used
    • wipy: fix links to network.Server, and markup for boot.py
    • 📊 uselect: describe more aspects of poll.register/modify behavior
    • 📌 machine.Pin: add note regarding irq handler argument
    • 📌 machine.Pin: document "hard" argument of Pin.irq method
    • uio: document StringIO/BytesIO(alloc_size) constructors
    • ⚡️ library/uctypes: add examples and make general updates
    • 📄 conf.py: use https for intersphinx link to docs.python.org
    • 👍 ure: fully describe supported syntax subset, add example
    • differences: clarify the differences are against Python 3.4
    • ➕ add initial docs for esp32 port, including quick-ref and general
    • 📚 library: add documentation for esp32 module

    travis:

    • install explicit version of urllib3 for coveralls
    • 🏗 use build stages and parallel jobs under Travis CI
    • ➕ add nrf port to Travis CI build

    examples:

    • embedding: add code markup and fix typo in README.md
    • embedding: fix reference to freed memory, lexer src name
    • embedding: fix hard-coded MP_QSTR_ value
    • ⚡️ unix/ffi_example: clean up and update the ffi example

    README:

    • ⚡️ update list of ports to include esp32 and nrf
    • ✂ remove references to "make axtls", it's no longer needed
    • ✂ remove text about selecting different ports in the docs
  • v1.9.4

    May 11, 2018

    This release brings some significant size reductions to the parser, as well as removal of unused code and additional tests to improve coverage of the core. A new optional, internal Python stack is introduced for scoped allocation and can be used instead of alloca to provide more efficient and flexible temporary memory; see MICROPY_ENABLE_PYSTACK. There have been many improvements and internal code refactors of the stm32 port, and the port to the Espressif ESP32 SoC has been merged from its development repository.

    🚀 Compared to the last release the change in code size is (in bytes, using gcc 7.3):

    bare-arm: -1832
    minimal x86: -2608
    unix x64: -5129
    unix nanbox: +1024
    stm32: +2120
    cc3200: -928
    esp8266: +336

    📜 The decrease is mainly due to the reduced size of the parser, where the table of rule pointers was compressed to a table of offsets. The increase in the stm32 and esp8266 ports is due to additional features, such as more colour formats in the framebuf module and the addition of ujson.dump().

    Code coverage (measured by gcov) has improved since the last version (v1.9.3 on the left, v1.9.4 on the right):

    py: 15202/15447 = 98.4% -> 15391/15513 = 99.2%
    extmod: 2227/ 2363 = 94.2% -> 2291/ 2430 = 94.3%

    🔄 Changes and additions seen by the Python user include: improvement of dir() and tab-completion to list all available attributes of an object; addition of efficient ucollections.deque type with fixed size; better handling and polling support of sockets that get into an error state; implementation of key and cert keyword arguments in ussl.wrap_socket (for axtls); uos.ilistdir now return 4-tuples with the file size in the fourth position.

    Changes at the C level include: removal of "make_qstr_if_not_already" argument from mp_obj_new_str; rename of mp_exc_recursion_depth to mp_raise_recursion_depth; removal of mp_const_MemoryError_obj; switching of stream close operation from method to ioctl; refactoring of how native emitter code is compiled with a file per architecture.

    The stm32 port has seen a lot of improvements and additions, as well as some significant internal refactoring to better support configuring custom boards. STM32F7 support is improved, USB HS is supported for F723 and F733, the CAN class has improvements to handle bus errors, ctrl-C can now interrupt running code when the REPL is over UART, and the ADC class added the read_timed_multi static method. Board configuration has seen some internal changes, in particular with setting LD_FILES, TEXT0_ADDR, and TEXT1_ADDR in mpconfigboard.mk (previously LD_FILE, FLASH_ADDR, TEXT_ADDR). The pin_X and pyb_pin_X identifiers have been changed to be pointers to objects rather than objects, and main is renamed to stm32_main.

    A detailed list of changes follows.
    py core:

    • compile: use alloca instead of qstr_build when compiling import name
    • mpconfig: introduce reusable MP_HTOBE32(), etc. macros
    • objtype: mp_obj_new_type: name base types related vars more clearly
    • 👍 objnamedtuple: add _asdict function if OrderedDict is supported
    • emitnative: clean up asm macro names so they have dest as first arg
    • mkenv.mk: use $(PYTHON) consistently when calling Python tools
    • objstr: remove "make_qstr_if_not_already" arg from mp_obj_new_str
    • objstr: make mp_obj_new_str_of_type check for existing interned qstr
    • objstr: when constructing str from bytes, check for existing qstr
    • ➕ add config option to disable multiple inheritance
    • objnamedtuple: allow to reuse namedtuple basic functionality
    • 📜 objfloat: allow float() to parse anything with the buffer protocol
    • modbuiltins: slightly simplify code in builtin round()
    • ⚙ runtime: simplify handling of containment binary operator
    • opmethods: include the correct header for binary op enums
    • runtime: add MP_BINARY_OP_CONTAINS as reverse of MP_BINARY_OP_IN
    • 📜 parsenum: improve parsing of floating point numbers
    • objdict: reuse dict-view key iterator for standard dict iterator
    • annotate func defs with NORETURN when their corresp decls have it
    • qstr: rewrite find_qstr to make manifest that it returns a valid ptr
    • gc: in gc_realloc, convert pointer sanity checks to assertions
    • 🚚 objgenerator: remove unreachable code for STOP_ITERATION case
    • 🆕 misc.h: add m_new_obj_var_with_finaliser()
    • mp_call_function_*_protected(): pass-thru return value if possible
    • 🖨 modbuiltins: use standard arg-parsing helper func for builtin print
    • 🖨 mpprint: make "%p" format work properly on 64-bit systems
    • 🖨 mpprint: support "%lx" format on 64-bit systems
    • malloc: allow to use debug logging if !MICROPY_MALLOC_USES_ALLOCATED_SIZE
    • gc: add CLEAR_ON_SWEEP option to debug mis-traced objects
    • emitbc, asmbase: only clear emit labels to -1 when in debug mode
    • ⏪ asmbase: revert removal of clearing of label offsets for native emit
    • objint_longlong: check for zero division/modulo
    • ⚙ runtime: when tracing unary/binary ops, output op (method) name
    • gc: factor out a macro to trace GC mark operations
    • 🖨 gc: in sweep debug output, print pointer as a pointer
    • objfun: factor out macro for decoding codestate size
    • objfun, vm: add comments on codestate allocation in stackless mode
    • objfun: factor out macro for initializing codestate
    • mkrules.mk: add "clean-frozen" target to clean frozen script/modules dir
    • runtime: move mp_exc_recursion_depth to runtime and rename to raise
    • introduce a Python stack for scoped allocation
    • convert all uses of alloca() to use new scoped allocation API
    • runtime: use the Python stack when building *arg and **kwarg state
    • 🖨 objexcept: use INT_FMT when printing errno value
    • extend nan-boxing config to have 47-bit small integers
    • objtype: implement better support for overriding native's init
    • 🆕 objtype: refactor object's handling of new to not create 2 objs
    • builtinimport: call init for modules imported via a weak link
    • 👻 objgenerator: allow to pend an exception for next execution
    • map: don't include ordered-dict mutating code when not needed
    • mpz: fix pow3 function so it handles the case when 3rd arg is 1
    • modio: use correct config macro to enable resource_stream function
    • 🚚 malloc: remove unneeded code checking m_malloc return value
    • nlrthumb: fix use of naked funcs, must only contain basic asm code
    • nlr: clean up selection and config of NLR implementation
    • nlr: factor out common NLR code to macro and generic funcs in nlr.c
    • 📜 parse: split out rule name from rule struct into separate array
    • 📜 parse: break rule data into separate act and arg arrays
    • parse: pass rule_id to push_result_rule, instead of passing rule_t*
    • parse: pass rule_id to push_result_token, instead of passing rule_t*
    • 🚚 parse: remove rule_t struct because it's no longer needed
    • 📜 parse: compress rule pointer table to table of offsets
    • ⚡️ parse: update debugging code to compile on 64-bit arch
    • parse: fix macro evaluation by avoiding empty VA_ARGS
    • mpz: simplify handling of borrow and quo adjustment in mpn_div
    • mpz: in mpz_as_str_inpl, convert always-false checks to assertions
    • 🏁 nlr: fix nlr functions for 64bit ports built with gcc on Windows
    • compile: combine compiler-opt of 2 and 3 tuple-to-tuple assignment
    • 🛠 objtype: check and prevent delete/store on a fixed locals map
    • modbuiltins: for builtin_chr, use uint8_t instead of char for array
    • vm: simplify stack sentinel values for unwind return and jump
    • 📜 parsenum: fix parsing of floats that are close to subnormal
    • objfloat: fix case of raising 0 to -infinity
    • unicode: clean up utf8 funcs and provide non-utf8 inline versions
    • modbuiltins: simplify casts from char to byte ptr in builtin ord
    • objrange: implement (in)equality comparison between range objects
    • objexcept: remove long-obsolete mp_const_MemoryError_obj
    • nlrthumb: do not mark nlr_push as not returning anything
    • pystack: use "pystack exhausted" as error msg for out of pystack mem
    • 🛠 objdict: disallow possible modifications to fixed dicts
    • gc: reduce code size by specialising VERIFY_MARK_AND_PUSH macro
    • gc: rename gc_drain_stack to gc_mark_subtree and pass it first block
    • gc: make GC stack pointer a local variable
    • qstr: add QSTR_TOTAL() macro to get number of qstrs
    • modbuiltins: simplify and generalise dir() by probing qstrs
    • repl: generalise REPL autocomplete to use qstr probing
    • objstr: protect against creating bytes(n) with n negative
    • objmodule: factor common code for calling init on builtin module
    • builtinimport: add compile-time option to disable external imports
    • 👉 modmicropython: allow to have stack_use() func without mem_info()
    • 🚚 objstr: remove unnecessary check for positive splits variable
    • objint: use MP_OBJ_IS_STR_OR_BYTES macro instead of 2 separate ones
    • 🛠 objdeque: implement ucollections.deque type with fixed size
    • objdeque: protect against negative maxlen in deque constructor
    • objdeque: use m_new0 when allocating items to avoid need to clear
    • py.mk: split list of uPy sources into core and extmod files
    • 🚚 py.mk: remove .. path component from list of extmod files
    • 🏗 use "GEN" consistently for describing files generated in the build
    • compile: adjust c_assign_atom_expr() to use return instead of goto
    • 🚚 asm*.c: remove unnecessary check for num_locals<0 in asm entry func
    • 🚚 mpz: in mpz_clone, remove unused check for NULL dig
    • mpstate.h: add repl_line state for MICROPY_REPL_EVENT_DRIVEN
    • vm: fix case of handling raised StopIteration within yield from
    • vm: simplify handling of special-case STOP_ITERATION in yield from
    • formatfloat: fix rounding of %f format with edge-case FP values
    • formatfloat: fix case where floats could render with a ":" character
    • formatfloat: fix case where floats could render with negative digits
    • 🚚 objint: remove unreachable code checking for int type in format func
    • misc.h: remove unused count_lead_ones() inline function
    • obj.h: clean up by removing commented-out inline versions of macros
    • obj.h: move declaration of mp_obj_list_init to objlist.h
    • 👉 makeqstrdefs.py: optimise by using compiled re's so it runs faster
    • objexcept: make MP_DEFINE_EXCEPTION public so ports can define excs
    • runtime: check that keys in dicts passed as ** args are strings
    • 👻 runtime: be sure that non-intercepted thrown object is an exception
    • ⚡️ vm: don't do unnecessary updates of ip and sp variables
    • vm: optimise handling of stackless mode when pystack is enabled
    • modsys: don't compile getsizeof function if feature is disabled
    • don't include mp_optimise_value or opt_level() if compiler disabled
    • objint: simplify LHS arg type checking in int binary op functions
    • objstr: in find/rfind, don't crash when end < start
    • stream: switch stream close operation from method to ioctl
    • objgenerator: check stack before resuming a generator
    • ♻️ refactor how native emitter code is compiled with a file per arch
    • 👍 nlrthumb: fix Clang support wrt use of "return 0"
    • mperrno: define MP_EWOULDBLOCK as EWOULDBLOCK, not EAGAIN
    • stream: use uPy errno instead of system's for non-blocking check
    • 🏗 obj.h: fix math.e constant for nan-boxing builds
    • modbuiltins, repl: start qstr probing from after empty qstr
    • runtime: add mp_load_method_protected helper which catches exceptions
    • modbuiltins: make built-in hasattr work properly for user types
    • repl: use mp_load_method_protected to prevent leaking of exceptions
    • modbuiltins: in built-in dir make use of mp_load_method_protected
    • modbuiltins: make built-in dir support the dir special method
    • objdeque: fix sign extension bug when computing len of deque object

    extmod:

    • modussl_axtls: socket_read: Handle EAGAIN
    • moduhashlib: enable SHA1 hashing when using "mbedtls" library
    • vfs_fat: mount FatFS on creation so VFS methods can be used
    • modussl_axtls: implement key and cert kw args to wrap_socket
    • modlwip: commit TCP out data to lower layers if buffer gets full
    • 🚦 machine_signal: change VLA to use new scoped allocation API
    • modure: convert alloca() to use new scoped allocation API
    • modussl_mbedtls: clean up mbedtls state when error during setup
    • modframebuf: add 2-bit color format (GS2_HMSB)
    • modframebuf: add 8-bit greyscale format (GS8)
    • vfs_fat_file: implement SEEK_CUR for non-zero offset
    • modujson: implement ujson.dump() function
    • 🚚 vfs_fat: move ilistdir implementation from misc to main file
    • 🔀 vfs_fat: merge remaining vfs_fat_misc.c code into vfs_fat.c
    • vfs_fat: make fat_vfs_open_obj wrapper public, not its function
    • 🚚 vfs_fat: remove declaration of mp_builtin_open_obj
    • vfs_fat_diskio: use a C-stack-allocated bytearray for block buf
    • machine_spi: make SPI protocol structure public
    • vfs_fat: add file size as 4th element of uos.ilistdir tuple
    • re1.5: fix compilecode.c compile problem on IAR tool chain
    • 👍 modlwip: check if getaddrinfo() constraints are supported or not
    • vfs: delegate import_stat to vfs.stat to allow generic FS import
    • uzlib: fix C-language sequencing error with uzlib_get_byte calls
    • modlwip: in ioctl handle case when socket is in an error state

    lib:

    • 🚚 tinytest: move from tools/tinytest
    • ✅ upytesthelper: add MicroPython test helper layer on top of tinytest
    • ✅ tinytest: clean up test reporting in the presence of stdout output
    • utils/pyexec.h: include py/obj.h because its decls are needed
    • utils/pyexec: update to work with new MICROPY_HW_ENABLE_USB option
    • ⚡️ stm32lib: update library to include support for STM32H7 MCUs
    • ⚡️ stm32lib: update library for fix to H7 SPI strict aliasing error
    • ⚡️ axtls: update, exposes AES functions to implement ECB cipher mode

    drivers:

    • ✅ nrf24l01: make driver and test run on pyboard, ESP8266, ESP32
    • display/ssd1306: make SSD1306 class inherit from FrameBuffer
    • 👍 sdcard: support old SD cards (<=2GB)
    • sdcard: avoid allocation on the heap
    • ⚡️ sdcard: update doc for ESP8266 to use correct SPI number
    • ⚡️ cc3200: update to work with new stm32 SPI API
    • ⚡️ sdcard: update SD mounting example code for ESP8266
    • bus: add QSPI abstract type with software QSPI implementation
    • 👍 memory/spiflash: add support for QSPI interface
    • bus: pull out software SPI implementation to dedicated driver
    • memory/spiflash: change to use low-level SPI object not uPy one

    tools:

    • mpy-tool.py: implement freezing of Ellipsis const object
    • ⚡️ gen-cpydiff.py: update executable paths to point to new ports dir
    • ✅ tinytest-codegen.py: generate code for upytesthelper
    • ✅ tinytest-codegen: wrap lines of exclude_tests
    • ✅ tinytest-codegen: more excludes after enabling expected output match
    • ✅ tinytest-codegen: take --target= option for test set selection
    • pydfu.py: call set_configuration() on fresh USB device object
    • ✅ tinytest-codegen: add --stdin switch instead of recently added --target
    • ✅ tinytest-codegen: ignore system locale, write output in UTF-8
    • ⬆️ upip: upgrade upip to 1.2.4

    ✅ tests:

    • ✅ net_hosted: add test for socket connect() and poll() behaviour
    • ✅ basics: add test for containment of a subclass of a native type
    • ✅ basics/builtin_range: add test for corner case of range slicing
    • ✅ basics/builtin_locals: add test for using locals() in class body
    • ✅ cpydiff: add difference-test for second arg of builtin next()
    • cpydiff: fix markup where "" (xref) was used instead of "`" (code)
    • heapalloc_*: refactor some tests to work in strict stackless mode
    • heapalloc, heapalloc_super: skip in strict stackless mode
    • ✅ basics: add test for overriding a native base-class's init method
    • ✅ extmod: add test which subclasses framebuf.FrameBuffer
    • ⚡️ cpydiff: update subclassing Exception case and give work-around
    • 🛠 fix few test for proper "skipped" detection with qemu-arm's tinytest
    • ✅ run-tests: add --list-tests switch
    • ➕ add tests to improve coverage of py/objtype.c
    • ✅ run-tests: fix handling of --list-tests wrt skipped tests
    • ✅ run-tests: add composable --include and --exclude options
    • ✅ run-tests: don't test for --target=unix with "pyb is None"
    • ✅ run-tests: skip running feature checks for --list-tests/--write-exp
    • ✅ basics: add more set tests to improve coverage of py/objset.c
    • ✅ extmod/uhashlib_sha256: add test for hashing 56 bytes of data
    • float/builtin_float_hash: add test to improve objfloat.c coverage
    • ✅ unix: add test for printf with %lx format
    • basics/generator_pend_throw: add test for just-started generator
    • ✅ basics/builtin_pow3: add tests for edge cases of pow3
    • ➕ add some more tests to improve coverage of py/parse.c
    • ✅ extmod: add some uctypes tests to improve coverage of that module
    • ✅ basics/memoryerror: add test for out-of-memory using realloc
    • ✅ basics: rename remaining tests that are for built-in functions
    • unix: add coverage test for calling mp_obj_new_bytearray
    • ✅ automatically skip tests that require eval, exec or frozenset
    • ✅ rewrite some tests so they can run without needing eval/exec
    • ✅ run-tests: capture any output from a crashed uPy execution
    • ✅ basics/deque*: tests for ucollections.deque
    • ✅ basics: add tests to improve coverage of py/objdeque.c
    • ✅ basics: add test for calling a subclass of a native class
    • ✅ stress: add test to create a dict beyond "maximum" rehash size
    • unix: add coverage tests for mpz_set_from_float, mpz_mul_inpl
    • extmod/vfs_fat_fileio1: add test for failing alloc with finaliser
    • ✅ extmod/uzlib_decompress: add uzlib tests to improve coverage
    • ✅ float: adjust float-parsing tests to pass with only a small error
    • ✅ unix: add coverage test for VM executing invalid bytecode
    • ✅ basics/gc1: add test which triggers GC threshold
    • extmod/vfs_fat_fileio1: add test for calling file obj finaliser
    • ✅ unix: add coverage tests for various GC calls
    • 🚚 move heap-realloc-while-locked test from C to Python
    • ✅ unix: add coverage test for uio.resource_stream from frozen str
    • extmod/time_ms_us: add test for calling ticks_cpu()
    • extmod/time_ms_us: fix ticks tests, ticks_diff args are reversed
    • ✅ basics/builtin_enumerate: add test for many pos args to enumerate
    • ↪ cpydiff: indent workaround code snippet so it formats correctly
    • ⚡️ pyb: update CAN test to expect that auto_restart is printed
    • ⚡️ pyb/can: update to test pyb.CAN restart, state, info, inplace recv
    • ✅ basics/iter1.py: add more tests for walking a user-defined iter
    • ✅ basics: add test for use of return within try-except
    • ✅ basics/int_big1.py: add test converting str with non-print chars
    • ✅ basics: modify int-big tests to prevent constant folding
    • ✅ stress: add test to verify the GC can trace nested objects
    • ✅ basics/int_big1.py: add test for big int in mp_obj_get_int_maybe
    • ✅ basics: add test for subclassing an iterable native type
    • ✅ basics: add tests for edge cases of nan-box's 47-bit small int
    • ✅ basics/class_super.py: add tests for store/delete of super attr
    • ✅ basics/string_compare.py: add test with string that hashes to 0
    • ✅ micropython: add set of tests for extreme cases of raising exc's
    • ✅ stress/recursive_gen: add test for recursive gen with iter
    • 🚚 move recursive tests to the tests/stress/ subdir
    • ✅ pyb/adc.py: fix test so that it really does test ADC values
    • ✅ pyb: add test for pyb.ADCAll class
    • 🚚 io/bytesio_ext2: remove dependency on specific EINVAL value
    • ✅ run-tests: support esp32 as a target for running the test suite
    • cpydiff: remove core_function_unpacking now that it succeeds
    • cpydiff: remove types_str_decodeerror now that it succeeds
    • cpydiff: remove working cases from types_float_rounding
    • cpydiff: remove types_int_tobytesfloat now that it doesn't fail
    • ✅ float/float_parse: allow test to run on 32-bit archs

    minimal port:

    • ⚡️ README: update text to better describe what "make run" does
    • 🏗 Makefile: explicitly include lib/utils/printf.c in build
    • 🏗 Makefile: only build with core source files

    unix port:

    • moduselect: add .dump() method for debugging
    • mpconfigport: disable uio.resource_stream()
    • ➕ add support for using the Python stack
    • 👉 Makefile: coverage: allow user to pass CFLAGS_EXTRA
    • mpconfigport.h: allow to override stackless options from commandline
    • mpconfigport_coverage.h: enable MICROPY_PY_IO_RESOURCE_STREAM
    • mpconfigport_coverage: enable range (in)equality comparison
    • ✅ coverage: allow coverage tests to pass with debugging disabled

    🏁 windows port:

    • mpconfigport: provide off_t definition for MSVC port
    • mpconfigport: enable some features, including the Python stack
    • ➕ add Appveyor CI builds for windows mingw port

    qemu-arm port:

    • ✅ rework "test" target using upytesthelper
    • ✅ test_main: clean up invocation of tinytest_main()
    • test_main: include setjmp.h because it's used by gc_collect

    stm32 port:

    • boards/NUCLEO_F429ZI: incr CPU freq to 168MHz to get USB working
    • 👍 boards: add support for NUCLEO-F746ZG evaluation board
    • ⚡️ boards/stm32f767_af.csv: update AF table based on datasheet
    • boards/*_af.csv: make consistent use of JTMS, JTCK, SWDIO, SWCLK
    • ➕ add support for using the Python stack
    • usbdev: pass thru correct val for SCSI PreventAllowMediumRemoval
    • use corrected capitalization of HAL_SD_CardStateTypedef
    • 👍 allow to build a board without any hardware I2C ports defined
    • 👍 uart: add support for 7-bit modes: 7N1 and 7N2
    • 👍 uart: support board configs with CTS/RTS on UART6
    • i2c: fix bug with I2C4 initialisation
    • 👍 i2c: support more I2C baudrates for F746, and more F7 MCUs
    • spi: if MICROPY_HW_SPIn_MISO undefined, do not claim pin on init
    • modmachine: handle case of no MICROPY_PY_MACHINE_I2C
    • ➕ add support for DHT11/DHT22 sensors
    • spi: make SPI DMA wait routine more power efficient by using WFI
    • sdcard: make SD wait routine more power efficient by using WFI
    • usbdev: reduce dependency on py header files
    • usbdev: combine all str descriptor accessor funcs into one func
    • 👍 can: support MCUs without a CAN2 peripheral
    • 👌 improve support for STM32F722, F723, F732, F733 MCUs
    • 🚤 modmachine: in freq(), select flash latency value based on freq
    • sdcard: only define IRQ handler if using SDMMC1 peripheral
    • sdcard: use maximum speed SDMMC clock on F7 MCUs
    • 👍 usbdev: add support for MSC-only USB device class
    • usb: allow board to select which USBD is used as the main one
    • 👍 usbdev: add support for high-speed USB device mode
    • i2c: use macros instead of magic numbers for I2C speed grades
    • 👍 spi: add support for a board naming SPI peripherals 4, 5 and 6
    • rng: simplify RNG implementation by accessing raw peripheral regs
    • spi: allow SPI peripheral state to persist across a soft reset
    • i2c: allow I2C peripheral state to persist across a soft reset
    • 👍 spi: provide better separation between SPI driver and uPy objs
    • ⚡️ update LCD and network drivers to work with new SPI API
    • spi: accept machine.SPI object in spi_from_mp_obj() function
    • rtc: fix rtc_info flags when LSE fails and falls back to LSI
    • rtc: fix RTC init to use LSI if LSI is already selected on boot
    • rtc: add compile-time option to set RTC source as LSE bypass
    • main: reorder some init calls to put them before soft-reset loop
    • main: remove need for first_soft_reset variable
    • ➕ add mpconfigboard_common.h with common/default board settings
    • 🚚 boards: remove all config options that are set to defaults
    • usbdev: fix USBD setup request handler to use correct recipient
    • ⚡️ update HAL macro and constant names to use newer versions
    • 👍 timer: support MCUs that don't have TIM4 and/or TIM5
    • introduce MICROPY_HW_ENABLE_USB and clean up USB config
    • ⚡️ boards: update all boards to work with new USB configuration
    • factor out flash and SPI block-device code to separate files
    • 🔄 change header include guards from STMHAL to STM32 to match dir
    • ➕ add board config option to enable/disable the ADC
    • 🏗 use "GEN" for describing files generated in the build
    • flash: use FLASH_TYPEPROGRAM_WORD to support newer HALs
    • 🚚 move MCU-specific cfg from mphalport.h to mpconfigboard_common.h
    • ⚡️ spibdev: update to work with new spiflash driver
    • 🔧 spibdev: add option to configure SPI block dev to use QSPI flash
    • storage: add option for bdev to supply readblock/writeblocks
    • spibdev: convert to use multiple block read/write interface
    • qspi: add hardware QSPI driver, with memory-map capability
    • i2c: on F4 MCUs report the actual I2C SCL frequency
    • 📌 boards/stm32f767_af.csv: add ADC column to pin capability list
    • ⚡️ boards/NUCLEO_F767ZI: update pins list to include 3 extra pins
    • boards: add stm32h743_af.csv file describing H7 GPIO alt funcs
    • boards: add stm32h743.ld linker script
    • 🔧 boards: add new NUCLEO_H743ZI board configuration files
    • 👉 Makefile: add settings to support H7 MCUs
    • 👍 flash: add flash support for H7 MCUs
    • system_stm32: add H7 MCU system initialisation
    • mphalport: use GPIO BSRRL/BSRRH registers for H7 MCUs
    • 👍 wdt: add WDT support for H7 MCUs
    • 👍 uart: add UART support for H7 MCUs
    • 👍 timer: add Timer support for H7 MCUs
    • 👍 modmachine: support basic H7 MCU features
    • 👍 usbd_conf: add USB support for H7 MCUs
    • 👍 stm32_it: add support for H7 MCUs
    • 👍 dma: add DMA support for H7 MCUs
    • 👍 rtc: add RTC support for H7 MCUs
    • 👍 extint: add EXTI support for H7 MCUs
    • 🔧 mpconfigboard_common: add STM32H7 common configuration
    • main: enable D2 SRAM1/2/3 clocks on H7 MCUs
    • boards: add startup_stm32h7.s for H7 series specific startup
    • boards: add startup_stm32f7.s for F7 series specific startup
    • boards: add startup_stm32f4.s for F4 series specific startup
    • boards: add startup_stm32l4.s for L4 series specific startup
    • 👉 Makefile: use separate startup file for each MCU series
    • ✂ remove startup_stm32.S, now provided in boards/ for each MCU
    • usbd_conf.h: add include of stdint.h to fix compilation issues
    • system_stm32: fix CONFIG_RCC_CR_2ND value to use bitwise or
    • 🔀 storage: merge all misc block-dev funcs into a single ioctl func
    • storage: make spi_bdev interface take a data pointer as first arg
    • 🚚 storage: remove all SPI-flash bdev cfg, to be provided per board
    • storage: introduce MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE cfg
    • boards/STM32L476DISC: provide SPI-flash bdev config
    • 👍 storage: provide support for a second block device
    • qspi: do an explicit read instead of using memory-mapped mode
    • boards/STM32L476DISC: enable CAN peripheral
    • can: improve can.recv() so it checks for events, eg ctrl-C
    • can: use enums to index keyword arguments, for clarity
    • can: add "auto_restart" option to constructor and init() method
    • can: add CAN.restart() method so controller can leave bus-off
    • can: add CAN.state() method to get the state of the controller
    • can: add CAN.info() method to retrieve error and tx/rx buf info
    • use STM32xx macros instead of MCU_SERIES_xx to select MCU type
    • can: add "list" param to CAN.recv() to receive data inplace
    • dma: enable H7 DMA descriptors
    • 🔧 i2c: add H7 I2C timing configurations
    • 👍 boards/NUCLEO_H743ZI: enable hardware I2C support
    • boards/NUCLEO_H743ZI: disable uSD transceiver
    • 👉 Makefile: re-enable strict aliasing optimisation for ST HAL files
    • 📌 consolidate include of genhdr/pins.h to single location in pin.h
    • 🔧 qspi: don't take the address of pin configuration identifiers
    • *bdev.c: eliminate dependency on sys_tick_has_passed
    • boards: allow boards to have finer control over the linker script
    • ➕ Makefile: rename FLASH_ADDR/TEXT_ADDR to TEXT0_ADDR/TEXT1_ADDR
    • 👉 Makefile: allow a board to config either 1 or 2 firmware sections
    • boards: add common_basic.ld for a board to have a single section
    • boards: add common_bl.ld for boards that need a bootloader
    • system_stm32: set VTOR pointer from TEXT0_ADDR
    • boards/stm32f767.ld: add definition of FLASH_APP
    • 🚚 boards/stm32h743.ld: remove include of common.ld
    • ⚡️ boards/NUCLEO_H743ZI: update to build with new linker management
    • 🚚 dma: remove H7 SDMMC DMA descriptors
    • 👍 sdcard: add H7 SD card support
    • 👍 boards/NUCLEO_H743ZI: enable SD card support
    • change pin_X and pyb_pin_X identifiers to be pointers to objects
    • ⚡️ boards/STM32L476DISC: update to not take the address of pin objs
    • ➕ add custom, optimised Reset_Handler code
    • main: rename main to stm32_main and pass through first argument
    • ⚡️ main: only update reset_mode if board doesn't use a bootloader
    • mphalport: use MCU regs to detect if cycle counter is started
    • 👍 dac: add support for H7 MCUs
    • boards/NUCLEO_H743ZI: enable DAC peripheral
    • i2c: update HAL macros to use new __HAL_RCC prefix
    • 👍 i2c: fully support peripheral I2C4
    • 0️⃣ main: guard usb_mode lines in default boot.py by relevant #if
    • adc: fix verification of ADC channel 16 for F411 MCUs
    • adc: add read_timed_multi() static method, with docs and tests
    • adc: optimise read_timed_multi() by caching buffer pointers
    • dac: add buffering argument to constructor and init() method
    • adc: factor code to optimise adc_read_channel and adc_read
    • adc: fix config of EOC selection and Ext-Trig for ADC periph
    • adc: factor common ADC init code into adcx_init_periph()
    • 🚚 pin: in pin AF object, remove union of periph ptr types
    • 🔧 can: allow CAN pins to be configured per board
    • stm32_it: add IRQ handler for I2C4
    • 👍 allow a board to configure the HSE in bypass mode
    • 🔧 main: allow a board to configure the label of the flash FS
    • sdcard: implement BP_IOCTL_SEC_COUNT to get size of SD card
    • rng: set RNG clock source for STM32H7
    • boards/NUCLEO_H743ZI: enable RNG for this board
    • uart: allow ctrl-C to issue keyboard intr when REPL is over UART
    • uart: allow ctrl-C to work with UARTs put on REPL via os.dupterm
    • introduce MICROPY_PY_STM config to include or not the stm module
    • 👍 dac: support MCUs that don't have TIM4/5 and use new HAL macro
    • 📇 rename i2c.c to pyb_i2c.c
    • rename legacy pyb.I2C helper functions to start with pyb_i2c_
    • i2c: add low-level I2C driver for F7 MCUs
    • machine_i2c: provide hardware I2C for machine.I2C on F7 MCUs
    • system_stm32: reconfigure SysTick IRQ priority for L4 MCUs
    • boards/NUCLEO_H743ZI: use priority 0 for SysTick IRQ
    • 👍 adc: add support for H7 MCU series
    • boards/NUCLEO_H743ZI: enable ADC peripheral
    • mphalport: add mp_hal_pin_config_speed() to select GPIO speed
    • usbd_conf: use mp_hal_pin_config() instead of HAL_GPIO_Init
    • dac: use mp_hal_pin_config() instead of HAL_GPIO_Init()
    • ⚡️ boards: update pins.csv to include USB pins where needed
    • 📌 mphalport: support ADC mode on a pin for L4 MCUs
    • adc: use mp_hal_pin_config() instead of HAL_GPIO_Init()
    • dac: make deinit disable the output buffer on H7 and L4 MCUs
    • 🖨 dac: implement printing of a DAC object
    • mphalport: optimise the way that GPIO clocks are enabled
    • 🚚 flash: remove unused src parameter from flash_erase()
    • dma: always deinit/reinit DMA channels on L4 MCUs
    • irq: define IRQ priorities directly as encoded hardware values
    • main: clean up and optimise initial start-up code of the MCU
    • dma: fix duplicate typedef of struct, it's typedef'd in dma.h
    • don't use %lu or %lx for formatting, use just %u or %x
    • 👉 Makefile: use -O2 to optimise compilation of lib/libc/string0.c
    • i2c: make sure stop condition is sent after receiving addr nack
    • usb: fix broken pyb.have_cdc() so it works again
    • usb: use correct type for USB HID object
    • ⚡️ README: update to reflect current MCU support

    teensy port:

    • ⚡️ update GPIO speed consts to align with changes in stm32 port

    esp8266 port:

    • etshal.h: make function prototypes compatible with ESP SDK 2.1.0+
    • 0️⃣ README: emphasize the need to change default WiFi password
    • README: add section on using upip
    • esp8266_common.ld: put .text of more libs into .irom0.text
    • modules/webrepl_setup: fix first-time enable of WebREPL
    • modnetwork: make sure to intern string passed to .config("param")
    • machine_hspi: after an SPI write wait for last byte to transfer
    • 🚚 modules: move dht.py driver to drivers/dht directory
    • esppwm: clip negative duty numbers to 0
    • ⚡️ README.md: update build instruction to reflect new ports dir
    • uart: allow to compile with event-driven REPL
    • modnetwork: implement WLAN.status('rssi') for STA interface
    • esppwm: always start timer to avoid glitch from full to nonfull
    • esp_mphal.h: fix I2C glitching by using input mode for od_high
    • modnetwork: allow to get ESSID of AP that STA is connected to
    • 🏗 disable DEBUG_PRINTERS for 512k build

    esp32:

    • ➕ add new port to Espressif ESP32 SoC
    • ⏱ modnetwork: give better error msgs for AP timeout and not-found
    • ➕ modsocket: implement setsockopt(IP_ADD_MEMBERSHIP)
    • mpconfigport.h: add missing uhashlib
    • mphalport.h: make mp_hal_pin_ select gpio on the pad
    • call initialization function on sha1 and sha256
    • implement machine.WDT() class
    • ⚡️ README: update general description of port to add avail features
    • modutime.c: add localtime and mktime functions
    • machine_pwm: always set the channel in the PWM object
    • ⚡️ update to latest ESP IDF
    • modules: symlink in ntptime.py from esp8266/modules
    • modnetwork.c: fix for setting DNS with network.WLAN.ifconfig()
    • mpconfigport.h: enable ussl finaliser
    • implement wired Ethernet via network.LAN()
    • mpconfigport.h: enable websocket module
    • 🌲 modesp: add osdebug() function to disable or change IDF logging
    • 👉 Makefile: support using IDF_PATH as the env var to the IDF source
    • ➕ add custom partitions.csv file with uPy specific size
    • machine_hw_spi: fix large HW SPI transfers by splitting them up
    • ⚡️ README: update toolchain setup
    • machine_uart: fix check of UART id so it only allows valid UARTs
    • machine_rtc: add RTC class to machine module with sleep impl
    • 👍 modesp32: add new module "esp32" to support extra wake features
    • 🚚 machine_rtc: move export declaration from .c to common .h file
    • modnetwork: implement dhcp_hostname for WLAN.config()
    • ⚡️ update to the latest ESP IDF
    • main: allocate the uPy heap via malloc instead of on the bss
    • modsocket: allow getaddrinfo() to take up to 6 args
    • modnetwork: implement status('stations') to list STAs in AP mode
    • machine_uart: return None from UART read if no data is available
    • 🚚 machine_uart: remove UART event queue object
    • README.md: fix typo readme
    • mphalport: use esp_timer_get_time instead of gettimeofday
    • mphalport: improve mp_hal_delay_us so it handles pending events
    • mphalport: improve mp_hal_stdout_tx_XXX functions
    • ➕ add support for and enable uos.dupterm()
    • 👍 modsocket: add support for registering socket event callbacks
    • mpconfigport: enable webrepl module and socket events
    • 👍 modules: add support scripts for WebREPL
    • ➕ add support for the esp32's ULP
    • modnetwork: allow to get ESSID of AP that STA is connected to
    • ⚡️ README: add --init to submodule update command
    • modsocket: correctly handle reading from a peer-closed socket
    • use mp_rom_map_elem_t and MP_ROM_xxx macros for const dicts
    • modsocket: check for pending events during blocking socket calls

    zephyr port:

    • README: "make qemu" was replaced with "make run"
    • Makefile: clean: Remove generated prj_*_merged.conf
    • 🏗 prj_base.conf: force zephyr.bin build output
    • 👷 Makefile: convert to new CMake-based Zephyr build system
    • 👉 Makefile: make prj_$(BOARD).conf optional, again
    • 🚚 Makefile: syscall_macros.h generation was moved from CMake to make
    • ⚡️ CMakeLists.txt: update for latest Zephyr buildsys changes
    • CMakeLists.txt: properly separate CFLAGS parts gotten from CMake
    • 🚚 main: move var declarations to the top of file
    • ➕ add support for binary with builtin testsuite
    • prj_base.conf: bump MAIN_STACK_SIZE to let builtin testsuite run
    • 👉 Makefile: clean: Clean libmicropython.a too
    • 🚚 main: remove unused do_str() function

    📄 docs:

    • esp8266/general: TLS limitations: mention also "ussl" module limitations
    • ure: add flags arg to ure.compile(), mention that ure.DEBUG is optional
    • 👍 ure: emphasize not supported features more
    • 📄 _thread: add a placeholder docs for _thread module
    • ✨ library/network: enhance AbstractNIC.status to take an argument
    • ➕ add notes on heap allocation caused by bound method refs
    • 📊 uselect: poll: Explicitly specify that no-timeout value is -1
    • uctypes: tweak descriptor reference to hopefully be easier to follow
    • 👉 uselect: describe POLLHUP/POLLERR semantics in more details
    • library/utime: fix incorrect example with ticks_diff args order
    • 👉 uselect: ipoll: Fix grammar/wording of one-shot flag description
    • glossary: describe the callee-owned tuple concept
    • uerrno: fix xref-vs-code markup
    • glossary: describe "stream" term
    • glossary: describe string interning
    • library: add xrefs to "stream" dictionary entry for many modules
    • glossary: clarify wording for "baremetal"
    • 🚀 reference/packages: add chapter on distribution packages and deployment
    • 📦 packages: add quick "Creating distribution packages" section
    • 📦 packages: mpy_bin2res no longer required to create resources
    • 📄 conf: reference CPython 3.5 docs
    • 📦 packages: use "install_dir/" in examples
    • 📦 packages: explicitly recommend usage of setuptools instead of distutils
    • library/index: elaborate uPy libraries intro
    • library/pyb.rst: add note about availability of USB MSC-only mode
    • ⚡️ esp8266: update PWM doc regarding clipping of min/max values
    • esp8266: add a note concerning GPIO16 pull capabilities
    • library/ujson: document dump() and load() functions
    • library/usocket: make xref to uerrno explicitly a module reference
    • library/micropython: describe optimisation levels for opt_level()
    • library/uos: create sections for distinct parts and document uname
    • library/uos: document mount, umount, VfsFat and block devices
    • reference/repl.rst: fix some minor errors in the REPL tutorial
    • library/pyb.ADC: document new features for ADCAll
    • 🚚 library/pyb.ADC: remove outdated ADCAll code example
    • library: add ussl module to library index for unix port

    travis:

    • pass -j4 to make to speed up compilation
    • ⚡️ update for qemu-arm's testing moved to Makefile.test
    • 🏗 build and test strict stackless build
    • ➕ add Unix coverage test for script via stdin
  • v1.9.3

    November 01, 2017

    🚀 The main change in this release is the introduction of a "ports/" subdirectory at the top-level of the repository, and all of the ports are moved here. In the process the "stmhal" port is renamed to "stm32" to better reflect the MCU that it targets. In addition, the STM32 CMSIS and HAL sources are moved to a new submodule called "stm32lib".

    🚀 The bytecode has changed in this release, compared to the previous release, and as a consequence the .mpy version number has increased to version 3. This means that scripts compiled with the previous mpy-cross must be recompiled to work with this new version.

    There have also been various enhancements and optimisations, such as: check for valid UTF-8 when creating str objects, support for reverse special binary operations like __radd__, full domain checking in the math module, support for floor-division and modulo in the viper emitter, and addition of stack overflow checking when executing a regex.

    The stm32 port sees improved support for F7 MCUs, addition of a new board B_L475E_IOT01A based on the STM32L475, and support for the Wiznet W5500 chipset along with improved socket behaviour.

    A detailed list of changes follows.

    py core:

    • objstr: startswith, endswith: check arg to be a string
    • nlrx86,x64: replace #define of defined() with portable macro usage
    • objtype: handle NotImplemented return from binary special methods
    • objtype: mp_obj_class_lookup: improve debug logging
    • 🚚 map: remove unused new/free functions
    • make m_malloc_fail() have void return type, since it doesn't return
    • modstruct: in struct.pack, stop converting if there are no args left
    • modstruct: check and prevent buffer-read overflow in struct unpacking
    • modstruct: check and prevent buffer-write overflow in struct packing
    • nlrthumb: get working again on standard Thumb arch (ie not Thumb2)
    • objfloat: fix binary ops with incompatible objects
    • obj: fix comparison of float/complex NaN with itself
    • objtype: implement fallback for instance inplace special methods
    • objtuple: properly implement comparison with incompatible types
    • objstr: add check for valid UTF-8 when making a str from bytes
    • objlist: properly implement comparison with incompatible types
    • runtime0.h: move relational ops to the beginning of mp_binary_op_t
    • runtime0.h: move MP_BINARY_OP_DIVMOD to the end of mp_binary_op_t
    • objtype: make sure mp_binary_op_method_name has full size again
    • ⚙ runtime0.h: put inplace arith ops in front of normal operations
    • builtinhelp: simplify code slightly by extracting object type
    • ⚙ runtime: implement dispatch for "reverse op" special methods
    • 🏗 nlrx86: fix building for Android/x86
    • builtinhelp: change signature of help text var from pointer to array
    • ⚠ runtime.h: change empty mp_warning macro so var-args are non empty
    • modbuiltins: implement abs() by dispatching to MP_UNARY_OP_ABS
    • {objfloat,objcomplex}: optimise MP_UNARY_OP_ABS by reusing variables
    • mpconfig.h: add note that using computed gotos in VM is not C99
    • 0️⃣ objstr: strip: don't strip "\0" by default
    • objexcept: prevent infinite recursion when allocating exceptions
    • ➕ stream: remove unnecessary checks for NULL return from vstr_add_len
    • 🛠 vstr: raise a RuntimeError if fixed vstr buffer overflows
    • 👻 vm: use lowercase letter at start of exception message
    • persistentcode: define mp_raw_code_save_file() for any unix target
    • ➕ add config option to print warnings/errors to stderr
    • 👍 objfloat: support raising a negative number to a fractional power
    • objset: simplify set and frozenset by separating their locals dicts
    • objset: check that RHS of a binary op is a set/frozenset
    • 🚚 objset: include the failed key in a KeyError raised from set.remove
    • objtype: change type of enum-to-qstr table to uint16_t to save space
    • objstr: make empty bytes object have a null-terminating byte
    • 🖨 mpprint: only check for null string printing when NDEBUG not defined
    • objtype: clean up unary- and binary-op enum-to-qstr mapping tables
    • persistentcode: bump .mpy version number to version 3
    • bc: update opcode_format_table to match the bytecode
    • modmath: add full checks for math domain errors
    • modmath: convert log2 macro into a function
    • 🖨 formatfloat: don't print the negative sign of a NaN value
    • formatfloat: use standard isinf, isnan funcs instead of custom ones
    • modbuiltins: use existing utf8_get_char helper in builtin ord func
    • emitnative: implement floor-division and modulo for viper emitter
    • objtype: use CPython compatible method name for sizeof
    • objtype: fit qstrs for special methods in byte type
    • objtype: define all special methods if requested
    • objtype: introduce MICROPY_PY_ALL_INPLACE_SPECIAL_METHODS

    extmod:

    • modubinascii: only include uzlib/tinf.h when it's really needed
    • modussl_mbedtls: allow to compile with MBEDTLS_DEBUG_C disabled
    • machine_pinbase: put PinBase singleton in ROM
    • ⬆️ re1.5: upgrade to v0.8.2, adds hook for stack overflow checking
    • modure: add stack overflow checking when executing a regex
    • ⚡️ uos_dupterm: update uos.dupterm() and helper funcs to have index
    • uos_dupterm: swallow any errors from dupterm closing the stream
    • vfs: replace VLA in proxy func with small, static sized array
    • 👍 modussl: add finaliser support for ussl objects
    • 🏗 modussl_mbedtls: allow to compile with unix coverage build

    lib:

    • ➕ add new submodule, stm32lib containing STM32 CMSIS and HAL source
    • embed/abort_: use mp_raise_msg helper function
    • libm: fix tanhf so that it correctly handles +/- infinity args
    • libm: remove implementation of log2f, use MP_NEED_LOG2 instead
    • ⚡️ axtls: update, support for SSL_EAGAIN return code
    • ⚡️ berkeley-db-1.xx: update, allow to override MINCACHE, DEFPSIZE

    drivers:

    • memory/spiflash: change from hard-coded soft SPI to generic SPI
    • 🐎 display/ssd1306.py: improve performance of graphics methods
    • ✅ nrf24l01: make nRF24L01 test script more portable
    • display/ssd1306: implement SSD1306_I2C poweron method
    • display/ssd1306: make poweron() work the same with SSD1306_SPI
    • 🐎 wiznet5k: improve the performance of socket ops with threading
    • wiznet5k: get low-level W5500 driver working

    tools:

    • ⬆️ upip: upgrade to 1.2.2
    • pyboard: use repr() when quoting data in error messages
    • ⚡️ pyboard: update docstring for additional device support

    ✅ tests:

    • 🆕 object_new: better messages, check user new () method
    • 🆕 class_new: add checks for init being called and other improvements
    • 🆕 class_new: add another testcase for new / init interaction
    • class_inplace_op: test for inplace op fallback to normal one
    • ⚡️ run-bench-tests: update locations of executables, now in ports/
    • class_reverse_op: test for reverse arith ops special methods
    • run-tests: skip class_inplace_op for minimal profile
    • ✅ run-tests: fix copy-paste mistake in var name
    • cpydiff: add cases for locals() discrepancies
    • ✅ extmod: add test for ure regexes leading to infinite recursion
    • ✅ extmod: add test for '-' in character class in regex
    • ✅ run-tests: close device under test using "finally"
    • ⚡️ net_inet: update tls test to work with CPython and incl new site

    unix port:

    • 📇 rename modsocket.c to modusocket.c
    • modusocket: remove #if MICROPY_SOCKET_EXTRA code blocks
    • enable MICROPY_PY_REVERSE_SPECIAL_METHODS

    stm32 port:

    • modmachine: make machine.bootloader() work when MPU is enabled
    • 👍 modmachine: improve support for sleep/deepsleep on F7 MCUs
    • 🏗 compute PLL freq table during build instead of at run time
    • modmachine: for F7 MCU, save power by reducing internal volt reg
    • boards/pllvalues.py: make script work with both Python 2 and 3
    • 👉 Makefile: use lib/stm32lib instead of local cmsis and hal files
    • ✂ remove cmsis and hal files, they are now a submodule
    • 👉 Makefile: automatically fetch stm32lib submodule if needed
    • ⚡️ update to new STM Cube HAL library
    • 🛠 fix clock initialisation of L4 MCUs
    • 📇 rename stmhal port directory to stm32
    • ✂ remove unused usbd_msc.c file
    • boards: change remaining stm32f4xx_hal_conf.h to unix line ending
    • boards: change linker scripts to use "K" instead of hex byte size
    • 📌 boards: fix I2C1 pin mapping on NUCLEO_F401RE/F411RE boards
    • i2c: when scanning for I2C devices only do 1 probe per address
    • 🚀 modnwwiznet5k: release the GIL on blocking network operations
    • boards: add new board B_L475E_IOT01A based on STM32L475
    • 👉 make-stmconst.py: make sure mpz const data lives in ROM
    • timer: make pyb.Timer() instances persistent
    • 🔧 mpconfigport.h: add configuration for max periphs on L4 series
    • usbdev: make the USBD callback struct const so it can go in ROM
    • usbdev: change static function variable to non-static
    • usbdev: put all CDC state in a struct
    • usbdev: put all HID state in a struct
    • usbdev: simplify CDC tx/rx buffer passing
    • usbdev: simplify HID tx/rx buffer passing
    • usbdev/core: add state parameter to all callback functions
    • usbdev: put all state for the USB device driver in a struct
    • usbdev: simplify pointers to MSC state and block dev operations
    • 🔀 usbdev: merge all global USB device state into a single struct
    • usbdev: make device descriptor callbacks take a state pointer
    • 🚚 usbdev: move all the USB device descriptor state into its struct
    • timer: enable ARPE so that timer freq can be changed smoothly
    • modnwwiznet5k: get the IP address of an established socket
    • ✏️ boards: fix typos in stm32f767_af.csv table
    • usbd_cdc_interface: don't reset CDC output buf on initialisation
    • modnwwiznet5k: implement WIZNET5K.isconnected() method
    • modusocket: make getaddrinfo() work when passed an IP address
    • modusocket: return OSError(-2) if getaddrinfo fails
    • mpconfigport.h: add MICROPY_THREAD_YIELD() macro
    • 👍 modnwwiznet5k: add support for W5500 Ethernet chip
    • modnwwiznet5k: increase SPI bus speed to 42MHz
    • modnwwiznet5k: implement stream ioctl for the Wiznet driver
    • mphalport: improve efficiency of mp_hal_stdout_tx_strn_cooked
    • 👉 make uos.dupterm() conform to specs by using extmod version

    cc3200 port:

    • enable micropython.kbd_intr() method
    • 👉 use standard implementation of keyboard interrupt

    esp8266 port:

    • rename axtls_helpers.c to posix_helpers.c
    • posix_helpers: set ENOMEM on memory alloc failure
    • set DEFPSIZE=1024, MINCACHE=3 for "btree" module
    • esp_mphal: send data in chunks to mp_uos_dupterm_tx_strn
    • modnetwork: add "bssid" keyword arg to WLAN.connect() method
    • modules/webrepl_setup: add info about allowed password length

    zephyr port:

    • 🚚 Makefile: revamp "test" target after ports were moved to ports/
    • use CONFIG_NET_APP_SETTINGS to setup initial network addresses
    • 💅 switch to interrupt-driven pull-style console

    pic16bit port:

    • ➕ add definition of SEEK_SET to unistd.h

    📄 docs:

    • ⏱ pyboard/tutorial: add "timeout=0" to UART in pass-through example
    • more xrefs to "MicroPython port" in glossary
    • library/network: fix ref to "socket" module (should be "usocket")
    • 💅 machine.Signal: improve style/grammar and add usage example
    • library: add description of "index" parameter to uos.dupterm()
    • library/micropython: fix typo in RST formatting
    • library/framebuf.rst: generalise constructor to all colour formats
    • btree: describe page caching policy of the underlying implementation
    • ⚡️ esp8266/tutorial: update neopixel with example of using 4 bbp
    • library/network: clarify usage of "bssid" arg in connect() method
    • pyboard/quickref: add info for Switch, RTC, CAN, Accel classes
    • ⚡️ pyboard/tutorial: update now that yellow LED also supports PWM
    • esp8266/quickref: add quickref info for RTC class
    • library: add missing cross-ref links for classes in pyb module
    • ⚡️ library/network: update docs to state that W5500 is supported
    • 👉 uselect: document one-shot polling mode
    • usocket: elaborate descriptions
    • usocket: document inet_ntop(), inet_pton()
    • library/network: add dhcp_hostname parameter
    • reference/isr_rules: minor typo correction
    • ussl: fix module name refs and use "MicroPython port" term
    • esp8266/general: add section on TLS limitations
    • 👍 usocket: document that settimeout() isn't supported by all ports
    • 👍 ure: add "|" (alternative) to the list of supported operators
    • ⏱ reference/isr_rules.rst: add tutorial on use of micropython.schedule()

    travis:

    • ⬆️ use --upgrade when pip is installing cpp-coveralls
    • ⚡️ update build command now that stm32 Wiznet config has changed

    examples:

    • hwconfig_console: add .on()/.off() methods

    all:

    • convert mp_uint_t to mp_unary_op_t/mp_binary_op_t where appropriate
    • convert remaining "mp_uint_t n_args" to "size_t n_args"
    • 🚚 make new ports/ sub-directory and move all ports there
    • ⚡️ update Makefiles and others to build with new ports/ dir layout
    • ✂ remove inclusion of internal py header files
    • 👻 use NULL instead of "" when calling mp_raise exception helpers

    README:

    • ⚡️ update "Dependencies" section
    • ➕ add explicit section on contributing
    • ➕ add gcc and arm-none-eabi-newlib to list of required components

    .gitattributes:

    • ✂ remove obsolete entries for stmhal/hal, stmhal/cmsis
    • ➕ add entries for files that will move to ports/ dir
  • v1.9.2

    August 23, 2017

    🚀 This release brings general improvements and bug fixes to the core and
    📚 various ports, as well as documentation additions, clean-ups and better
    consistency. And effort has been made to clean up the source code to
    👉 make it more consistent across the core and all ports.

    There is a new tool "mpy_bin2res.py" to convert arbitrary (binary) files
    to Python resources for inclusion in source code (frozen or otherwise).

    👀 The ussl module has seen improvements, including implementation of
    server_hostname (for axtls) and server_side mode (for mbedtls).

    👍 There is now a double-precision float math library and stmhal has support
    🏗 to build firmware with software or hardware double-precision.

    A detailed list of changes follows.

    py core:

    • formatfloat: fix number of digits and exponent sign when rounding
    • 🚀 modthread: raise RuntimeError in release() if lock is not acquired
    • compile: raise SyntaxError if positional args are given after /*
    • 👍 objint: support "big" byte-order in int.to_bytes()
    • objint: in to_bytes(), allow length arg to be any int and check sign
    • compile: fix bug with break/continue in else of optimised for-range
    • compile: optimise emitter label indices to save a word of heap
    • 🚚 builtinimport: remove unreachable code for relative imports
    • 🏗 objnamedtuple: simplify and remove use of alloca building namedtuple
    • mpprint: remove unreachable check for neg return of mp_format_float
    • binary: add missing "break" statements
    • runtime: mark m_malloc_fail() as NORETURN
    • 🚚 objstr: remove unnecessary "sign" variable in formatting code
    • vm: make "if" control flow more obvious in YIELD_FROM opcode
    • 🌲 modmath: check for zero division in log with 2 args
    • 🚀 makeversionhdr.py: update to parse new release line in docs/conf.py
    • objdict: factorise dict accessor helper to reduce code size
    • change mp_uint_t to size_t in builtins code
    • repl: change mp_uint_t to size_t in repl helpers
    • compile: combine arith and bit-shift ops into 1 compile routine
    • compile: use switch-case to match token and operator
    • objgenerator: allow to hash generators and generator instances
    • ♻️ gc: refactor assertions in gc_free function
    • vm: make n_state variable local to just set-up part of VM
    • 👍 asmx64: support moving a 64-bit immediate to one of top 8 registers
    • 🖨 modmicropython: cast stack_limit value so it prints correctly
    • builtinevex: add typechecking of globals/locals args to eval/exec
    • py.mk: make berkeley-db C-defs apply only to relevant source files
    • mperrno: allow mperrno.h to be correctly included before other hdrs
    • mpz: make mpz_is_zero() an inline function
    • implement raising a big-int to a negative power
    • mkrules.mk: show frozen modules sizes together with executable size
    • objtuple: allow to use inplace-multiplication operator on tuples
    • 👻 objstr: raise an exception for wrong type on RHS of str binary op
    • modsys: initial implementation of sys.getsizeof()
    • binary.c: fix bug when packing big-endian 'Q' values
    • add verbose debug compile-time flag MICROPY_DEBUG_VERBOSE
    • binary: change internal bytearray typecode from 0 to 1
    • objstringio: prevent offset wraparound for io.BytesIO objects
    • 👀 objstringio: fix regression with handling SEEK_SET
    • 👀 stream: seek: Consistently handle negative offset for SEEK_SET
    • mkrules.mk: use "find -path" when searching for frozen obj files
    • 🚚 compile: remove unused pn_colon code when compiling func params
    • 🚚 objcomplex: remove unnecessary assignment of variable
    • formatfloat: don't post-increment variable that won't be used again
    • 👉 use "static inline" for funcs that should be inline
    • asmthumb: use existing macro to properly clear the D-cache

    extmod:

    • ⚡️ modussl_axtls: update for axTLS 2.1.3
    • modussl_axtls: implement server_hostname arg to wrap_socket()
    • 🚚 move modonewire.c from esp8266 to extmod directory
    • modure: if input string is bytes, return bytes results too
    • modubinascii: add check for empty buffer passed to hexlify
    • modussl_axtls: allow to close ssl stream multiple times
    • 👍 modussl_mbedtls: support server_side mode
    • modussl_mbedtls: when reading and peer wants to close, return 0
    • modframebuf: fix invalid stride for odd widths in GS4_HMSB fmt
    • 🆓 modussl_mbedtls: make socket.close() free all TLS resources
    • modframebuf: consistently use "col" as name for colour variables
    • modussl_mbedtls: implement non-blocking SSL sockets
    • 🚦 machine_signal: fix parsing of invert arg when Pin is first arg
    • modframebuf: use correct initialization for .locals_dict
    • ➕ modlwip: implement setsockopt(IP_ADD_MEMBERSHIP)
    • modussl_mbedtls.c: add ussl.getpeercert() method
    • modubinascii: rewrite mod_binascii_a2b_base64
    • modubinascii: don't post-increment variable that won't be used
    • modonewire: rename public module to mp_module_onewire
    • for uos.stat interpret st_size member as an unsigned int
    • 👉 use "static inline" for funcs that should be inline

    lib:

    • ⬆️ axtls: upgrade to axTLS 2.1.3 + MicroPython patchset
    • 🚚 libm/math: remove implementations of float conversion functions
    • ➕ add libm_dbl, a double-precision math library, from musl-1.1.16

    drivers:

    • 🚚 onewire: move onewire.py, ds18x20.py from esp8266 to drivers
    • 📌 onewire: enable pull-up when init'ing the 1-wire pin

    tools:

    • gen-cpydiff: use case description as 3rd-level heading
    • pyboard: add license header
    • mpy_bin2res: tools to convert binary resources to Python module
    • mpy-tool.py: don't generate const_table if it's empty
    • mpy-tool.py: fix missing argument in dump() function

    ✅ tests:

    • ✅ net_inet/test_tls_sites.py: integration test for SSL connections
    • ✅ net_inet: add tests for accept and connect in nonblocking mode
    • ✅ basics: add tests for for-else statement
    • 🚚 net_inet: move tests which don't require full Internet to net_hosted
    • ♻️ connect_nonblock: refactor towards real net_hosted test
    • auto detect floating point capabilites of the target
    • import: add a test for the builtin import function
    • ⚡️ import: update comment now that uPy raises correct exception
    • ✅ basics/namedtuple1: add test for creating with pos and kw args
    • ✅ unix/extra_coverage: add test for mp_vprintf with bad fmt spec
    • ✅ basics: add tests for arithmetic operators precedence
    • ↪ cpydiff/modules_deque: elaborate workaround
    • cpydiff/core_class_mro: move under Classes, add workaround
    • 🚚 cpydiff/core_arguments: move under Functions subsection
    • cpydiff/core_class_supermultiple: same cause as core_class_mro
    • ↪ cpydiff: improve wording, add more workarounds
    • cpydiff: add case for str.ljust/rjust
    • 📇 rename exec1.py to builtin_exec.py
    • ✅ basics/builtin_exec: test various globals/locals args to exec()

    minimal port:

    • 🚚 Makefile: enable gc-sections to remove unused code
    • ✂ remove unused stmhal include from Makefile
    • use size_t for mp_builtin_open argument

    unix port:

    • modtime: replace strftime() with localtime()
    • ⚡️ mpconfigport.mk: update descriptions of readline and TLS options
    • 👉 Makefile: disable assertions in the standard unix executable
    • modjni: convert to mp_rom_map_elem_t
    • for uos.stat interpret st_size member as an unsigned int

    stmhal port:

    • mpconfigport.h: remove config of PY_THREAD_GIL to use default
    • 👉 make error messages more consistent across peripherals
    • ➕ add initial implementation of Pin.irq() method
    • ➕ add .value() method to Switch object, to mirror Pin and Signal
    • move pybstdio.c to lib/utils/sys_stdio_mphal.c for common use
    • ➕ add "quiet timing" enter/exit functions
    • 👉 make available the _onewire module, for low-level bus control
    • modules: provide sym-link to onewire.py driver
    • boards/stm32f405.ld: increase FLASH_TEXT to end of 1MiB flash
    • sdcard: allow a board to customise the SDIO pins
    • ➕ add possibility to build with double-precision floating point
    • boards: enable double-prec FP on F76x boards
    • 👉 Makefile: use hardware double-prec FP for MCUs that support it
    • Makefile: rename FLOAT_IMPL to MICROPY_FLOAT_IMPL to match C name
    • 👉 Makefile: add CFLAGS_EXTRA to CFLAGS so cmdline can add options
    • mpconfigport.h: allow MICROPY_PY_THREAD to be overridden
    • 🔧 boards: add configuration files for NUCLEO_F429ZI
    • boards/NUCLEO_F429ZI: change USB config from HS to FS peripheral
    • ⬇️ reduce size of ESPRUINO_PICO build so it fits in flash
    • 📌 servo: make pyb.Servo(n) map to Pin('Xn') on all MCUs
    • servo: don't compile servo code when it's not enabled
    • 👉 use "static inline" for funcs that should be inline

    cc3200 port:

    • modusocket: simplify socket.makefile() function
    • ⏱ make non-zero socket timeout work with connect/accept/send
    • ⏱ modusocket: fix connect() when in non-blocking or timeout mode
    • 👉 use the name MicroPython consistently in code

    esp8266 port:

    • 👉 Makefile: bump axTLS TLS record buffer size to 5K
    • Makefile: allow FROZEN_DIR,FROZEN_MPY_DIR to be overridden
    • Makefile: add LIB_SRC_C variable to qstr auto-extraction list
    • 👉 make onewire module and support code usable by other ports
    • 🚚 modonewire: move low-level 1-wire bus code to modonewire.c
    • 🚚 modonewire: make timings static and remove onewire.timings func
    • reinstate 1-wire scripts by sym-linking to drivers/onewire/
    • move mp_hal_pin_open_drain from esp_mphal.c to machine_pin.c
    • enable MICROPY_ENABLE_FINALISER
    • 📚 README: make "Documentation" a top-level section
    • machine_rtc: use correct arithmetic for aligning RTC mem len
    • mpconfigport_512k: use terse error messages to get 512k to fit
    • mpconfigport.h: make socket a weak link
    • 🚚 modesp: remove unused constants: STA_MODE, etc
    • general: add known issue of WiFi RX buffers overflow
    • use size_t for mp_builtin_open argument
    • 🛠 fix UART stop bit constants

    zephyr port:

    • 👉 Makefile: rework dependencies and "clean" target
    • ⏪ Makefile: revert prj.conf construction rule to the previous state
    • remove long-obsolete machine_ptr_t typedef's
    • 0️⃣ Makefile: explicitly define default target as "all"
    • modusocket: allow to use socketized net_context in upstream
    • modusocket: socket, close: switch to native Zephyr socket calls
    • modusocket: bind, connect, listen, accept: Swtich to native sockets
    • modusocket: send: switch to native sockets
    • modusocket: recv: switch to native sockets
    • modusocket: fully switch to native Zephyr sockets
    • modzephyr: add current_tid() and stacks_analyze() functions
    • prj_base.conf: enable CONFIG_INIT_STACKS
    • ⚡️ modusocket: update struct sockaddr family field name
    • prj_96b_carbon.conf: re-enable networking on Carbon
    • modzephyr: add shell_net_iface() function

    📄 docs:

    • btree: add hints about opening db file and need to flush db
    • select: rename to uselect, to match the actual module name
    • ⚡️ license: update copyright year
    • esp8266/tutorial/intro: discourage use of 512kb firmwares
    • esp8266/tutorial/intro: Sphinx requires blank lines around literal blocks
    • conf.py: include 3 levels of ToC in latexpdf output
    • gc: mark mem_alloc()/mem_free() as uPy-specific
    • gc: document gc.threshold() function
    • builtins: list builtin exceptions
    • 0️⃣ conf.py: set default_role = 'any'
    • lcd160cr: group related constants together and use full sentences
    • ⚡️ ref/speed_python: update and make more hardware-neutral
    • library/gc: fix grammar and improve readability of gc.threshold()
    • 🚚 move all ports docs to the single ToC
    • 🚚 topindex.html: remove link to wipy.io, it's no longer available
    • conf.py: add .venv dir to exclude_patterns
    • 🚚 move topindex.html to templates/ subdir
    • differences/index_template: use consistent heading casing
    • builtins: add AssertionError, SyntaxError, ZeroDivisionError
    • ➕ add glossary
    • conf.py: switch to "new" format of intersphinx_mapping
    • conf.py: add file for global replacements definition
    • 📄 library: add CPython docs xref to each pertinent module
    • 👀 replace.inc: add |see_cpython|, to xref individual symbols from CPython
    • 🚀 conf.py: set "version" and "release" to the same value
    • *_index: drop "Indices and tables" pseudo-section
    • 🚚 pyboard: move hardware info into General Info chapter
    • uerrno: document "uerrno" module
    • esp8266/general.rst: fix name of NTP module
    • 🏁 pyboard: move info about using Windows from topindex to general
    • ⚡️ uzlib: update description of decompress() and mention DecompIO
    • pyboard/tutorial/amp_skin: add example for playing large WAV files
    • ⚡️ library/ubinascii: update base64 docs
    • 🚚 library/usocket: move socket.error to its own section
    • library/usocket: describe complete information on address formats
    • glossary: elaborate on possible MicroPython port differences
    • ✏️ glossary: fix typos in micropython-lib paragraph
    • index: rewrite introduction paragraph to avoid confusion
    • 📚 use the name MicroPython consistently in documentation
    • consistently link to micropython-lib in glossary

    all:

    • make more use of mp_raise_{msg,TypeError,ValueError} helpers
    • unify header guard usage
    • ✂ remove trailing spaces, per coding conventions
    • don't include system errno.h when it's not needed
    • 👉 use the name MicroPython consistently in comments
    • 👉 make use of $(TOP) variable in Makefiles, instead of ".."
    • raise exceptions via mp_raise_XXX
    • make static dicts use mp_rom_map_elem_t type and MP_ROM_xxx macros

    README:

    • 👍 mention support for bytecode and frozen bytecode
    • 👌 improve description of precompiled bytecode; mention mpy-cross

    CODECONVENTIONS:

    • clarify MicroPython changes sign-off process
    • 📄 start to describe docs conventions
    • 📄 describe docs use of markup for None/True/False

    travis:

    • 🏗 build STM32F769DISC board instead of F7DISC to test dbl-prec FP
    • 📌 pin cpp-coveralls at 0.3.12
  • v1.9.1

    June 11, 2017
  • v1.9

    May 26, 2017
  • v1.8.7

    January 08, 2017
  • v1.8.6

    November 10, 2016
  • v1.8.5

    October 17, 2016