Skip to main content

Questions tagged [platformio]

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

Can't upload in Platformio and board is suddenly not detected in STM32CubeProgrammer

I'm using a Nucleo-H755ZI-Q. I used it together with Platformio and Arduino framework. In order to get Arduino to work I'm using this setup: [env:nucleo_h743zi] platform = ststm32 board = ...
acroscene's user avatar
0 votes
1 answer
209 views

String or unsigned char to uint8_t

I'm attempting to save a string to EEPROM of an ESP8266 radio and then read it back before I encrypt the data (evenutally I would like to save the encrypted data but I'm simplifing things at the ...
PhippsTech's user avatar
1 vote
1 answer
173 views

ATTiny85 pin definitions

I have been tearing my hair out on and off for two weeks trying to figure out pin definitions for the ATTiny85 in PlatformIO. My wiring is basically this: My sketch: #include <Arduino.h> #...
tmountjr's user avatar
  • 113
0 votes
1 answer
173 views

Adding a custom platform to PlatformIO

How can I add the STM32duino core as a custom platform to PlatformIO?
Ali.kavari76's user avatar
0 votes
1 answer
234 views

ESPAsyncDNSServer cannot find AsyncUDP anymore

I'm using this ESP32AsyncDNSServer library on my ESP32 application. Suddenly (I'm not sure what I did) it does not compile anymore: .pio/libdeps/Aphrodite/ESPAsyncDNSServer/src/ESPAsyncDNSServer.h:8:...
Mark's user avatar
  • 393
1 vote
0 answers
33 views

Sketch does not run right when uploaded via Arduino IDE vs PlatfomIO

I try to upload Adafruit's example sketch (Wemos mini 8266 + Lolin TFT-2.4" touch screen). When complied and uploaded via Arduino IDE v1.8.19, sketch runs OK (including TFT), but when uploading ...
guyd's user avatar
  • 1,049
2 votes
2 answers
325 views

PlatformIO and const PROGMEM

I'm using the DuinoWitchery LCD library (https://github.com/duinoWitchery/hd44780) in a PlatformIO Arduino project with CLion. The following code works if I stick it in main.cpp: // near top of class.....
Bitbang3r's user avatar
  • 551
1 vote
1 answer
221 views

How to optimize checking for specific string in a UART stream

I want to check for specific string (like "RecordStart") in a UART stream (115 200 baud 8N1) from a camera, to know when it is recording or not/if there is an SD. I am using an ESP32-WROOM-...
AyubowanPro's user avatar
2 votes
2 answers
446 views

Arduino OTA - difference between Arduino IDE and PlatformIO

I used to OTA sketches and data files using the ArduinoOTA and ESP32 sketch data Upload tools and the ESP32 devkit, for example when using the Arduino IDE. Versions: Arduino IDE- 1.8.19 ESP32 on ...
guyd's user avatar
  • 1,049
1 vote
0 answers
292 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. ...
John's user avatar
  • 123
3 votes
1 answer
524 views

Arduino Uno R3 assembly code to push a button and turn on a LED

I've been trying this for days without success... I need to turn on a LED on portb when a button in portd is pushed. Cabling works, I've tested it with Arduino IDE and it works like a charm. This is ...
mcflurry's user avatar
1 vote
0 answers
53 views

Problem when running Servo library with thread (Protothreads)

When running two threads, one for blinking led once every second, one for sweeping the servo 180 degrees. The servo just vibrates. When I tested adding a serial printout in the run servo for loops for ...
jst_swe's user avatar
  • 11
1 vote
0 answers
104 views

Debug Macro Not working

I wrote simple program to test debug macros, but it gives me compilation error Program: #include <Arduino.h> #define DEBUG #ifdef DEBUG #define DPRINT(...) Serial.print(__VA_ARGS__) #...
MrNams's user avatar
  • 129
1 vote
0 answers
136 views

