Coder Social home page Coder Social logo

Upload problem about deviot HOT 9 CLOSED

Toladar avatar Toladar commented on May 31, 2024
Upload problem

from deviot.

Comments (9)

garvamel avatar garvamel commented on May 31, 2024 1

After the many restarts today, it started working. Odd to say the least.
In any case, the output was as expected I guess:

PORT: /dev/tty.usbmodem1242711
MCU: mk20dx256
ENVIRONMENT: teensy31

Sorry for the trouble! And thanks for your excellent support!

from deviot.

gepd avatar gepd commented on May 31, 2024 1

Thanks for the info, it helps me to debug any problem. I hope to improve this in the next release!

from deviot.

gepd avatar gepd commented on May 31, 2024

Hi @Toladar
I've solved this issue for next release, but you can add the fix by yourself

Go to ST Menu > Preferences > Browse Packages
Open PlatformioCLI.py in Deviot\libs

Replace Line 550:

if("esp" not in MCU and "tty" not in PORT and "COM" not in PORT):

By

from re import search
if(search(r"[\d{3}\.]{3}", PORT) is not None and "esp" not in MCU.lower()):

Let me know if it solve your problem

EDIT: You can download and install the developer branch too, you only need to replace the deviot folder

from deviot.

garvamel avatar garvamel commented on May 31, 2024

I'm getting the same error even with the developer branch when trying to upload to a Teensy 3.2.

System:
OSX
Deviot 1.2.4 (tested with developer branch and master)
PlatformIO 2.11.2

Thanks!

from deviot.

gepd avatar gepd commented on May 31, 2024

Can you tell me the name of the usb port, I've just tried that board in windows and linux and I didn't have the problem, I don't have OSX here to test, but the name of the usb can help me

from deviot.

garvamel avatar garvamel commented on May 31, 2024

This is the format on OSX: /dev/tty.usbmodem12345 (absolute path)
Not my specific device though, I can get it tomorrow.

from deviot.

gepd avatar gepd commented on May 31, 2024

Please, check the line 558 of the file PlatformioCLI.py in Packages/libs is:

if(search(r"^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$", PORT) is not None and "esp" not in MCU.lower()):

I've tested the code with the path you gave me and it seems to work fine. I've check the develop branch and it should be resolved with the last fix:
https://github.com/gepd/Deviot/blob/develop/libs/PlatformioCLI.py#L558

Just to be clear you are receiving this error: OTA Upload are only available for Espressif (ESP8266) platforms currently ?

from deviot.

garvamel avatar garvamel commented on May 31, 2024

Yes, that exact error. Line 558 is the same as you posted.
I now have the teensy at hand though, and the name of the port is longer, could that be it? I know nothing of regex, otherwise I would try to patch it myself :)

The port is: /dev/tty.usbmodem1242711

I just tested my port against the expression in this site and it says it doesn't match.

from deviot.

gepd avatar gepd commented on May 31, 2024

The regex result is a normal behavior, it only match when the port is an IP.

Can you please paste this code before the line 558:

        print("============")
        print("PORT:", PORT)
        print("MCU:", MCU)
        print("ENVIRONMENT:", environment)

After paste, restart ST and try to upload the firmware, when deviot shows the error, go to the console Menu ST > View > Show Console look for the previous lines and paste it here.

from deviot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.