Questions tagged [platform.io]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 views

Simulate pin behaviour based on PulseView recording

I have a bunch of PulseView recordings from an existing device. Currently to verify if my Arduino handles the input properly I always use the real device. However it would be great if I could somehow ...
0 votes
1 answer
118 views

ESP32-C3 - undefined reference to `esp_ble_gap_start_advertising'

I have a Bluetooth project for an ESP32 devkit and want to compile it for an ESP32-C3. I use the newest ESP32 Arduino core as a component with esp-idf and the following configuration for PlatformIO: [...
  • 103
1 vote
0 answers
136 views

PlatformIO - Creating a library including a 3rd party library

I'm using PlatformIO, and I'm trying to create a library who uses another library in it. (1) For that I created an empty library called ABCD.h stored in a newrep github repository. (2) 3rd party ...
  • 870
0 votes
2 answers
2k views

esp32, platformio A fatal error occurred: Packet content transfer stopped (received 8 bytes) *** [upload] Error 2

When i try to upload code to the esp32 the following error shows up in the command line: A fatal error occurred: Packet content transfer stopped (received 8 bytes). I use platformio in VScode the ...
  • 11
0 votes
1 answer
72 views

Create a library when using PlatformIO

(1) I'm trying to work with libraries in PlatformIO format", for , of a library, located in Arduino's libraries, where code is llocated under \src directry. (2) Any other library, not it "...
  • 870
2 votes
0 answers
116 views

Same code working on Arduino IDE but not in PlatformIO IDE

I'm running into this weird problem. My code is working just fine when I upload it to an ESP32 from Arduino IDE. That same code is not working when I upload it using PlatformIO IDE. The same libraries ...
2 votes
0 answers
41 views

How would I link inline debugger with esp32 on Mac?

I am trying to connect JTAG debugger to my esp32 according to the following steps https://www.instructables.com/How-to-Use-a-Debugger-on-an-ESP32/ but still I am facing issue in debugging. I am ...
-1 votes
1 answer
25 views

Cubecell AB01 with nRF24L01

I have been trying to connect a nRF24L01 to a Cubecell AB01 without much luck. Most of the time, the radio.available() function always returns true resulting in a bunch of garbage. I have figured out ...
-1 votes
1 answer
182 views

How to use ESP32 ESP32 config flag in platformio?

I build my ESP32 project from platformio and I'd like to change CONFIG_MBEDTLS_DYNAMIC_FREE_PEER_CERT in order to reduce the RAM footprint. I don't get how to do that: should I modify my platformio....
1 vote
1 answer
403 views

Add library to CLion project

I have a new project created with PlatformIO in CLion. I've copied the Servo-1.1.8 library into the include directory. #include <Arduino.h> #include "Servo-1.1.8/src/Servo.h" Servo ...
  • 111
1 vote
1 answer
480 views

Unable to find headers from installed platformio library

I wrote a library that I intend to use in several project and I published it via platform.io's library management system. https://platformio.org/lib/show/12820/FastLED-SectionManager This is the first ...
1 vote
0 answers
122 views

platformio native unit test Arduino.h not found

I'm writing code for a microcontroller project using PlatformIO. I have a couple of classes that I want to write unit tests for. I've not unit tested with pio before so I'm starting with one of the ...
1 vote
0 answers
145 views

ESP32 Espressif ESP32_DevKitC_V4 in platformio: flash issues

I am using the Espressif ESP32_DevKitC_V4 with platformio, and i cannot flash the board. I read about the various "button dance" procedures, and the ES32-WROVER and the ESP32-WROVER-B seem ...
2 votes
0 answers
80 views

Arduino freezes if I do NOT do Serial.println() at least TWICE

Hii I have a big project, and found this when I tried to remove all the test code. To summarize: I have a variable that I use as a buffer for string operations called char internalbuffer[32] declared ...
  • 31
0 votes
1 answer
625 views

ESP32 partition table and writing location

In my ESP32 project I have the following platformio.io file: [env:esp32-poe] platform = espressif32 board = esp32-poe framework = arduino lib_deps = openslab-osu/SSLClient@^1.6.7 knolleary/...
  • 287
0 votes
1 answer
504 views

Splitting up code in multiple files causing `multiple definition` and `undefined reference` error

I have the following very basic program that reads MPU6050(accelerometer and gyroscope) sensor using the I2C library, and prints the sensor information. This program works as expected. #include <...
3 votes
1 answer
5k views

Help solving "collect2.exe: error: ld returned 1 exit status" error in code

I just got an Elegoo UNO starter kit the other day and have been working my way through the little tutorials on all the parts it came with. I am using VSCode with Platform.io plugin and (after getting ...