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

Error message when open Serial Monitor, ESP32 devkit C, Windows 10 #1611

Closed
kephaII opened this issue Mar 19, 2020 · 1 comment
Closed

Error message when open Serial Monitor, ESP32 devkit C, Windows 10 #1611

kephaII opened this issue Mar 19, 2020 · 1 comment

Comments

@kephaII
Copy link

kephaII commented Mar 19, 2020

I have installed VSC and Platformio IDE (from VSC) and latest Arduino IDE today. Compiles a simple code, and seems to load without error messages, but when I open Serial monitor I get an error message:

An unexpected error occurred. Further steps:


Version is Core 4.3.0b2·Home 3.1.1, using ESP32 devkit C, Windows 10
When i run the same code and board on Arduino IDE. It works OK

Executing task in folder test: C:\Users\kepha.platformio\penv\Scripts\platformio.exe device monitor <

Error: Traceback (most recent call last):
File "c:\users\kepha.platformio\penv\lib\site-packages\platformio_main_.py", line 102, in main
cli() # pylint: disable=no-value-for-parameter
File "c:\users\kepha.platformio\penv\lib\site-packages\click\core.py", line 764, in call
return self.main(*args, **kwargs)
File "c:\users\kepha.platformio\penv\lib\site-packages\click\core.py", line 717, in main
rv = self.invoke(ctx)
File "c:\users\kepha.platformio\penv\lib\site-packages\platformio\commands_init_.py", line 44, in invoke
return super(PlatformioCLI, self).invoke(ctx)
File "c:\users\kepha.platformio\penv\lib\site-packages\click\core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\kepha.platformio\penv\lib\site-packages\click\core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\kepha.platformio\penv\lib\site-packages\click\core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\kepha.platformio\penv\lib\site-packages\click\core.py", line 555, in invoke
return callback(*args, **kwargs)
File "c:\users\kepha.platformio\penv\lib\site-packages\platformio\commands\device\command.py", line 182, in device_monitor
device_helpers.load_monitor_filter(os.path.join(filters_dir, name))
File "c:\users\kepha.platformio\penv\lib\site-packages\platformio\commands\device\helpers.py", line 90, in load_monitor_filter
obj = cls(project_dir, environment)
File "c:\users\kepha.platformio\penv\lib\site-packages\platformio\commands\device\filters\hexlify.py", line 24, in init
super(Hexlify, self).init(*args, **kwargs)
File "c:\users\kepha.platformio\penv\lib\site-packages\platformio\commands\device\filters\base.py", line 23, in init
super(DeviceMonitorFilter, self).init()
TypeError: super(type, obj): obj must be an instance or subtype of type

============================================================

============================================================

The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.


When i compiled and load there where no issues:

Executing task in folder test: C:\Users\kepha.platformio\penv\Scripts\platformio.exe run --target upload <

Processing esp32dev (platform: espressif32; board: esp32dev; framework: arduino)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 1.11.2 > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:

  • framework-arduinoespressif32 3.10004.200129 (1.0.4)
  • tool-esptoolpy 1.20600.0 (2.6.0)
  • tool-mkspiffs 2.230.0 (2.30)
  • toolchain-xtensa32 2.50200.80 (5.2.0)
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 26 compatible libraries
    Scanning dependencies...
    No dependencies
    Building in release mode
    Retrieving maximum program size .pio\build\esp32dev\firmware.elf
    Checking size .pio\build\esp32dev\firmware.elf
    Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
    RAM: [ ] 4.7% (used 15436 bytes from 327680 bytes)
    Flash: [== ] 16.5% (used 216661 bytes from 1310720 bytes)
    Configuring upload protocol...
    AVAILABLE: esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
    CURRENT: upload_protocol = esptool
    Looking for upload port...
    Auto-detected: COM3
    Uploading .pio\build\esp32dev\firmware.bin
    esptool.py v2.6
    Serial port COM3
    Connecting....
    Chip is ESP32D0WDQ6 (revision 0)
    Features: WiFi, BT, Dual Core, Coding Scheme None
    MAC: 30:ae:a4:04:86:10
    Uploading stub...
    Running stub...
    Stub running...
    Changing baud rate to 460800
    Changed.
    Configuring flash size...
    Auto-detected Flash size: 4MB
    Compressed 15872 bytes to 10319...
    Wrote 15872 bytes (10319 compressed) at 0x00001000 in 0.3 seconds (effective 488.4 kbit/s)...
    Hash of data verified.
    Compressed 3072 bytes to 128...
    Wrote 3072 bytes (128 compressed) at 0x00008000 in 0.0 seconds (effective 2234.2 kbit/s)...
    Hash of data verified.
    Compressed 8192 bytes to 47...
    Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 9362.3 kbit/s)...
    Hash of data verified.
    Compressed 216784 bytes to 109919...
    Wrote 216784 bytes (109919 compressed) at 0x00010000 in 2.8 seconds (effective 628.6 kbit/s)...
    Hash of data verified.

Leaving...
Hard resetting via RTS pin...
===================================================================================== [SUCCESS] Took 7.09 seconds =====================================================================================

Terminal will be reused by tasks, press any key to close it.

The code is
#include <Arduino.h>

void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("start");
pinMode(27, OUTPUT);
}

void loop() {
Serial.println("Hei");
// put your main code here, to run repeatedly:
digitalWrite(27, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(27, LOW); // turn the LED off by making the voltage LOW
delay(1000);
}

@ivankravets
Copy link
Member

Duplicate of platformio/platformio-core#3431

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

2 participants