Search found 2 matches

by nilyash81
Fri Sep 01, 2023 2:11 pm
Forum: ESP32 Arduino
Topic: Problem in SD card data logging in Tasks
Replies: 2
Views: 1986

Re: Problem in SD card data logging in Tasks

Thanks ESP Sprite,

Problem solved after increasing stack size. Code is working and I am able to log data now. This will help me in logging IMU data of my drone project in SD card. I am planning to log commanded and achieved roll and pitch angle.

Thanks for help bro!!!
by nilyash81
Wed Aug 30, 2023 4:30 am
Forum: ESP32 Arduino
Topic: Problem in SD card data logging in Tasks
Replies: 2
Views: 1986

Problem in SD card data logging in Tasks

[/code] #include "Arduino.h" #include "FS.h" #include <SD.h> #include <SPI.h> #include "esp_system.h" // Define CS pin for the SD card module #define SD_MISO 39 #define SD_MOSI 15 #define SD_SCLK 17 #define SD_CS 5 SPIClass sdSPI(VSPI); File file; TaskHandle_t Task0; TaskHandle_t Task1; SemaphoreHan...