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

When uploading bootloader and python scripts, Badger freezes and becomes unresponsive. #7

Open
Declan0811 opened this issue Jul 27, 2024 · 4 comments

Comments

@Declan0811
Copy link

As the title says, when following the directions of putting the Badger in bootloader mode, uploading the new bootloader, then uploading the python scripts, the Badger will become frozen with the original Badger_os menu, but no buttons work or anything. Ideas what I should try?

@oneearedrabbit
Copy link
Owner

oneearedrabbit commented Jul 27, 2024

Do you remember off hand which bootloader you used? I am checking my notes, and it seems that I've been using pimoroni-badger2040-v1.19.6-micropython.uf2. I have some vague memories that this was not the latest release due some bugs in 1.19.7+. Since I published the project, https://github.com/pimoroni/pimoroni-pico/releases released quite a few changes, and I suspect one of them might be not backward compatible and causing the issue you see.

If you are feeling adventurous, you might want to try the latest version from https://github.com/pimoroni/badger2040. This could be a bit of adventure though :-)

So, there are three paths to explore, ordered by their complexity:

  • Try 1.19.6 bootloader
  • Migrate scripts and make them compatible with 1.23.0. This is not as difficult as it sounds, try running the badger-os example and then surgically incorporate changes from the repo.
  • Try porting the project to https://github.com/pimoroni/badger2040

Let me know how it goes, I would like to update README to make sure that it reflects the current state.

@unnamedd
Copy link

unnamedd commented Dec 4, 2024

Just to share that I've had the same problem, and after following your instructions here @oneearedrabbit, I've managed to make it work.

I'm leaving the link for the bootloader you've mentioned here for future reference in the steps down below.

For those who might be seeing this comment in the future (myself included).

Steps:

  • Download bootloader 1.19.6
  • Initialize badge2040 in boot mode (pressing the bootsel button while connecting the USB-C cable)
  • Move the pimoroni-badger2040-v1.19.6-micropython-without-badger-os.uf2 file to the RPI-RP2 mounted drive
  • Open Thonny (the editor used with MicroPython for RPi Pico)
  • Select the correct drive CleanShot 2024-12-05 at 00 49 25
  • Select View > Files
  • Select all the files from the Raspberry Pi Pico widget and deleted them
  • Select all files from this on your computer and right-clicked
  • SelectUpload to /
  • And to finish, Run > Soft Reboot

The steps above worked fine for me to run the OS from this repo.

@oneearedrabbit
Copy link
Owner

@unnamedd Thanks for the instructions; I appreciate you going the extra mile! I apologize for the troubles you had to deal with. Would it be alright with you if I included your instructions in the README?

@unnamedd
Copy link

unnamedd commented Dec 5, 2024

@oneearedrabbit absolutely. Tomorrow I will do it and submit a PR ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants