-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Long delay after begin #30
Comments
Hi @metanav ! Please can you tell me if in these 12seconds both lights are on? Thank you in advance! |
Hi @gbr1 When I click on the RUN button in the Arduino Lab for MicroPython, the right side LED (above the tick) turns on in green momentarily and turns off. After around 3 seconds, both LEDs turns on in Yellow (greenish?) for 2 seconds and turns off. I have updated the firmware by following the User manual: https://docs.arduino.cc/tutorials/alvik/user-manual/ |
Please @metanav could you try this: https://alvikupdate.arduino.cc ? |
This is very strange, it should be 2-3 minutes O_O Which version of micropython are you using on the robot? |
MicroPython v1.24.0 on 2024-10-25; Arduino Nano ESP32 with ESP32S3 |
Ok! I need to test! @ubidefeo could something changed? |
@metanav meanwhile what happens if you revert to 1.22? |
I uploaded an empty sketch using the Arduino IDE to the Nano ESP32. Now the alvikupdate.arduino.cc uploaded the firmware successfully. But I do not see any improvements, it takes 9 to 15 seconds (random time) to complete the begin() call. How can I revert the Micropython firmware to 1.22? |
Wait, you cannot use the updater if your board isn't running micropython. |
I uploaded the empty sketch again. When I connect it using the Arduino Lab for Micropython, It displays the REPL:
It means Micropython did not remove. |
it could corrupted because part of the flash is overwritten |
I erased the flash using the command:
Now Arduino Lab for Micropython cannot connect to it. So Micropython has gone. Let me know how to upload 1.22. |
Please check here: |
I could revert it to 1.22.2 and uploaded the firmware using the alvikupdate.arduino.cc. Now it takes 6 seconds (seems consistent) to begin. Is it normal?
|
Yes! 6s is the normal time to boot.
I'm trying to install micropython 1.24 to see what happens @metanav thank you for debugging together |
Great! Thanks, @gbr1! |
You are right, 1.24 introced something which makes alvik very slow |
@eigen-value @ubidefeo we must do an investigation on 1.24 |
Why is there long delay (around 12 seconds) when Alvik.begin() called? Looking at the code it seems doing version compatibility check only. I used the code below.
Output:
The text was updated successfully, but these errors were encountered: