Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nordic: RunMode.UF2 stopped working in 9.1.0-beta.4 and later #9423

Closed
dhalbert opened this issue Jul 11, 2024 · 6 comments · Fixed by #9618
Closed

nordic: RunMode.UF2 stopped working in 9.1.0-beta.4 and later #9423

dhalbert opened this issue Jul 11, 2024 · 6 comments · Fixed by #9618
Assignees
Milestone

Comments

@dhalbert
Copy link
Collaborator

dhalbert commented Jul 11, 2024

CircuitPython version

9.1.0-beta.4 and 9.1.0

Code/REPL

import microcontroller
microcontroller.on_next_reset(microcontroller.RunMode.UF2)
microcontroller.reset()

Behavior

Goes back to CircuitPython instead of bootloader

Description

No response

Additional information

Works in 9.10-beta.3.

Need to look at PR's and see if it's nRF-specific.

Discord: https://discord.com/channels/327254708534116352/537365702651150357/1260986985208610947

@dhalbert dhalbert added the bug label Jul 11, 2024
@dhalbert dhalbert added this to the 9.1.x milestone Jul 11, 2024
@jeffsf
Copy link

jeffsf commented Jul 11, 2024

Discovered on Adafruit CircuitPython 9.1.0 on 2024-07-10; nice!nano with nRF52840

UF2 Bootloader 0.8.3 lib/nrfx (v2.0.0) lib/tinyusb (0.12.0-145-g9775e7691) lib/uf2 (remotes/origin/configupdate-9-gadbb8c7)
Model: nice!nano
Board-ID: nRF52840-nicenano
Date: Jan 29 2024
SoftDevice: S140 6.1.1

@dhalbert dhalbert changed the title RUnMode.UF2 stopped working in 9.1.0-beta.4 and later, at least on nRF52840 nordic: RunMode.UF2 stopped working in 9.1.0-beta.4 and later Jul 11, 2024
@dhalbert
Copy link
Collaborator Author

I thought this might be due to #9160, but that was in 9.1.0-beta.1.

EDIT: might be a combination of #9160 and #9344. #9344 was added in beta.4

Does not fail on a Metro RP2040 on 9.1.0, so I think this is nordic-specific

@dhalbert
Copy link
Collaborator Author

This works again, probably fixed by #9453.

@dhalbert
Copy link
Collaborator Author

I just saw #9584, and I can't get it to work again. I thought I just tested on a Feather nRF52840, but it indeed goes back to CircuitPython. Saw same thing on Itsy nRF52840. On the chance it might be the bootloader, I tried with 0.9.3, 0.8.2., and 0.6.1, but they all go to CIRCUITPY.

@dhalbert
Copy link
Collaborator Author

@jordan1110 watch this issue, which is the same as your #9584.

@tannewt
Copy link
Member

tannewt commented Sep 12, 2024

I suspect #9344 broke this. The current implementation only works with the SD (BLE) is running. Fix coming shortly.

@tannewt tannewt linked a pull request Sep 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants