aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-09-18py/persistentcode: Enable persistent code saving for Windows ports.stijn
2019-09-18windows/msvc: Change the way sources are listed.stijn
Reserve sources.props for listing just the MicroPython core and extmod files, similar to how py.mk lists port-independent source files. This allows reusing the source list, for instance for building mpy-cross. The sources for building the executable itself are listed in the corresponding project file, similar to how the other ports specify the source files in their Makefile.
2019-09-18windows/msvc: Enable overriding directories used in the build.stijn
Append to PyIncDirs, used to define include directories specific to MicroPython, instead of just overwriting it so project files importing this file can define additional directories. And allow defining the target directory for the executable instead of hardcoding it to the windows directory. Main reason for this change is that it will allow building mpy-cross with msvc.
2019-09-18windows/msvc: Move build options from .vcxproj to .props files.stijn
We want the .vcxproj to be just a container with the minimum content for making it work as a project file for Visual Studio and MSBuild, whereas the actual build options and actions get placed in separate reusable files. This was roughly the case already except some compiler options were overlooked; fix this here: we'll need those common options when adding a project file for building mpy-cross.
2019-09-18windows/msvc: Remove unneeded definitions for qstr generation.stijn
These were probably added to detect more qstrs but as long as the micropython executable itself doesn't use the same build options the qstrs would be unused anyway. Furthermore these definitions are for internal use and get enabled when corresponding MICROPY_EMIT_XXX are defined, in which case the compiler would warn about symbol redefinitions since they'd be defined both here and in the source.
2019-09-18esp32/main: Use both 3.3 and 4.0 config vars to enable SPIRAM.Jim Mussared
2019-09-17stm32/modusocket: Fix NULL deref when accept() an unbound socket.iabdalkader
2019-09-17esp32: Add check to Makefile that the toolchain is in PATH.Jim Mussared
2019-09-17esp32: Add check to Makefile for pyparsing version.Jim Mussared
2019-09-17travis: Add ESP32 build with IDF v4.Jim Mussared
2019-09-17esp32: Support building with ESP IDF 4.0-beta1.Jim Mussared
This commit adds support for a second supported hash (currently set to the 4.0-beta1 tag). When this hash is detected, the relevant changes are applied. This allows to start using v4 features (e.g. BLE with Nimble), and also start doing testing, while still supporting the original, stable, v3.3 IDF. Note: this feature is experimental, not well tested, and network.LAN and network.PPP are currently unsupported.
2019-09-17bare-arm, minimal: Set CSUPEROPT=-Os to get minimal firmware size.Damien George
This option affects py/vm.c and py/gc.c and using -Os gets them compiling a bit smaller, and small firmware is the aim of these two ports. Also, having these files compiled with -Os on these ports, and -O3 as the default on other ports, gives a better understanding of code-size changes when making changes to these files.
2019-09-17nrf/boards: Add board definition for uBlox Nina B1 series BLE modules.roland van straten
2019-09-12stm32/machine_adc: Fix build for F4 and L4 MCUs that only have ADC1.Damien George
2019-09-12esp32/Makefile: Add SDKCONFIG_H to QSTR_GLOBAL_REQUIREMENTS.Damien George
Fixes issue #5091.
2019-09-12py/mkrules.mk: Add QSTR_GLOBAL_REQUIREMENTS variable for qstr auto-gen.Damien George
2019-09-12stm32/lwip_inc: Enable LWIP_NETIF_EXT_STATUS_CALLBACK for mDNS.Damien George
This feature makes sure that mDNS is automatically restarted when there is any change event on a netif.
2019-09-12stm32/lwip_inc: Allocate additional MEMP_SYS_TIMEOUT when mDNS enabled.Damien George
Since v2.1 of lwIP mDNS uses a MEMP_SYS_TIMEOUT slot, so allocate an extra one when this feature is enabled.
2019-09-11docs/library/pyb.rst: Update pyb.usb_mode() to mention VCP+MSC+HID.Damien George
2019-09-11stm32/usb: Verify number of used endpoints doesn't exceed maximum.Damien George
2019-09-11stm32/usb: Add support for VCP+MSC+HID mode, incl 2xVCP and 3xVCP.Damien George
2019-09-11stm32/board/NUCLEO_F746ZG: Enable Ethernet periph, lwip and ussl.cristian
2019-09-10stm32/boards/STM32F769DISC: Fix number of SDRAM row bits.Jim Mussared
According to the schematic, the SDRAM part on this board is a MT48LC4M32B2B5-6A, with "Row addressing 4K A[11:0]" (per datasheet). This commit updates mpconfigboard.h from 13 to 12 to match.
2019-09-10esp32/modules/inisetup.py: Use bdev.ioctl instead of bdev.SEC_SIZE.Damien George
Since the bdev is now a Partition it doesn't have SEC_SIZE.
2019-09-10esp32: Add support for ESP32-D2WD with 2MiB internal flash.Alex Albino
This patch adds a partitions file for the D2WD and a new board GENERIC_D2WD which runs on these chip variants. Resolves issue #4986.
2019-09-10esp32: Add VFS FAT partition to partitions.csv and mount it as the FS.Damien George
This patch uses the newly-added esp32.Partition class to replace the existing FlashBdev class. Partition objects implement the block protocol so can be directly mounted via uos.mount(). This has the following benefits: - allows the filesystem partition location and size to be specified in partitions.csv, and overridden by a particular board - very easily allows to have multiple filesystems by simply adding extra entries to partitions.csv - improves efficiency/speed of filesystem operations because the block device is implemented fully in C - opens the possibility to have encrypted flash storage (since Partitions can be encrypted) Note that this patch is fully backwards compatible: existing filesystems remain untouched and work with this new code.
2019-09-10stm32/boards/MIKROE_CLICKER2_STM32: Add MikroElektronika Clicker2 board.Christopher Wilson
- STM32F407VGT6 (1MB of Flash, 192+4 Kbytes of SRAM) - 5V (via USB) or Li-Polymer Battery (3.7V) power input - 2 x LEDs - 2 x user switches - 2 x mikroBUS sockets - 2 x 1x26 mikromedia-compatible headers (52 pins) https://www.mikroe.com/clicker-2-stm32f4
2019-09-10docs/library/pyb.rst: Update docs for pyb.usb_mode() function.Damien George
2019-09-10stm32/boards/NUCLEO_L073RZ: Fix typo in MCU name.Damien George
2019-09-10stm32/mboot: Support boards with only two LEDs.Chris Wilson
Mboot currently requires at least three LEDs to display each of the four states. However, since there are only four possible states, the states can be displayed via binary counting on only 2 LEDs (if only 2 are available). The existing patterns are still used for 3 or 4 LEDs.
2019-09-10py/vm: Factor cached map lookup code to inline function.Damien George
To reduce code duplication and allow to more easily modify this function.
2019-09-10windows/Makefile: Make use of CFLAGS_EXTRA, LDFLAGS_EXTRA and SRC_MOD.Andrew Leech
To be consistent with the unix port.
2019-09-10esp32/boards/TINYPICO: Switch to use QIO and 80MHz for SPI interface.Damien George
2019-09-07esp32: Update to use ESP IDF v3.3Braden Mars
Includes patches for CVE-2019-12586 & CVE-2019-12587
2019-09-06tools/mpy-tool.py: Fix freezing of non-bytecode funcs with settrace.Damien George
Only bytecode functions can be profiled at this stage. Native functions (eg inline assembler) may not even have a valid prelude. Fixes issue #5075.
2019-09-06stm32/boards/stm32wb55_af.csv: Fix ADC pin-channel function mapping.Damien George
2019-09-06stm32/machine_adc: Improve operation of ADC for H7, L4 and WB MCUs.Damien George
2019-09-05py/mkenv.mk: Add GDB variable.Damien George
2019-09-05nrf/boards: Add Particle Xenon board configuration (an nRF52840).Jim Mussared
2019-09-05nrf/Makefile: Add support for flashing with a Black Magic Probe.Jim Mussared
Also rename "flash" target to "deploy" to match other ports (but provide "flash" as an alias for backwards compatibility).
2019-09-05nrf/boards/make-pins.py: Fix gen of board pins to use correct index.Jim Mussared
It was previously not taking into account that the list of pins was sparse, so using the wrong index. The boards/X/pins.csv was generating the wrong data for machine.Pin.board. As part of this fix rename the variables to make it more clear what the list contains (only board pins).
2019-09-05nrf/machine/adc: Fix mapping of ADC channel to pin.Damien George
2019-09-05nrf/machine/adc: Allow to pass a Pin object in to ADC constructor.Damien George
2019-09-05nrf: Add ADC channel mapping to alt function table.Damien George
2019-09-05nrf/machine/adc: Add ADC.read_u16() method.Damien George
2019-09-05esp32/machine_adc: Add ADC.read_u16() method.Damien George
2019-09-05esp8266/machine_adc: Add read_u16 method and refactor.Damien George
2019-09-04esp8266/machine_adc: Rename pyb_adc_* to machine_adc_*.Damien George
2019-09-04stm32/machine_adc: Add machine.ADC class.Damien George
2019-09-04docs/library: Specify new machine.ADC class.Damien George
This initial specification is only for the ADC constructor and read_u16() method.