-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Arduino Nano 33 BLE Sense not able to find USB serial connection after Flashing MicroPython #11533
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
Comments
Just try to reload the firmware, taking the latest daily build from https://micropython.org/downloa/arduino_nano_33_ble_sense/, and using the firmware update instrauctions from that site:
And that works. The bin file name may have to be adapted. |
I did try to to do that, the device is visible in However, as soon as MicroPython gets flashed it will not show up in There is not error messages from BOSSAC, it writes the buffer, then reset() Either my device has some hardware fault or software fault, or this isn't working. It could be a broken Python script on the device perhaps, as I have had MicroPython working during last summer. Is there a way to overwrite the usable flash storage so that older sketches might be overwritten? |
Do you see the progress messages of bossac? The -e option already erase the flash, see |
Yes, this is the output in the terminal:
I honestly don't know what is wrong, but I am almost certain that it's some hardware level fault now, at the same time it works as it should when flashing Arduino Sketches via the IDE. |
Didn't you manage to fix that issue the last time ? Anyway, I can't reproduce this: make -j12 BOARD=arduino_nano_33_ble_sense SD=s140 FLASHER=bossac deploy
MPY: soft reboot
MicroPython v1.20.0-74-gff08f1efa-dirty on 2023-05-22; Arduino Nano 33 BLE Sense with NRF52840
Type "help()" for more information.
>>> |
Having the same proble here with two boards out of 5. |
This is exactly the same issue that I am facing as well. However, for me, it worked fine in the beginning. I was able to flash OpenMV-Micropython, and try basic examples. Since I am new to this, I wanted to explore other options as well. So then I flashed general Micropython using the Arduino-Microypthon installer (part of Arduino Lab for Micropython). This also works fine, and I was able to use different IDEs with this firmware (VsCode, Thonny). I tried using different IDEs because erasing files from the board was not working properly with Arduino-lab-for-micropython IDE. While I was loading my code using Thonny IDE, the device suddenly stopped working. I was not able to connect to the device with any IDE. So I thought of flashing micropython again using the Arduino-micropython installer, but it just kept failing. In one of the attempts I got following error:
After that I tried going back to running arduino scripts, which work perfectly fine. So I repeated the whole process of boot loading soft-device and flashing micropython with all different methods available on internet (BOSSAC, Arduino-micropython installer, OpenMV). While Arduino-micropython installer keeps failing, other two methods show that the installation is successful, but I cannot find my device on serial port ('/dev/tty*') Note: I am using Mac Sonoma 14.0 @OKPersson did you find any solution yet? |
I did not, I take it it's either been rectified in newer revisions of the Nano33 BLE Sense, a hardware fault or user error sadly. Perhaps it would be fixable if you could force reinstall the firmware/softdevice as I guess that it has to do with that. Currently the Arduino sketch doesn't allow that as far as I know. As my device was used to test the early release of MicroPython for the Nano33 BLE Sense before they implemented #8577 (comment) However as more people seem to have the same or similar problems there could be a larger issue at hand. Which revision of the board do you have? Mine is a rev 1 ABX00035 . It's been a while since I tried, maybe the issue has been fixed with newer software releases. I see that there is a MicroPython installer program now. |
Well, the installer program did not help sadly, installation got timed out when waiting for the device after flashing. Will try to do a more in depth check later. |
@OKPersson Thanks for the reply. Mine is Rev 2. Actually, I have purchased 10 of those pieces, so when the first one broke, I tried with the other piece, and for that it works fine till now.
Yes, the micropython installer times out or throws some error. I am guessing it has something to do with softdevice installation, because the device is not bricked as it is able to run Arduino scripts.
For the broken piece, I plan to re-flash the bootloader itself. Let's see if I can get my hands on the debugger soon to do this. I hope this solves the problem.
@saurabh-2905 Please update here if you manage to fix the issue. Hopefully it's a semi easy fix, but still I wonder what the main cause of it is, why it's happening to some boards and some are fine I mean. |
Issue not reproducible, so I think we should close this - since there is not much we can do. Can be reopened if able to provide details on how to reproduce. |
Hey, I am trying to get MicroPython to work on my Arduino Nano 33 BLE Sense but am encountering an issue where the device isn't showing up in
/dev/
on either of my Mac or Linux computer.The board works when flashing Arduino code via Arduino IDE, but after flashing MicroPython the only way to see the device via the command
ls /dev/
is to enter the bootloader mode, ie pressing the reset button twice.I think it might be a regression of this: #8577 (comment) Because I have had it working with that fix, but it's not working anymore.
The process of flashing is following the Arduino guide, running the Arduino 33 BLE Sense Example:
Nano33_updateBLandSoftDevice
using the Arduino IDE 2.1.0, opening the serial monitor and pressing y for it to update the soft device on the microcontroller. Then I use either the BOSSAC variant that is included with the Arduino IDE or https://github.com/arduino/BOSSA/releases/tag/1.9.1-arduino2Firmware I have tried recently was
v1.20.0(2023-04-26)
andv1.20.0-68-g3229791b6 (2023-05-11)
.Guide followed: https://docs.arduino.cc/tutorials/generic/micropython-installation
Things that I haven't been able to try is to re-flash the firmware to the Nano, as the firmware/soft device sketch for Arduino seems to recognize that the firmware is already the newest one (Unsure if it checks firmware hash to see if it's broken).
It might be a hardware bug on my device or it could possibly be a bug, hopefully someone smarter than me can give some insights if I am doing something wrong. I only have one of the microcontroller so I cannot do a side by side test. I haven't been able to find anyone else having the same issue on the internet so it might just be my device that is malfunctioning, in that case I can just use Arduino IDE instead, but I want to try out MicroPython to learn more about it.
The text was updated successfully, but these errors were encountered: