aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-12-19tools/tinytest-codegen.py: Add extra newline and result message.David Lechner
This is an alternative to f4ed2df that adds a newline so that the output of the test starts on a new line and the result of the test is prefixed with "result: " to distinguish it from the test output. Suggested-by: @dpgeorge
2019-12-19Revert "lib/tinytest: Clean up test reporting in the presence of std..."David Lechner
This reverts commit f4ed2dfa942339dc1f174e8a83ff0d41073f1972. This lets tinytest work as it was originally designed. An alternate solution for the reverted commit will be implemented in a future commit.
2019-12-19stm32/timer: Add missing TIM 1/15/16/17 IRQ handlers for H7 MCUs.iabdalkader
2019-12-19docs/develop: Add documentation on how to build native .mpy modules.Damien George
2019-12-19docs/reference: Add documentation describing use of .mpy files.Damien George
Including information about .mpy versioning and how to debug failed imports of .mpy files.
2019-12-19examples/natmod: Add very simple features0 example to compute factorial.Damien George
2019-12-19tools/pyboard.py: Support executing .mpy files directly.Damien George
This patch allows executing .mpy files (including native ones) directly on a target, eg a board over a serial connection. So there's no need to copy the file to its filesystem to test it. For example: $ mpy-cross foo.py $ pyboard.py foo.mpy
2019-12-19stm32/boards/NUCLEO_H743ZI: Add extra pins and peripheral definitions.roland van straten
- Corrected pin assignments and checked with CubeMX. - Added additional I2C and UARTs. - Added Ethernet interface definitions with lwIP and SSL support (but Ethernet is currently unsupported on H7 MCUs so not fully enabled).
2019-12-19stm32/boards/NUCLEO_F767ZI: Update pins, peripherals and total flash.roland van straten
- Removed remarks on DFU/OCD in mpconfigboard.h because deploy-stlink works fine too. - Added more UARTs, I2C, corrected SPI, CAN, etc; verified against CubeMX. - Adapted pins.csv to remove errors, add omissions, etc. according to NUCLEO-144 User Manual. - Changed linker file stm32f767.ld to reflect correct size of the Flash. - Tested with LAN and SD card.
2019-12-19stm32/boards/NUCLEO_F767ZI: Add pins and config for using an SD card.roland van straten
The Nucleo board does not have an SD card slot but does have the requisite pins next to each other and labelled, so provide the configuration for convenience.
2019-12-19esp32/boards/TINYPICO: Add tinypico.py, dotstar.py with custom manifest.Seon Rozenblum
2019-12-18examples/network: Add testing key/cert to SSL HTTP server example.Damien George
This example will now work on all ports with networking and ssl support, with both axtls and mbedtls.
2019-12-17qemu-arm: Let tinytest.o be built by standard build rules.Damien George
This makes sure tinytest.o is rebuilt if any of its dependencies change.
2019-12-17py/persistentcode: Move loading of rodata/bss to before obj/raw-code.Damien George
This makes the loading of viper-code-with-relocations a bit neater and easier to understand, by treating the rodata/bss like a special object to be loaded into the constant table (which is how it behaves).
2019-12-17docs/esp8266/quickref: Add note that machine.RTC is not fully supported.ketograph
See issues #3220 and #3710.
2019-12-16docs/library/uos.rst: Clarify why the extended interface exists.Jim Mussared
2019-12-13stm32/boards/PYBD_SF2: Configure LEDs as inverted, for LED.intensity().Damien George
2019-12-13tests/pyb: Refactor pyboard tests to work on PYBv1, PYBLITEv1 and PYBD.Damien George
2019-12-13tests/extmod/vfs_lfs_error: Use small ints in seek error test.Damien George
So accessing the seek offset (at the C level) doesn't cause an OverflowError on 32-bit targets.
2019-12-13tests/basics/memoryview_itemsize: Make portable to 32- and 64-bit archs.Damien George
2019-12-13tests/stress/qstr_limit: Tune params to run with stm32 port.Damien George
Because MICROPY_ALLOC_PATH_MAX is only 128 for this port.
2019-12-13stm32/modusocket: Handle case of NULL NIC in socket ioctl.Damien George
2019-12-13tests: Add .exp files for basics/parser and import/import_override.Damien George
Because CPython 3.8.0 now produces different output: - basics/parser.py: CPython does not allow '\\\n' as input. - import/import_override: CPython imports _io.
2019-12-13travis: Build urandom native module in coverage job.Damien George
2019-12-13examples/natmod: Add urandom native module example.Damien George
2019-12-13py/dynruntime: Implement uint new/get, mp_obj_len and mp_obj_subscr.Damien George
2019-12-13stm32/Makefile: Enable max buffer size on W5200 NIC when used with lwIP.Damien George
Because in network_wiznet5k the TX/RX buffers are set to 16k each when in MACRAW mode, which is used with lwIP.
2019-12-13drivers/wiznet5k: Allow selecting maximum fixed buffer size for MACRAW.Damien George
Enabling WIZCHIP_USE_MAX_BUFFER will make the TX/RX buffers the maximum available size, for use with MACRAW mode.
2019-12-12travis: Add tests for building and importing dynamic native modules.Damien George
2019-12-12examples/natmod: Add features1 and features2 examples.Damien George
2019-12-12tests: Add script to run dynamic-native-module tests.Damien George
2019-12-12tools/mpy-tool.py: Raise exception if trying to freeze relocatable mpy.Damien George
2019-12-12tests/import: Add test for importing viper code with additional flags.Damien George
2019-12-12py/dynruntime: Add support for float API to make/get floats.Damien George
We don't want to add a feature flag to .mpy files that indicate float support because it will get complex and difficult to use. Instead the .mpy is built using whatever precision it chooses (float or double) and the native glue API will convert between this choice and what the host runtime actually uses.
2019-12-12py/nativeglue: Add float new/get functions with both single and double.Damien George
2019-12-12py/persistentcode: Make ARM Thumb archs support multiple sub-archs.Damien George
2019-12-12examples/natmod: Add ure example.Damien George
2019-12-12examples/natmod: Add framebuf example.Damien George
2019-12-12examples/natmod: Add uzlib example.Damien George
2019-12-12examples/natmod: Add uheapq example.Damien George
2019-12-12examples/natmod: Add btree example.Damien George
2019-12-12extmod: Add dynamic-runtime guards to btree/framebuf/uheapq/ure/uzlib.Damien George
So they can be built as dynamic native modules, as well as existing static native modules.
2019-12-12extmod/modbtree: Use mp_printf instead of printf.Damien George
2019-12-12tools/mpy_ld.py: Add new mpy_ld.py tool and associated build files.Damien George
This commit adds a new tool called mpy_ld.py which is essentially a linker that builds .mpy files directly from .o files. A new header file (dynruntime.h) and makefile fragment (dynruntime.mk) are also included which allow building .mpy files from C source code. Such .mpy files can then be dynamically imported as though they were a normal Python module, even though they are implemented in C. Converting .o files directly (rather than pre-linked .elf files) allows the resulting .mpy to be more efficient because it has more control over the relocations; for example it can skip PLT indirection. Doing it this way also allows supporting more architectures, such as Xtensa which has specific needs for position-independent code and the GOT. The tool supports targets of x86, x86-64, ARM Thumb and Xtensa (windowed and non-windowed). BSS, text and rodata sections are supported, with relocations to all internal sections and symbols, as well as relocations to some external symbols (defined by dynruntime.h), and linking of qstrs.
2019-12-12tools/mpy-tool.py: Add ability to merge multiple .mpy files into one.Damien George
Usage: mpy-tool.py -o merged.mpy --merge mod1.mpy mod2.mpy The constituent .mpy files are executed sequentially when the merged file is imported, and they all use the same global namespace.
2019-12-12py/nativeglue: Add funcs/types to native glue table for dynamic runtime.Damien George
These allow discovery of symbols by native code that is loaded dynamically.
2019-12-12py/nativeglue: Add new header file with native function table typedef.Damien George
2019-12-12py/persistentcode: Add ability to relocate loaded native code.Damien George
Implements text, rodata and bss generalised relocations, as well as generic qstr-object linking. This allows importing dynamic native modules on all supported architectures in a unified way.
2019-12-10docs/library/uos: Add notes and links about littlefs failures.Damien George
2019-12-10docs/library/ubluetooth: Add note about API being under development.Damien George