Code works in Arduino Web editor but not in PlatformIO IDE or Arduino IDE with board Nicla Sense ME

Here is the verbose for the Arduino IDE: Flashing with command:/Users/hakan/.arduino-create/arduino/openocd/0.11.0-arduino2/bin/openocd -d2 -s /Users/hakan/.arduino-create/arduino/openocd/0.11.0-...
Mr. Panda's user avatar
  • 151
2 votes
1 answer
112 views

Why is sensitivity (threshold) parameter ignored

Analog pontentiometer connected to an Arduino. simplest possible setup. The goal is to send a message over Serial whenever the value changes. I do not want to spam the Serial connection to much, so ...
David's user avatar
  • 125
2 votes
1 answer
381 views

Arduino code working via IDE, not via PlatformIO Arduino code [closed]

I have a working Arduino code. The code works as intended when I upload it to an Arduino Nano using the old bootloader via the Arduino IDE. However, when I upload the same code via PlatformIO, the ...
DeXter's user avatar
  • 21
1 vote
0 answers
510 views

object of "ESPAsyncWebServer" causing conflict

I have been trying to develop multi cpp project in platformio and whenever I define ESPAsyncWebServer class object with the extern in defines.h and declare it in main.cpp I am getting scarry looking ...
Shubham's user avatar
  • 11
1 vote
0 answers
184 views

Nucleo F446ZE VS Nucleo F446RE

I don't know if this is the right forum to ask this, but I can't find people that want to help, so let's try it here... First I had an F446RE, and program it in PlatformIO with an Arduino Framework... ...
Swets's user avatar
  • 11
0 votes
1 answer
204 views

Best way to "hack" a library without forking it

I'm using Visual Studio Code and PlatformIO. I added some libraries to my project using platformio.ini: lib_deps = olikraus/U8g2@^2.34.4 crankyoldgit/IRremoteESP8266@^2.8.4 plerup/...
Mark's user avatar
  • 393
0 votes
1 answer
24 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 ...
Cowboy_Patrick's user avatar
0 votes
1 answer
655 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: [...
Kampi's user avatar
  • 103
0 votes
2 answers
730 views

How to do 'for' loop over inline anonymous array

I have a bunch of pins given names in the header: #define DIP5 53 #define DIP4 52 #define DIP3 51 #define DIP2 50 #define DIP1 49 #define DIP0 48 If it's not obvious, I have a bunch of DIP switches ...
Bitbang3r's user avatar
  • 551
2 votes
1 answer
830 views

Enable full float-capable snprintf() library with PlatformIO

I want to use snprintf() to format floats to a string. I know the "normal" version of Arduino's avrlibc had all the float-formatting code removed to make it smaller. I also know that at some ...
Bitbang3r's user avatar
  • 551
1 vote
0 answers
1k 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 ...
guyd's user avatar
  • 1,049
2 votes
4 answers
30k 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 ...
exo's user avatar
  • 57
0 votes
1 answer
514 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 "...
guyd's user avatar
  • 1,049
2 votes
0 answers
396 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 ...
NicoRiff's user avatar
2 votes
0 answers
70 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 ...
Manisha Narayana Gowda's user avatar
-1 votes
1 answer
71 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 ...
Joris Gravesteijn's user avatar
-1 votes
1 answer
579 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....
Stéphane de Luca's user avatar
1 vote
1 answer
871 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 ...
BanksySan's user avatar
  • 119
1 vote
1 answer
1k 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 ...
Chris Schmitz's user avatar
1 vote
0 answers
299 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 ...
Chris Schmitz's user avatar
1 vote
0 answers
473 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 ...
OpenGears's user avatar
2 votes
0 answers
175 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 ...
Qubo's user avatar
  • 31
0 votes
1 answer
2k 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/...
Mark's user avatar
  • 393
0 votes
1 answer
1k 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 <...
Quazi Irfan's user avatar
3 votes
1 answer
11k 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 ...
wileyrivers's user avatar