1. 20 Jul, 2020 7 commits
  2. 18 Jul, 2020 5 commits
  3. 17 Jul, 2020 1 commit
  4. 16 Jul, 2020 5 commits
  5. 10 Jul, 2020 1 commit
  6. 09 Jul, 2020 1 commit
  7. 08 Jul, 2020 7 commits
  8. 01 Jul, 2020 11 commits
    • Glenn Ruben Bakke's avatar
      nrf/Makefile: Disable ROM text compression when compiling for debug. · c2317a3a
      Glenn Ruben Bakke authored
      When compiling for debug (-O0) the .text segment cannot fit the flash
      region when MICROPY_ROM_TEXT_COMPRESSION=1, because the compiler does not
      optimise away the large if-else chain used to select the correct compressed
      string.
      
      This commit enforces MICROPY_ROM_TEXT_COMPRESSION=0 when compiling for
      debug (DEBUG=1).
      c2317a3a
    • Glenn Ruben Bakke's avatar
      nrf/bluetooth/ble_uart: Swap end character on cooked strings. · f22f7b28
      Glenn Ruben Bakke authored
      Changing line ending character of cooked strings makes rshell/pyboard.py
      work correctly over Bluetooth socat/pts devices.
      f22f7b28
    • Glenn Ruben Bakke's avatar
      nrf/bluetooth/ble_uart: Fix random advertisement name. · 5996bf72
      Glenn Ruben Bakke authored
      The storage space of the advertisement name is not declared static, leading
      to a random advertisement name.  This commit fixes the issue by declaring
      it static.
      5996bf72
    • Glenn Ruben Bakke's avatar
      nrf/bluetooth/ble_uart: Add mp_hal_stdio_poll function. · ab0c14db
      Glenn Ruben Bakke authored
      This adds support for enabling MICROPY_PY_SYS_STDFILES when running UART
      over Bluetooth (NUS).
      ab0c14db
    • Glenn Ruben Bakke's avatar
      nrf/bluetooth: Handle data length update request. · fc1f22a0
      Glenn Ruben Bakke authored
      The Bluetooth link gets disconnected when connecting from a PC after 30-40
      seconds.  This commit adds handling of the data length update request.  The
      data length parameter pointer is set to NULL in the reply,  letting the
      SoftDevice automatically set values and use them in the data length update
      procedure.
      fc1f22a0
    • Glenn Ruben Bakke's avatar
      nrf/bluetooth/ble_uart: Fix implicit declaration of function. · 9dfb4ae6
      Glenn Ruben Bakke authored
      mp_keyboard_interrupt() triggers a compiler error because the function is
      implicitly declared.  This commit adds "py/runtime.h" to the includes.
      
      Fixes issue #5732.
      9dfb4ae6
    • Jim Mussared's avatar
      unix: Enable uasyncio on dev variant. · 40502813
      Jim Mussared authored
      40502813
    • Jim Mussared's avatar
      unix: Make manifest selection match other ports. · 27abac95
      Jim Mussared authored
      Changes are:
      - The default manifest.py is moved to the variants directory (it's in
        "boards" in other ports).
      - The coverage variant now uses a custom manifest in its variant directory
        to add frzmpy/frzstr.
      - The frzmpy/frzstr tests are moved to variants/coverage/.
      27abac95
    • Andrew Leech's avatar
      Revert "tools/pydfu.py: Respect longer timeouts requested by DFU dev..." · 07f181a2
      Andrew Leech authored
      This reverts commit 4d6f60d4.
      
      This implementation used the timeout as a maximum amount of time needed for
      the operation, when actually the spec and other tools suggest that it's the
      minumum delay needed between subsequent USB transfers.
      07f181a2
    • Andrew Leech's avatar
      stm32/mboot: Disable polling mode by default and use IRQ mode instead. · 494bcad8
      Andrew Leech authored
      Polling mode will cause failures with the mass-erase command due to USB
      timeouts, because the USB IRQs are not being serviced.  Swiching from
      polling to IRQ mode fixes this because the USB IRQs can be serviced between
      page erases.
      
      Note that when the flash is being programmed or erased the MCU is halted
      and cannot respond to USB IRQs, because mboot runs from flash, as opposed
      to the built-in bootloader which is in system ROM.  But the maximum delay
      in responding to an IRQ is the time taken to erase a single page, about
      100ms for large pages, and that is short enough that the USB does not
      timeout on the host side.
      
      Recent tests have shown that in the current mboot code IRQ mode is pretty
      much the same speed as polling mode (within timing error), code size is
      slightly reduced in IRQ mode, and IRQ mode idles at about half of the power
      consumption as polling mode.
      494bcad8
    • Andrew Leech's avatar
      stm32/mboot: Remove the use of timeout in DFU_GETSTATUS. · 95ec0deb
      Andrew Leech authored
      This is treated more like a "delay before continuing" in the spec and
      official tools and does not appear to be really needed.  In particular,
      downloading firmware is much slower with non-zero timeouts because the host
      must pause by the timeout between sending each DFU_GETSTATUS to poll for
      download/erase complete.
      95ec0deb
  9. 30 Jun, 2020 2 commits
    • Damien George's avatar
      py: Rework mp_convert_member_lookup to properly handle built-ins. · 332d8334
      Damien George authored
      This commit fixes lookups of class members to make it so that built-in
      functions that are used as methods/functions of a class work correctly.
      
      The mp_convert_member_lookup() function is pretty much completely changed
      by this commit, but for the most part it's just reorganised and the
      indenting changed.  The functional changes are:
      
      - staticmethod and classmethod checks moved to later in the if-logic,
        because they are less common and so should be checked after the more
        common cases.
      
      - The explicit mp_obj_is_type(member, &mp_type_type) check is removed
        because it's now subsumed by other, more general tests in this function.
      
      - MP_TYPE_FLAG_BINDS_SELF and MP_TYPE_FLAG_BUILTIN_FUN type flags added to
        make the checks in this function much simpler (now they just test this
        bit in type->flags).
      
      - An extra check is made for mp_obj_is_instance_type(type) to fix lookup of
        built-in functions.
      
      Fixes #1326 and #6198.
      Signed-off-by: default avatarDamien George <damien@micropython.org>
      332d8334
    • Damien George's avatar
      py/obj.h: Make existing MP_TYPE_FLAG_xxx macros sequential. · d06ae1d2
      Damien George authored
      There's no reason to have them non-sequential, this was likely a typo from
      commit 9ec1caf4.
      Signed-off-by: default avatarDamien George <damien@micropython.org>
      d06ae1d2