Skip to content

Loading forever when trying to connect esp32-c3 #64

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

Closed
ningelschlingel opened this issue Sep 17, 2023 · 8 comments
Closed

Loading forever when trying to connect esp32-c3 #64

ningelschlingel opened this issue Sep 17, 2023 · 8 comments

Comments

@ningelschlingel
Copy link

Using macOS Ventura 13.1 and Arduino Lab 0.8.0 I get an infinite loading wheel when trying to connect a XIAO ESP32-C3.
I can't find a list of supported devices but in any case the action should either lead to a successful connection or fail (right?).

@ubidefeo
Copy link
Collaborator

@ningelsohn
some custom builds of MicroPython have a different REPL response and this editor is not able to parse it.
can you try flashing another ESP32-c3 build from here and see if you can connect?
https://micropython.org/download/?mcu=esp32c3

@benj5378
Copy link

benj5378 commented Dec 8, 2023

Having used the arduino micropython flash tool with autochosen image, I am having the same issue. The Arduino Lab for Micropython IDE just keeps loading forever when trying to connect. Ubuntu 23.02

Fixed using sudo chmod -R 777 /dev/ttyACM0; the flashing tool gave a permission error, the IDE should do as well.

@ubidefeo
Copy link
Collaborator

ubidefeo commented Dec 8, 2023

@benj5378
do you mean that now you can connect using the Lab for MicroPython Editor?
which board and which build of MicroPython?

I'd love to setup a test and see if I can spot where it breaks

Thank you :)

@benj5378
Copy link

benj5378 commented Dec 8, 2023

Arduino Nano ESP32. Build of micropython not relevant as it has to do with internal permissions on Linux.

Yes, I can now connect after I did chmod. The Arduino Labs for Micropython IDE should throw a permissions error instead of loading infinitely

@benj5378
Copy link

benj5378 commented Dec 9, 2023

Loading forever happens as well when trying to save file to the Arduino Nano ESP32 - not sure if this is due to permission or just because it got disconnected. Other than throwing a permissions error, the communication line should also have a general timeout - this would stop infinite loads whatever the reason might be.

@ubidefeo Sorry to disappoint, but there seems to be quite some work needed on this application for even doing simple programs. Some very uncool UI stuff:

  • Until the script is given another name than undefined, it's not possible to save. In other words, you could also say that the save button is very unintuitive, what is needed for enabling it.
  • File manager, that can't create folders? This is an important feature that should be very easy to make, currently needing to do os.mkdir(path) manually.
  • Files can't be saved onto the computer? What? Or is it the save procedure that is very unintuitive
  • It's not possible to create a new file? Unless first creating one in the file manager? Should be possible to create new unsaved files.
  • It's not possible to move folders using the file manager?
  • It's not possible to create new files, move files or delete files as long as the default opened undefined file isn't saved?
  • Sometimes when pressing the run button, some bug happens, where nothing happen. (No OK in the terminal)
  • I don't know, if this is ESP32 or IDE side thing, but perhaps there should be an automatic newline after the OK often given, instead of the first print(msg) being on the same line as the OK
  • Tabs for multiple files opened at once is needed - but I guess you're aware of that already
  • It should be possible chagning the editor font size without chaing the size of the whole gui (meaning buttons too).
  • The controller name Arduino Nano ESP32 could preferably be shown instead of just /dev/ttyACM0 in my case

@ubidefeo
Copy link
Collaborator

@benj5378
sorry for the very late reply.
This project is marked as one of our Lab experiments, and we didn't get a lot of time allocated to it.

I'm happy to tell you that we have v0.9.0 coming and it fixes all of the annoyances you listed.
Keep in mind that

  • It's not possible to move folders using the file manager?
    you'll be able to copy entire folders from board to computer and viceversa, but not move within the same filesystem.
    we do not plan to do that in the short time
  • Files can't be saved onto the computer? What? Or is it the save procedure that is very unintuitive
    newly created files will always be PC first, but can later be copied to the board, because saving is time-consuming
  • I don't know, if this is ESP32 or IDE side thing, but perhaps there should be an automatic newline after the OK often given, instead of the first print(msg) being on the same line as the OK
    Minor annoyance, it will be fixed when we have time
  • It should be possible chagning the editor font size without chaing the size of the whole gui (meaning buttons too).
    not happening anytime soon, we don't plan on having application settings
  • The controller name Arduino Nano ESP32 could preferably be shown instead of just /dev/ttyACM0 in my case
    we list the serial port, do not plan to make a map of every device and their VID:PID because it's hell (trust me, I'm the PO of Arduino IDE and tools)

I'm very happy with the work we're doing on this little side-project, but it's taking the time it finds and we can't afford to do more :)

@ubidefeo
Copy link
Collaborator

@benj5378
please download version 0.9.x and most of your disappointments will be made up for :)

closing the issue since it is no longer relevant but attributed to 0.8 problems and shortcomings

@0xifis
Copy link

0xifis commented Aug 5, 2024

@benj5378 do you mean that now you can connect using the Lab for MicroPython Editor? which board and which build of MicroPython?

I'd love to setup a test and see if I can spot where it breaks

Thank you :)

I encountered a similar issue with connection.

OS: MacOS 14.4.1
Lab version: 0.10
Board: ESP-32 DEVKITV1 (WROOM)
Micropython: v1.23.0 (2024-06-02) Did not work
v1.22.2 (2024-02-22) .bin Worked

@ubidefeo Great work pal, appreciate putting in the time to develop this side project, although i feel that it is already in a good enough state for many to have their first micropython experience with

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

4 participants