Closed sannoxdev closed 3 years ago
Chiming in to say I'm having the same problem on an ESP 01 with the ini & versions below.
[env:esp01]
platform = espressif8266
board = esp01
framework = arduino
lib_deps =
adafruit/Adafruit NeoPixel@^1.7.0
painlessmesh/painlessMesh@^1.4.5
yiannisbourkelis/Uptime Library@^1.0.0
monitor_port = COM4
monitor_speed = 115200
build_type = debug
monitor_filters = esp8266_exception_decoder
check_tool = cppcheck
About info:
Version: 1.51.1 (user setup)
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-10T23:34:32.027Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19041
Same problem. Wemos D1 mini PRO.
Platform.ini
[env:d1_mini_pro]
platform = espressif8266
board = d1_mini_pro
framework = arduino
upload_speed = 921600
build_type = debug
build_flags = -Wall -Wextra -Wlogical-op -Wempty-body -Werror
About:
Version: 1.52.1 (user setup)
Commit: ea3859d4ba2f3e577a159bc91e3074c5d85c0523
Date: 2020-12-16T16:34:46.910Z
Electron: 9.3.5
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19042
Ivan, can I assist in troubleshooting the problem? Happy to assist if I can.
Inspect memory works, inspect code fails with “Bad JSON”. Certain board types work ok e.g. Arduino Uno (memory and code), while others fail the Code analysis e.g. Adafruit Feather M0 or SeeedStudios Wio Terminal. The problem can be reproduced with the simple blink example used on the platformio website and the following platformio.ini:
[env:uno] platform = atmelavr board = uno framework = arduino
[env:zero] platform = atmelsam board = zero framework = arduino
[env:seeed_wio_terminal] platform = atmelsam board = seeed_wio_terminal framework = arduino platform_packages = framework-arduino-samd-seeed@https://github.com/Seeed-Studio/ArduinoCore-samd.git
All boards will compile ok. Tested against VSCODE 1.51.1 / PIO 5.0.3 on Windows 10 20H2 and Ubuntu 20.04 with the same result.