Questions tagged [platformio]
Use this tag for questions about installing, configuring, or building software with PlatformIO Core or PlatformIO IDE.
359
questions
0
votes
0
answers
67
views
Create array of predefined arrays
With the help of PlatformIO and the U8G2 library, I want to write an application for an ESP8266 microcontroller. The U8G2 offers countless fonts, and I would like to display them on a graphical ...
0
votes
0
answers
21
views
Why is Lora Board env not working in VS Code but in Arduino IDE it does work?
USING PLATFORMIO IN VS CODE:
Board env details:
[env:ttgo-lora32-v1]
platform = espressif32
board = ttgo-lora32-v1
framework = arduino
Simple Code:
#include <Arduino.h>
void setup() {
Serial....
0
votes
1
answer
119
views
Which board to select for ESP32-S3-WROOM in PlatformIO?
I have an ESP32-S3-WROOM-1U and would like to use PlatformIO with vscode to program it, what board do I need to set in the platformio.ini file?
I've tried:
[env:esp32s3box]
platform = espressif32
...
0
votes
0
answers
20
views
Why is platformio bricking my QT-PY ESP32-S2 boards, and can I recover them?
I have bricked my Adafruit QT-PY ESP32-S2 and need help recovering it and programming it.
I'm running platformio on Ubuntu 22.04. When initially plugged in to USB, the QT-PY ESP32-S2 showed up as /dev/...
0
votes
0
answers
44
views
Espressif ESP32 throws an error after saving an array of strings in memory using the Preferences library
I am relatively new with C++ programming. I am creating a program to read sensor data and store the data in an array of strings but for some reason I am getting an error just after saving the data.
I ...
0
votes
1
answer
29
views
PlatformIO doesn't know the SoftwareSerial.h lib
I'm using the Adafruit_GPS.h lib, the problem ist that it doesn't know thee SoftwareSerial.h. but it's installed. The project is build on VSCode and PlaformIO. How can I fix that?
In file included ...
0
votes
1
answer
144
views
PlatformIO cannot find a working 3.6+ python interpreter to use with WSL
As the title states, I am currently trying to set up PlatformIO with WSL in Ubuntu. If I type:
which python3
I get the following:
/usr/bin/python3
however placing it as a full path for an executable ...
0
votes
0
answers
80
views
ESP32 won't connect to wifi
I am working on a project in VS with Platformio and C++ which involves connecting an ESP32 to wifi. Suddenly my program stopped connecting to my Wifi. Nothing relevant was altered but suddenly ...
0
votes
1
answer
57
views
STM32 LwIP Ethernet Only Works in Debug Mode
Okay so basically I noticed that whenever I flased my MCU it would stop running after 1-2 seconds but whenever I debugged it then it would work.
Context:
Using NUCLEO-F746ZG Board
Running LwIP using ...
1
vote
0
answers
124
views
*** [upload] Error 1 Issue on PlatformIO w/ Raspberry Pi Pico
I am using PlatformIO in VSCode working on a school project. I am trying to upload the code from my desktop to my Raspberry Pi Pico via USB. The code has uploaded many times before, but now it will ...
1
vote
1
answer
54
views
Code works on Arduino IDE but not PlatformIO
For my school assignment, code was provided for the TTGO LoRa32 SX1276 OLED board. When I install the necessary libraries and board on platformIO, and I run the code, the screen on the board stays ...
0
votes
0
answers
26
views
Toolchain-gccarmnoneeabi-teensy error. Platformio project for teensy 4.1
I have a project where I want to use a teensy 4.1. I'm programming through platformio and am running into a major issue right now.
My first task is to read a text file and append each column to a ...
0
votes
0
answers
43
views
avrdude OS error: cannot set attributes for port /dev/ttyS0: Inappropriate ioctl for device
I am new platformio and getting acquainted with arduino. I am trying to burn bootloader from platformio but not able to succeed. I am getting error :
avrdude OS error: cannot set attributes for port /...
1
vote
1
answer
236
views
ESP-IDF platformio build: Contents of segment at SHA256 digest offset 0xb0 are not all zero
I am trying to run the led-blink example from ESP-IDF with platformio. My target board is esp32-c6-devkitc-1.
Following the platformio doc I added the led_strip component by downloading and copying ...
0
votes
1
answer
156
views
PN532 RFID with ESP32 (ESP-IDF) Passing uint8_t UID to a string
I am trying to write a fairly basic program in platformio using the esp-idf framework for an esp32. I have the main bits working, but i'm struggling with something that I thought would be very basic!
...
0
votes
0
answers
27
views
Platformio No such file or directory when using library form registry
I have problems using libraries in platformio from its registry fmt
My platformio.ini file looks like this:
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = espidf
monitor_speed = ...
0
votes
1
answer
50
views
PN532 NFC module works on Arduino, but doesn't on VSCode with PlatformIO
I have a strange problem working with VSCode and PlatformIO.
I'm using NFC module PN532 with Atmega328P. I program the Atmega by the USB-UART converter.
I'm using this library with software serial ...
0
votes
1
answer
96
views
How do I change the path where Platformio is looking for the platformio.exe file?
I am getting this error while trying to build in platformio. The terminal process failed to launch: Path to shell executable "c:\Users\aditi.DESKTOP-49PGKM5\Documents\Test1\platformio.exe" ...
0
votes
1
answer
109
views
esp32-cam mjpeg video https error "431 (Request Header Fields Too Large)" only on Chrome and Edge not Firefox
I have an esp32-cam video stream which pushes to a local IP address
From the tech docs this format is mjpeg.
The camera code is generated by platformio in vs code using espidf
I can view this video on ...
0
votes
0
answers
151
views
Marlin 2.1.x Cannot build code using Platformio in VScode
I have been at a total loss at to why this Marlin 2.1.x for Tronxy x5SA pro will not build. I have discovered that by the looks of things I am not the only individual suffering this problem. I have ...
1
vote
1
answer
71
views
Any ideas why initializing a `WebPAnimDecoderNew` would cause a PlatformIO upload failure?
Some Context
I am trying to use libwebp to decode animated images and display them on an RGB LED Matrix driven by an Adafruit MatrixPortal. My development environment is as follows:
Mac M2 running ...
0
votes
2
answers
254
views
PlatformIO compiling error: Not finding map file (STM32)
I want to flash an old STM32 F103CB based flight controller with a simple led blinking program, But I can't get it to work. I get this error:
c:/.platformio/packages/toolchain-gccarmnoneeabi/bin/../...
0
votes
0
answers
60
views
PlatformIO Project Build Error Due to Architecture Mismatch on macOS (arm64 vs x86_64)
I am trying to build a PlatformIO project for the for my esp32-s3 board on my Macbook M1 (ARM). During the build process, I encountered an error related to an architecture mismatch.
The error message ...
0
votes
1
answer
36
views
Clion+PlatformIO arduino avr-gcc unrecognized command line option
Clean installed Clion 2020.1 + Platformio 6.1.9 (using py script from official page) + Platformio clion plugin.
Tried to set multiple versions of MinGW toolchains but none is working, after "Re ...
1
vote
0
answers
41
views
C/C++ PlatformIO RPi Pico: Code fails only when second core is activated
I'm running into an issue with the Pico W device where it hangs when using the second core. I am trying to parse through a config file using Regex and the code halts at the following:
smatch match;
...
0
votes
0
answers
490
views
Marlin firmware - integrating touchscreen on ender 3
I am struggling to integrate the touchscreen in custom edited marlin firmware
The display is already flashed with DWIN and I've got this far:
built the bin file and flashed it on the printer board (4....
0
votes
1
answer
220
views
Trying to encrypt communication with ESP32 (PlatformIO). esp_aes_crypt_ecb fails on the last block
I am trying to encrypt data from ESP32 to an Internet webpage.
The plain text is 31 characters long and will need 3 blocks of 16 characters.
The 2 first blocks encrypts fine, but the last one fails.
...
-3
votes
1
answer
431
views
How do you use <string> and <iostream> with PlatformIO in VSCode: [closed]
i've been trying to use and with PlatformIO for my "simple oled GUI". And i'm running into trouble including those libraries without any errors. Note that im a beginner in VScode and ...
0
votes
1
answer
266
views
How do I get PlatformIO to see Python3 on Linux Mint?
I'm trying to install an extension called PlatformIO in VSCode. When I'm installing it, it says it can't find a working version of Python3.6+ Interpreter.
I have Python properly installed on my ...
0
votes
0
answers
52
views
Is there a way to make Pubsubclient libary compatible with PlatformIO?
For a project where I need to unit test my code with which I receive data from a mqtt server with the Pubsubclient library via an ESP32. I want to use platformio which uses the Unity testing framework....
0
votes
1
answer
46
views
Error using a RaspberryPi with PlatformIO and Wasm3
I get this Error, while trying to run C and wasm code (using wasm3) on an raspberrypi using platformio:
I am using a RaspberryPi 3 Model B with Raspian
I program in Visual Studio Code on the Raspberry
...
0
votes
0
answers
146
views
PlatformIO secure websocket client
I want to establish a connection from my ESP32 to a secure websocket server by using ArduiniWebsockets.h. However, I receive the following error:
[ 59943][E][WiFiClientSecure.cpp:144] connect(): ...
1
vote
1
answer
422
views
How can I get the serial monitor in vs code to automatically connect and disconnect when uploading to my arduino?
I am using an Arudino Nano with VS Code and PlatformIO.
When developing. I want to streamline the process so that when I press 1 hotkey.
It will automatically disconnect the Serial Monitor. Build. ...
0
votes
1
answer
81
views
When developing a library for PlatformIO and ESP32, what ifdef macro name can determine if compiling using PlatformIO?
When developing a library for PlatformIO and ESP32 (but also other platforms/environments), what ifdef macro name can be used to determine if the code is being compiled using PlatformIO?
For example, #...
0
votes
0
answers
93
views
IoT project -- platform io - framework error
Hi everyone i need help for solving my issue in the platform io when i create new projcet using Platformio framework (espidf)it is still giving me this error and i don't now i can solve this error
...
0
votes
1
answer
377
views
wifi config for esp32 in espidf framework of platformio
I have already set up the Wi-Fi part of the ESP32 using Espressif-IDE software and assigned it a specific SSID and password. I configured the SSID and password using Kconfig.projbuild.
Now, I am using ...
0
votes
0
answers
61
views
Linux Visual Code 'no space left on device'
I am running Linux Mint 21.1, and I am running VSCode with PlatformIO extension. My project folder is located on my server which I access with Samba. This setup works fine on Windows, with one ...
0
votes
1
answer
181
views
After installing platformio from the official guide on Clion, I have a problem with No module named 'platformio'
After installing platformio from the official guide on Clion, I have the following problem:
File "/opt/platformio/penv/bin/pio", line 5, in <module>
from platformio.__main__ ...
0
votes
0
answers
208
views
C++ include path issue in PlatformIO workspace
I'm encountering a persistent issue with the include path configuration in my PlatformIO workspace, and I'm seeking assistance in troubleshooting the problem.
Here are the details of my setup and the ...
0
votes
0
answers
114
views
Why can't I use general registers in RISC-V?
I'm trying to build my project, but there is a problem.
I used PlatformIO IDE, and Freedom E SDK platform.
Here is my code snippet.
.global gstest1
.type gstest1, @function
gstest1:
lw a2, 4(...
0
votes
1
answer
1k
views
Error compiling Marlin with VSCode and PlatformIO
I have the following error coming from VScode and I do not know what to do with it.
Building in release mode
RuntimeError: deque mutated during iteration:
File "C:\Users\dobrevi\.platformio\...
0
votes
0
answers
7
views
tool platform io Lost, want to know how to open it up
enter image description here
tool platform io Lost, want to know how to open it up
0
votes
1
answer
45
views
Class extension not working - VSCode + PlatformIO + Arduino
I've bumped into an issue, which is pretty weird to me, since it should work. I'm porting an esp8266 firmware to esp32, working with platformio in vscode.
The error I get
OpenSprinkler.cpp: In static ...
1
vote
0
answers
77
views
Cannot print array using PlatformIO with RISC-V Rev B
I'm trying to print arrays with 256 integers.
I used PlatformIO IDE(VSCode extension), and TeraTerm to print.
Selected Board is HiFive1 Rev B(SiFive), and used Freedom E SDK framework.(Of course, I've ...
0
votes
0
answers
89
views
Error when executing build: platformio + vscode + windows 7
I have installed platformio v3.1.1 in vscode editor. I am using windows 7.
When I create an empty project and try to "build" I get an error.
Please tell me how to fix this error and build.
...
1
vote
1
answer
116
views
Can only encrypt input up until 21 bytes at a time
I am trying to do some RSA encryption using the mbedtls library on specifically the PK API on an esp32 using the Arduino framework and PlatformIO. I can succesfully encrypt 20 bytes at a time (that is ...
0
votes
0
answers
811
views
ESP-IDF 5 self made Component cannot find driver/gpio.h
I created a new project from scratch with PlatformIO in VSCode using the ESP-IDF framework.
i have this structure
/
|-components
| |-include
| |-src
|
|-include
|
|-lib
|
|-src
|
|-test
in the src ...
0
votes
0
answers
20
views
HTTPWebServer PIO Naive
I would like to be able to run the program I have from ESP32 natively on the platform, but I can't find libs that do the same thing or similar in native mode, I use Littlefs and HTTPWebServer, not ...
0
votes
1
answer
244
views
How to build a single CPP file for test?
I want to create a test for a .cpp file in my Arduino project using PlatformIO. This is my platformio.ini:
[env:mkrwifi1010]
platform = atmelsam
board = mkrwifi1010
framework = arduino
lib_deps =
...
1
vote
1
answer
117
views
How converting a char on a esp32 can crash it?
i'm running into a problem understanding why my program is crashing while running on an esp32 processor and is causing it to repeatedly reset. I am working on a NODEMCU devkit version of the esp32. I ...