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

[BUG] Cannot Upload to Connnected Device #316

Open
drew-wks opened this issue Oct 15, 2024 · 2 comments
Open

[BUG] Cannot Upload to Connnected Device #316

drew-wks opened this issue Oct 15, 2024 · 2 comments

Comments

@drew-wks
Copy link

drew-wks commented Oct 15, 2024

Describe the bug
Identical to the issues described in #253 I can connect to the device, but cannot upload/download, soft reset or stop script on the device.

This is starting from total scratch.

  1. Open a new empty window in VS Code, click the "Create project" button under Pymakr's "Projects" section:
Screenshot 2024-10-15 at 11 32 54 AM
  1. Create a templated project
Screenshot 2024-10-15 at 11 34 25 AM
  1. Add the serial port under the project:
Screenshot 2024-10-15 at 11 35 49 AM
  1. Click the little lightning icon to connect
    lightening

  2. Device appears to be accessible:

Screenshot 2024-10-15 at 11 59 47 AM
  1. However, uon clicking "upload," the spinner spins but never finishes:
Screenshot 2024-10-15 at 12 13 02 PM
  1. If I click the "Create terminal" icon instead, it connects and I'm now at the REPL which works:
MicroPython v1.23.0 on 2024-06-02; M5Stack ATOM with ESP32-PICO-D4
Type "help()" for more information.
>>> 
  1. Add tiny bit of code to main.py and click the "Sync project" button

Expected behavior
The project is uploaded and I can see the "colored LEDs on the device.

Actual behavior
Nothing happens, even when looking in the developer console with Pymakr's logs set to debug level.

Additional context
Device Info
M5Stack ATOM with ESP32-PICO-D4
MicroPython v1.23.0 (2024-06-02)

 Dev Environment
 Pymakr 2 v2.22.5
 Node.js v20.11.0
 VS Code 1.94.2 (Universal)
 Macbook Air M2, 2022 running Sonoma 14.1

I came across #243, but that hasn't made any difference unfortunately.

  "pymakr.devices.configs": {
    "1D52E20475": {
      "autoConnect": "never",
      "name": "ATOM Lite",
      "username": "micro",
      "password": "python",
      "hidden": false,
      "rootPath": "/",
      "adapterOptions": {
        "chunkDelay": 20,
        "chunkSize": 256
      },
      "fast_upload": false,
      "baudrate": 115200
    },

During Step 2 when loading pymakr, the debug logs show:
ERR No registered selector for ID: ms-vscode.npm-command

During Step 3 when loading pymakr, the debug logs show the following. Neither "getting device info" nor "upload" receive a confirmation.

[Extension Host] 12:04:19.353 info: > [Pymakr] > Device: tty.usbserial-1D52E20475 > Connected.
console.ts:137 [Extension Host] 12:04:19.353 info: > [Pymakr] > Device: tty.usbserial-1D52E20475 > Waiting for access...
console.ts:137 [Extension Host] 12:04:19.377 info: > [Pymakr] > Device: tty.usbserial-1D52E20475 > Got access.
console.ts:137 [Extension Host] 12:04:19.377 info: > [Pymakr] > Device: tty.usbserial-1D52E20475 > Getting device info.
console.ts:137 [Extension Host] 12:04:31.136 info: > [Pymakr] > Device: tty.usbserial-1D52E20475 > upload /Users/drew_wilkins/Drews_Files/Drew/Python/bug_report to /
@jaketeater
Copy link

I had a similar issue on my generic ESP32-WROOM. I was able to connect, but not upload/download/soft reset/stop script.

I found that if I connect right away and immediately clicked on stop script, it would work. But this only worked about 1 out of 5-10 tries.

I had this problem in both VS Code (PyMakr) and Thonny.

I had flashed (and reflashed) with MicroPython v1.24.0 (ESP32_GENERIC-20241025-v1.24.0.bin)

I was able to resolve the issue by using ESP32_GENERIC-20240602-v1.23.0.bin

I realize this isn't going to help you, since you are already using 1.23.0, but I am commenting in case someone else would find it useful.

@Josverl
Copy link
Contributor

Josverl commented Nov 27, 2024

The company pycom does not exist any more, and therefore there is no maintenance to pymakr anymore.
You could see if MicroPico may be a relevant option.
It is indirectly based on Pymakr , and allows for Pico and other devices.

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