summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2016-12-15tools/pyboard.py: Refactor so target is not reset between scripts/cmd.Damien George
Previous to this patch pyboard.py would open a new serial connection to the target for each script that was run, and for any command that was run. Apart from being inefficient, this meant that the board was soft-reset between scripts/commands, which precludes scripts from accessing variables set in a previous one. This patch changes the behaviour of pyboard.py so that the connection to the target is created only once, and it's not reset between scripts or any command that is sent with the -c option.
2016-11-12tools/tinytest-codegen: Blacklist recently added uheapq_timeq test (qemu-arm).Paul Sokolovsky
2016-11-07tools, unix: Replace upip tarball with just source files.Paul Sokolovsky
To make its inclusion as frozen modules in multiple ports less magic. Ports are just expected to symlink 2 files into their scripts/modules subdirs. Unix port updated to use this and in general follow frozen modules setup tested and tried on baremetal ports, where there's "scripts" predefined dir (overridable with FROZEN_DIR make var), and a user just drops Python files there.
2016-11-03qemu-arm: Enable software floating point support, and float tests.Damien George
This helps to test floating point code on Cortex-M hardware. As part of this patch the link-time-optimisation was disabled because it wasn't compatible with software FP support. In particular, the linker could not find the __aeabi_f2d, __aeabi_d2f etc functions even though they were provided by lib/libm/math.c.
2016-10-30tools/tinytest-codegen: Exclude ticks_diff test for qemu-arm port.Paul Sokolovsky
2016-10-27qemu-arm: Exclude new vfs_fat tests.Alex March
2016-10-25tools/check_code_size.sh: Code size validation script for CI.Paul Sokolovsky
2016-10-24tools/pip-micropython: Remove deprecated wrapper tool.Paul Sokolovsky
Deprecated for long time, pip-micropython now can't install packages optimized for low-heap ports (like whole of micropython-lib).
2016-10-24qemu-arm: Exclude extmod/vfs_fat_fileio.py test.Alex March
2016-10-22tools: Upgrade upip to 1.1.4.Paul Sokolovsky
Fix error on unix when installing to non-existing absolute path.
2016-10-14qemu-arm: Enable lots of extmods and enable tests for them.Damien George
The qemu-arm port is used for testing of ARM Thumb architecture on a desktop so should have many features enabled.
2016-10-12tools: Upgrade upip to 1.1.3.Paul Sokolovsky
Initial support for running on a baremetal, low-heap systems (like esp8266), using Python module interface.
2016-10-05tools: Upgrade upip to 1.0.Paul Sokolovsky
Fully self-hosted release (without fallbacks), and uses stream gzip decompression (step towards support for limited-heap baremetal systems).
2016-09-23tools: Update upip to 0.8. Fixes IPv6 support.Paul Sokolovsky
2016-09-23py: Update opcode format table because 3 opcodes were removed, 1 added.Damien George
LIST_APPEND, MAP_ADD and SET_ADD have been removed, and STORE_COMP has been added in adaf0d865cd6c81fb352751566460506392ed55f.
2016-09-03tools/mpy-tool.py: Support freezing of complex numbers.Damien George
2016-09-02tools/mpy-tool.py: Compute the hash value for str/bytes objects.Damien George
This makes it more efficient at runtime to hash str/bytes objects.
2016-09-02tools/mpy-tool.py: Store qstr config values in global config object.Damien George
Makes it easier to access them without passing around another dict of the config values.
2016-08-10tools/mpy-tool.py: Support freezing float literals with obj-repr C.Damien George
The tool now generates code for freezing floats in obj-repr A, B or C, with the specific representation detected at compile time using macros.
2016-05-28tools: Upgrade upip to 0.7.Paul Sokolovsky
SSL certificate warning, switch to uerrno, and better usage message.
2016-05-23tools/mpy-tool.py: Don't strip directories from the frozen source name.Damien George
Directories are now supported by the frozen import system (to implement frozen packages) so we should keep them.
2016-05-23tools/mpy-tool.py: Include .py extension in frozen filename.Damien George
So that it can be correctly stat'd when looking for frozen files.
2016-05-21tools/make-frozen: Update for latest changes in frozen modules support.Paul Sokolovsky
Frozen modules are now stored with extensions and with '/' as path separator. In other words, frozen modules paths stored as they are in normal filesystem.
2016-05-16tools/mpy-tool.py: Add checks for critical configuration vars.Damien George
When an mpy file is frozen it must know the values of certain configuration variables. This patch provides an explicit check in the generated C file that the configuration variables are what they are supposed to be.
2016-05-14tools/make-frozen.py: Quick fix to support package-modules.Paul Sokolovsky
It allows to "import foo.bar", but not "from foo import bar".
2016-05-13tools/make-frozen.py: Properly escape hex chars when making C strings.Damien George
2016-05-03tools/mpy-tool: Make sure that all C-level variables are unique.Damien George
Fixes issue #2023.
2016-04-15tools/mpy-tool.py: Add support for Python 2.7.Damien George
2016-04-13py: Add ability to have frozen persistent bytecode from .mpy files.Damien George
The config variable MICROPY_MODULE_FROZEN is now made of two separate parts: MICROPY_MODULE_FROZEN_STR and MICROPY_MODULE_FROZEN_MPY. This allows to have none, either or both of frozen strings and frozen mpy files (aka frozen bytecode).
2016-04-13tools: Add mpy-tool.py, to work with .mpy files.Damien George
Currently it can freeze .mpy files.
2016-03-15qemu-arm: Enable builtin override feature, and enable more tests.Damien George
Hopefully these tests run reliably on Travis.
2016-01-03py/frozenmod: Store frozen module names together, to quickly scan them.Paul Sokolovsky
2016-01-01py/frozenmod: Make frozen module content be 0-terminated.Paul Sokolovsky
To allow simple zero-terminated lexers.
2015-12-31tools: Add C middle-processor to make builtin tables proper hash tables.Damien George
2015-12-12tools: Upgrade upip to 0.6.3.Paul Sokolovsky
Updated for _os -> uos builtin module rename.
2015-12-08tools: Fix pyboard.py to work under Python 3.Damien George
2015-12-08tools: Add option to pyboard.py to wait for serial device to be ready.Peter Hinch
Also prints a nicer error message if the serial connection could not be established.
2015-12-06tools: Allow pyboard.py to work when boot.py prints things.Dave Hylands
2015-11-15tools: Update to upip 0.6.2. Fixes issue due to MacOSX undocumented behavior.Paul Sokolovsky
2015-11-14tools: Update upip to 0.6.1. Fixes normal installs without -p switch.Paul Sokolovsky
2015-11-14tools: Update upip to 0.6.Paul Sokolovsky
Removes FFI dependency, instead uses builtin os module. Thus can work on systems where dynamic library loading is not available.
2015-11-07tools/pyboard.py: Don't add terminating \x04 character to stdout output.Paul Sokolovsky
2015-11-07tools/pyboard.py: Make -c (inline Python code) option compatible with python2.Paul Sokolovsky
2015-10-19tools/pyboard: Add -c argument to run a program passed as a string.Tom Soulanille
2015-10-17tools/upip: Update to 0.5.9.Paul Sokolovsky
MICROPYPATH environment variable is now honored, package are installed to first path specified in it.
2015-10-12Rename "Micro Python" to "MicroPython" in REPL, help, readme's and misc.Damien George
2015-10-09stmhal: Fix USB CDC-only mode under Windows.Dave Hylands
This fix adds PIDs 9801 and 9802 to the pybcdc.inf file. When in CDC only mode, it presents itself as a Communcations device rather than as a composite device. Presenting as a composite device with only the CDC interface seems to confuse windows. To test and make sure that the correct pybcdc.inf was being used, I used USBDeview from http://www.nirsoft.net/utils/usb_devices_view.html to uninstall any old pyboard drivers (Use Control-F and search for pyboard). I found running USBDeview as administrator worked best. Installing the driver in CDC+MSC mode first is recommended (since the pybcdc.inf file in on the internal flash drive). Then when you switch modes everything seems to work properly. I used https://github.com/dhylands/upy-examples/blob/master/boot_switch.py to easily switch the pyboard between the various USB modes for testing.
2015-09-13tools: Upgrade upip to 0.5.8.Paul Sokolovsky
Adds support for ussl module (which is experimental and not fully implemented yet itself).
2015-08-30tools: Upgrade to upip 0.5.7.Paul Sokolovsky
Just dependent micropython-lib modules update for upip, no new functionality.
2015-08-11tools: Make gen-changelog.sh print more lines from the tag annotation.Damien George