Skip to content

MicroPython port Raw REPL does not work #232

Open

Description

@MarcelHeemskerk

Can somebody explain to me the difference between the default Python on the micro:bit V2.2, and the firmwares as can be found https://github.com/microbit-foundation/micropython-microbit-v2/releases (edit: moved RFI to different issue)

Out of the Box, Thonny or the default MicroPython CLI mpremote do not connect with a micro:bit. I used Thonny to install the latest MicroPython firmware (latest release of micropython-microbit-v2 ) and now I can connect.

I have two micro:bits. One could be flashed with Thonny, the other could not. Both still work with python.microbit.org...

Also, I still cannot get the PyCharm plugin to work for micro:bit, discussion on this issue here lukaskremla/micropython-tools-jetbrains#83

I get a warning about Missing MicroPython Libraries : The connected board is missing the crc32 and a2b_base64 binascii functions. The already uploaded files check won't work and uploads may be slower.

When I continue, I get the error: Connect I/O error - Micropython filesystem scan failed, Device aborted raw paste mode. The device's memory might be fragmented or insufficient for this operation. Please reset the board and try again.

Thanks for any help!

Activity

  1. changed the title [-]MicroPython port versus default micro:bit Python[/-] [+]MicroPython port versus default micro:bit Python, problem + questions[/+] on Dec 10, 2025
  2. lukaskremla commented on Dec 10, 2025

    @lukaskremla

    As far as the PyCharm plugin goes - the missing libraries warning is non-fatal, it just means large file uploads are going to take longer.

    The file system scan error suggests that the MicroPython firmware you're running doesn't support Raw REPL and Raw Paste modes - which the plugin depends on, as they allow faster/stabler communication and are supported by all MicroPython.org distributed ports (or at least I'm not aware of any exceptions).

    I suspect that the micro:bit port is significantly slimmed down and simplified for learners to have less confusing libraries to worry about and to make it more lightweight.

    I can only speculate about the details, someone with micro:bit knowledge would have to confirm what I say or correct me.

    I myself would actually be curious to find out the details of the micro:bit port and whether it really omits even REPL related things

  3. MarcelHeemskerk commented on Dec 11, 2025

    @MarcelHeemskerk
    Author

    FWIW, REPL through mpremote and Thonny does work.

  4. changed the title [-]MicroPython port versus default micro:bit Python, problem + questions[/-] [+]MicroPython port Raw REPL does not work[/+] on Dec 11, 2025
  5. lukaskremla commented on Dec 11, 2025

    @lukaskremla

    Neither REPL through mpremote or Thonny requires Raw Paste Mode support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions