Skip to content

[BUG] Cannot Upload to Connnected Device #316

Open
@drew-wks

Description

@drew-wks

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 /

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions