GithubHelp home page GithubHelp logo

Support for MicroPython 1.21 about canhack HOT 5 OPEN

kentindell avatar kentindell commented on June 21, 2024
Support for MicroPython 1.21

from canhack.

Comments (5)

kentindell avatar kentindell commented on June 21, 2024 1

Now updated for v1.22.2. It's in CANPico/firmware. Please try it out and see if you can build it - I might have forgotten a file (getting this to drop over the top of the upstream requires some delicate surgery).

from canhack.

kentindell avatar kentindell commented on June 21, 2024

I have an internal 1.20 build already, so I'll look at bumping it to 1.21. If there aren't huge changes then I'll make a beta build for testing and drop it here.

from canhack.

robofwy avatar robofwy commented on June 21, 2024

Thanks for that.

I have managed to build v1.21.0 (without patching it) on a 32-bit Debian host for the RPI_PICO_W board and everything seems to work except Bluetooth/BLE which causes it to lock up. The resultant firmware uf2 file is a different size to the one available from https://micropython.org/download/RPI_PICO_W so I am not sure what is wrong there. picotool shows the same output for both.

If I build the latest v1.22 master/preview, everything (including BLE) seems to work.

from canhack.

robofwy avatar robofwy commented on June 21, 2024

I found out that this is a known issue with BLE on the Pico W with v1.21.0. If built with Arm GCC v12.3 or newer, it works ok. The version that Debian installs is v12.2.1 which does not work.

Using a 64-bit Debian host and downloading the Arm GNU Toolchain from https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads (x86_64 arm-none-eabi) and building with that fixes the problem but a better fix is to either increase the stack size in boards/RPI_PICO_W/mpconfigboard.cmake (e.g. to 5120) or to apply the patch https://github.com/micropython/micropython/pull/12647/files.

from canhack.

Miki-AG avatar Miki-AG commented on June 21, 2024

Hi @kentindell is the 1.20 build available somewhere?

from canhack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.