commit f9799113d9ef6bf09682fc052b5a9711efecc2fa Author: yangfl <yangfl@users.noreply.github.com> Date: Sun May 4 21:41:55 2025 +0800 debian: update to 1.25.0+ds commit 0b4f40317f92cbb5b1b84393fb456fe174d7e06d Merge: 36ee3ecb2 5f04ce964 Author: yangfl <yangfl@users.noreply.github.com> Date: Sun May 4 21:39:44 2025 +0800 Merge tag 'upstream/1.25.0+ds' commit 5f04ce9642802ad633f22a424aeab9b96fb028d9 Author: yangfl <yangfl@users.noreply.github.com> Date: Sun May 4 21:38:32 2025 +0800 Import Upstream version 1.25.0+ds commit f498a16c7db6d4b2de200b3e0856528dfe0613c3 Author: Damien George <damien@micropython.org> Date: Wed Apr 16 00:28:30 2025 +1000 all: Bump version to 1.25.0. Signed-off-by: Damien George <damien@micropython.org> commit 9f3062799633dc8fa4cc556fc48a135cd5d4c2d4 Author: Damien George <damien@micropython.org> Date: Mon Apr 14 14:32:41 2025 +1000 lib/micropython-lib: Update submodule to latest. This brings in: - requests: do not leak header modifications when calling request - mip: allow relative URLs in package.json - mip: make mip.install() skip /rom*/lib directories - umqtt.simple: restore legacy ssl/ssl_params arguments - nrf24l01: increase startup delay - nrf24l01: properly handle timeout - nrf24l01: optimize status reading - lora-sx126x: fix invert_iq_rx / invert_iq_tx behaviour - unix-ffi/json: accept both str and bytes as arg for json.loads() - unix-ffi/machine: use libc if librt is not present - requests: use the host in the redirect url, not the one in headers - aiohttp: fix header case sensitivity - aiohttp: allow headers to be passed to a WebSocketClient - usb-device-cdc: optimise writing small data so it doesn't require alloc - inspect: fix isgenerator logic - inspect: implement iscoroutinefunction and iscoroutine Signed-off-by: Damien George <damien@micropython.org> commit 9ee2ef5108102ce2f5851fba06da3dcab585f501 Author: Damien George <damien@micropython.org> Date: Thu Apr 10 15:35:39 2025 +1000 py/emitinlinerv32: Move include of asmrv32.h to within feature guard. Otherwise, when compiling on 16-bit systems (where `mp_uint_t` is 16 bits wide) the compiler warns about "left shift count >= width of type", from the static inline functions that have RV32_ENCODE_TYPE_xxx macros which do a lot of bit shifting. Signed-off-by: Damien George <damien@micropython.org> commit 0b3ad98ea97bc504bb594639f5fcced5b5397eec Author: Damien George <damien@micropython.org> Date: Thu Apr 10 13:54:01 2025 +1000 mimxrt/Makefile: Fix dependencies for generation of flexram_config.s. Prior to this fix the following would fail: $ make build-TEENSY40/flexram_config.s because it didn't create the build directory before generating the file. Also, make `hal/resethandler_MIMXRT10xx.S` have an explicit dependency on `flexram_config.s` rather than the latter just being forced to be built before everything else. Signed-off-by: Damien George <damien@micropython.org> commit db854270719bfa4dda003d38893c1b8f39bf58de Author: Damien George <damien@micropython.org> Date: Wed Apr 2 12:48:48 2025 +1100 stm32/boards/PYBD_SF6: Support boards with larger SPI flash. There are some newer PYBD_SF6 being produced which have a larger flash, namely two of 8MiB (instead of the older ones with two of 2MiB). This commit adds support for these boards. The idea is to have the same PYBD_SF6 firmware run on both old and new boards. That means autodetecting the flash at start-up and configuring all the relevant SPI/QSPI parameters, including for ROMFS and mboot. Signed-off-by: Damien George <damien@micropython.org> commit ed4833d495e1a328ef35edda1666799a9c84802c Author: Damien George <damien@micropython.org> Date: Wed Apr 2 12:50:23 2025 +1100 stm32/modmachine: Add SPI flash size to machine.info dump. Signed-off-by: Damien George <damien@micropython.org> commit de08190cb736f3bb1027d15bdf88135e49603c23 Author: Damien George <damien@micropython.org> Date: Wed Apr 2 12:49:54 2025 +1100 stm32/mboot: Allow USB strings to be dynamic. Signed-off-by: Damien George <damien@micropython.org> commit aa0945698b714c25f85b1234e0b03f34ac76c24c Author: Damien George <damien@micropython.org> Date: Thu Mar 13 11:09:01 2025 +1100 stm32/qspi: Allow SPI flash size to be decided at runtime. Allows `MICROPY_HW_QSPIFLASH_SIZE_BITS_LOG2` and `MICROPY_HW_QSPI_MPU_REGION_SIZE` to be arbitrary expressions, eg function calls. The `storage.h` header needs to be included in case access to `spi_bdev_t` is needed by the macros. Signed-off-by: Damien George <damien@micropython.org> commit 1d83c8175680b911ab24ba834b7f8bcadaa5aa79 Author: Damien George <damien@micropython.org> Date: Tue Apr 1 14:31:26 2025 +1100 stm32/vfs_rom_ioctl: Allow ROMFS configuration to be dynamic. Options for a board to configure ROMFS are: - Leave ROMFS disabled, do nothing. - Enable by defining `MICROPY_HW_ROMFS_ENABLE_PARTx` to 1 and then in the linker script define `_micropy_hw_romfs_partX_start` and `_micropy_hw_romfs_partX_size`. - Enable by defining `MICROPY_HW_ROMFS_ENABLE_PARTx` to 1 and also define `MICROPY_HW_ROMFS_PARTx_START` and `MICROPY_HW_ROMFS_PARTx_SIZE` which can be arbitrary expressions (not necessarily static) Signed-off-by: Damien George <damien@micropython.org> commit 2c0240e068b66b5f7b063125a7977cbca03d9483 Author: Damien George <damien@micropython.org> Date: Wed Apr 2 12:47:40 2025 +1100 drivers/bus/qspi: Make num_dummy configurable for quad reads. Signed-off-by: Damien George <damien@micropython.org> commit b078569cffb4b32585806b42ef7a0501bc4d0bca Author: Damien George <damien@micropython.org> Date: Wed Apr 2 12:47:48 2025 +1100 drivers/memory/spiflash: Allow a board/port to detect SPI flash. This commit allows the user of this driver to intercept the SPI flash initialisation routine and possibly take some action based on the JEDEC id, for example change the `mp_spiflash_t::chip_params` element. To do this, enable `MICROPY_HW_SPIFLASH_DETECT_DEVICE` and define a function called `mp_spiflash_detect()`. Signed-off-by: Damien George <damien@micropython.org> commit e7edf0783e945f4107dcc7f68543ed05e92189a4 Author: Damien George <damien@micropython.org> Date: Wed Apr 9 21:30:17 2025 +1000 drivers/memory/spiflash: Allow a board/port to configure chip params. This commit allows the user of this driver to dynamically configure the SPI flash chip parameters. For this, enable `MICROPY_HW_SPIFLASH_CHIP_PARAMS` and then set the `mp_spiflash_t::chip_params` element to point to a valid `mp_spiflash_chip_params_t` struct. Signed-off-by: Damien George <damien@micropython.org> commit ef8282c717be8363e9a04ebf2b9d843e2485604f Author: Jos Verlinde <jos_verlinde@hotmail.com> Date: Mon Apr 7 23:14:17 2025 +0200 docs/reference/mpremote: Update docs for mpremote rm -r. Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.com> commit 72d4c409418b2d35be41b7b04f1802457309bc6d Author: Jos Verlinde <jos_verlinde@hotmail.com> Date: Mon Apr 7 23:01:21 2025 +0200 tools/mpremote/tests: Add tests for mpremote rm -r. Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.com> commit 1aa9b3d94bd66a625173b6182df8a5308279b6d0 Author: Jos Verlinde <jos_verlinde@hotmail.com> Date: Mon Apr 7 23:01:06 2025 +0200 tools/mpremote: Add recursive remove functionality to filesystem cmds. mpremote now supports `mpremote rm -r`. Addresses #9802 and #16845. Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.com> commit 037f2dad72a7d11d461330873b50bb9ccf4fed69 Author: Damien George <damien@micropython.org> Date: Mon Mar 17 13:18:20 2025 +1100 tests: Update UART and SPI tests to work on Alif boards. Signed-off-by: Damien George <damien@micropython.org> commit 2ad592530256ebfdab6459e918748b729a3de7de Author: Damien George <damien@micropython.org> Date: Mon Oct 21 13:31:57 2024 +1100 tests/ports/alif_hardware: Add flash testing script. This test is not intended to be run automatically and does not have a corresponding .exp file. Signed-off-by: Damien George <damien@micropython.org> commit 547207ddc889a395f831a45f508d676aff197e17 Author: iabdalkader <i.abdalkader@gmail.com> Date: Thu Feb 20 12:24:19 2025 +0100 github/workflows: Add Alif port to CI. Signed-off-by: iabdalkader <i.abdalkader@gmail.com> commit 704d2f2d57b3e30b3b0d0cf02849e9784b60ccb6 Author: Damien George <damien@micropython.org> Date: Mon Sep 2 21:24:47 2024 +1000 alif/boards/OPENMV_AE3: Add OpenMV AE3 board definition. Supports Murata 1YN for WiFi and BLE. Signed-off-by: iabdalkader <i.abdalkader@gmail.com> Signed-off-by: Damien George <damien@micropython.org> commit 7c216d17b6e1d8394d05fd5eaae1c812c3846963 Author: iabdalkader <i.abdalkader@gmail.com> Date: Sun Dec 17 12:12:06 2023 +0100 alif/boards/ALIF_ENSEMBLE: Add Alif Ensemble board config. Signed-off-by: iabdalkader <i.abdalkader@gmail.com> Signed-off-by: Damien George <damien@micropython.org> commit b79b64a726d9f1796605f75980d2ae52595863f8 Author: Damien George <damien@micropython.org> Date: Mon Mar 31 22:40:58 2025 +1100 alif/mpu: Add MPU region for OSPI1 XIP memory range. Signed-off-by: Damien George <damien@micropython.org> commit c395f5ebb07a2ebcafba32178f5d7680771969a3 Author: Damien George <damien@micropython.org> Date: Tue Apr 1 23:07:27 2025 +1100 alif/ospi_flash: Restore XIP settings after erase and write. Signed-off-by: Damien George <damien@micropython.org> commit df5e4ced762aac83200906c34e6dfcda7b7ccd6e Author: Damien George <damien@micropython.org> Date: Mon Mar 31 12:35:50 2025 +1100 alif/ospi_flash_settings: Use 8-bit DFS for XIP. To match the instruction length, so the DFS is restored to the XIP value after an erase or write (due to the final wait WIP). Signed-off-by: Damien George <damien@micropython.org> commit 3564ce5bd8c22254c39a556232891f9d43201eac Author: Damien George <damien@micropython.org> Date: Mon Mar 31 12:35:26 2025 +1100 alif/ospi_flash: Don't invalidate cache after erasing/writing. It's not needed, the MPU configures the XIP as non-cacheable. Signed-off-by: Damien George <damien@micropython.org> commit 737acef5cbd8ffb5a7c0ef605741debd70e72606 Author: Damien George <damien@micropython.org> Date: Thu Mar 20 14:28:57 2025 +1100 alif: Support more fine-grained pin alternate function selection. Now raises an exception if the pin doesn't support the alternate function unit number and line type, eg UART0_TX (previously it only checked the peripheral). Signed-off-by: Damien George <damien@micropython.org> commit 29a873ec0778107bcc9b25b0ab8a32a7f9e5bba9 Author: Damien George <damien@micropython.org> Date: Fri Mar 14 23:38:56 2025 +1100 alif/machine_uart: Add machine.UART peripheral support. Signed-off-by: Damien George <damien@micropython.org> commit 293e8db9d739c4e32420a48304ac9d2251e63570 Author: Damien George <damien@micropython.org> Date: Mon Mar 17 13:19:07 2025 +1100 alif/mpuart: Enhance UART to support bits/parity/stop and more IRQs. Signed-off-by: Damien George <damien@micropython.org> commit 19a4689c6b0b652f8d50be6b658adc649649d5d1 Author: iabdalkader <i.abdalkader@gmail.com> Date: Thu Mar 13 14:55:19 2025 +0100 alif/mcu: Pre-process Alif ToC config file. Signed-off-by: iabdalkader <i.abdalkader@gmail.com> commit da46b4d7089e6b0be553798568bbdf9e7ea9368b Author: iabdalkader <i.abdalkader@gmail.com> Date: Thu Mar 13 14:54:49 2025 +0100 alif/mcu: Remove json config files. They will be generated as part of the build. Signed-off-by: iabdalkader <i.abdalkader@gmail.com> commit 30dfbe5dc0d8a8ce4af3724b9b2a49b60a323a31 Author: Damien George <damien@micropython.org> Date: Mon Mar 10 13:57:48 2025 +1100 alif: Integrate cyw43 Bluetooth with NimBLE. Signed-off-by: Damien George <damien@micropython.org> commit d6e33423da471ddcba91632f032b18c5a79e9880 Author: Damien George <damien@micropython.org> Date: Mon Mar 10 14:09:04 2025 +1100 alif: Integrate cyw43 WLAN driver. Signed-off-by: Damien George <damien@micropython.org> commit 526c7eabcec97c5705ce43fe2e9588506c4a936a Author: Damien George <damien@micropython.org> Date: Mon Oct 14 21:48:51 2024 +1100 alif: Integrate lwIP and mbedTLS. Signed-off-by: Damien George <damien@micropython.org> commit 411146b0ed0fa2d70fc13264b1bd2cda9045c99e Author: Damien George <damien@micropython.org> Date: Mon Oct 14 21:48:51 2024 +1100 alif/mpuart: Generalise UART driver to suppot all UART instances. Signed-off-by: Damien George <damien@micropython.org> commit 4f2a8bd99f81f88fd173aa717523345ba32083e0 Author: Damien George <damien@micropython.org> Date: Wed Oct 23 16:25:22 2024 +1100 alif/mphalport: Add mp_hal_pin_config_irq_falling helper. Signed-off-by: Damien George <damien@micropython.org> commit d1b12cb6766d8b48d0e8cdf551808c324d0599c1 Author: Damien George <damien@micropython.org> Date: Sat Mar 8 23:19:47 2025 +1100 alif/modules: Make HE core set /rom as current dir. This allows HE to execute code from the ROMFS in MRAM. Signed-off-by: Damien George <damien@micropython.org> commit 8297c95c22fd15aa706243bfebb0688a61827855 Author: Damien George <damien@micropython.org> Date: Thu Mar 6 14:51:45 2025 +1100 alif/vfs_rom_ioctl: Add vfs_rom_ioctl with support for OSPI and MRAM. Signed-off-by: Damien George <damien@micropython.org> commit f83f6e7eed39f961ff9788814d3ee9104d3577a6 Author: Damien George <damien@micropython.org> Date: Thu Mar 6 16:30:15 2025 +1100 alif/mpu: Add function to set read-only bit on MRAM MPU region. To allow writing to MRAM region. Signed-off-by: Damien George <damien@micropython.org> commit d895a62b0703d28fb2b15427760aae8a67ad666f Author: Damien George <damien@micropython.org> Date: Tue Dec 24 00:19:20 2024 +1100 alif/alif_flash: Make flash respond to the buffer protocol. Signed-off-by: Damien George <damien@micropython.org> commit af574a86c2ec3af02b167d449b8a8718f39f1ca8 Author: Damien George <damien@micropython.org> Date: Tue Dec 24 00:18:56 2024 +1100 alif/alif_flash: Distinguish between total flash size and FS size. Signed-off-by: Damien George <damien@micropython.org> commit ca3d50a096ffa999e47b98335ceb0b7f459196c2 Author: Damien George <damien@micropython.org> Date: Thu Mar 6 23:31:58 2025 +1100 alif/mpuart: Use mp_hal_pin_config for TX/RX configuration. Signed-off-by: Damien George <damien@micropython.org> commit 7e32c232183441e1022f59e58c31ba431c25fe2f Author: Damien George <damien@micropython.org> Date: Thu Mar 6 23:29:58 2025 +1100 alif/mpmetalport: Only notify after metal subsystem is init'd. Signed-off-by: Damien George <damien@micropython.org> commit 68b1dae011dd9f2696e9f6f2f914317d827c879d Author: iabdalkader <i.abdalkader@gmail.com> Date: Wed Feb 19 14:42:05 2025 +0100 alif: Link with libnosys. This allows the correct start up functions to be called by the stdlib. Signed-off-by: iabdalkader <i.abdalkader@gmail.com> commit 182b5f3a12427d3dc21744b0164d546663ea696b Author: iabdalkader <i.abdalkader@gmail.com> Date: Sat Feb 15 14:00:42 2025 +0100 alif/mpmetalport: Use MHU to notify remote cores. Unlike HWSEM, the MHU IRQ can wake up cores from low-power modes, making it better suited for notifying remote cores. Note that no special function is required to wake up a remote core—the act of sending a message alone will notify it. Signed-off-by: iabdalkader <i.abdalkader@gmail.com> commit b9e5f1ffba8551164374bf732aa165c87519a569 Author: iabdalkader <i.abdalkader@gmail.com> Date: Sat Feb 15 13:53:44 2025 +0100 alif/se_services: Add a secondary MHU channel. This channel can be used to communicate (pass messages) between the M55 cores in the RTSS. Currently it's only used to notify the cores. Signed-off-by: iabdalkader <i.abdalkader@gmail.com> commit facd0b7190d48d7d6f4af1d1eaba0c3a18734356 Author: iabdalkader <i.abdalkader@gmail.com> Date: Fri Feb 7 15:41:42 2025 +0100 alif/ospi_flash: Use mp_hal_pin_config to configure OSPI pins. Signed-off-by: iabdalkader <i.abdalkader@gmail.com> commit ec92bcfeff787a4ceb25c3b9c1703043a7e3052d Author: iabdalkader <i.abdalkader@gmail.com> Date: Fri Jan 31 14:15:06 2025 +0100 alif/machine_rtc: Add basic machine.RTC support. Signed-off-by: iabdalkader <i.abdalkader@gmail.com> commit 280e6e2a40dbddb3aec5424c1ca1bf9dea876dd0 Author: iabdalkader <i.abdalkader@gmail.com> Date: Sun Jan 19 15:59:25 2025 +0100 alif/machine_spi: Add machine.SPI peripheral support. Signed-off-by: iabdalkader <i.abdalkader@gmail.com> Signed-off-by: Damien George <damien@micropython.org> commit 9073270c2e0daa1a3539aa14c0feadadd6c6b08d Author: iabdalkader <i.abdalkader@gmail.com> Date: Thu Jan 2 06:29:05 2025 +0100 alif/machine_i2c: Add machine.I2C peripheral support. Signed-off-by: iabdalkader <i.abdalkader@gmail.com> commit 82bae652eb43ac3ce8226d08c1ce0047ffa76191 Author: iabdalkader <i.abdalkader@gmail.com> Date: Thu Jan 9 19:58:25 2025 +0100 alif: Add support for pin alternate function selection. Signed-off-by: iabdalkader <i.abdalkader@gmail.com> commit 039df0c884ef0169257b3ab31255be8cd45caacf Author: iabdalkader <i.abdalkader@gmail.com> Date: Mon Feb 3 06:54:37 2025 +0100 alif/modmachine: Implement proper low-power modes. Lightsleep current is around 23mA. Deepsleep current is sub 50uA. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
Among the 9 debian patches available in version 1.25.0+ds-1 of the package, we noticed the following issues: