Search found 25 matches

by frankcohen
Mon Sep 11, 2023 5:48 pm
Forum: ESP32 Arduino
Topic: Bug SD size() returns random value until file has non-zero bytes of content
Replies: 2
Views: 1549

Bug SD size() returns random value until file has non-zero bytes of content

I'm using an external SD/NAND with an ESP32-S3 to create and save log values to a file. NAND is a surface mount version of an SD card. I connect the NAND over SPI using pin 15 for the CS. This is part of my Reflections open-source project https://github.com/frankcohen/ReflectionsOS. File mylog = SD....
by frankcohen
Sun Sep 10, 2023 5:23 pm
Forum: ESP32 Arduino
Topic: ESP32+SD/NAND fails on reuse of File object to secondary file
Replies: 1
Views: 1944

ESP32+SD/NAND fails on reuse of File object to secondary file

The ESP32 SD library stops writing to a file when I re-use a File object. I wrote a logger. It runs on an ESP32-S3, stores the log values on local storage temporarily, and sends the log values over Wifi to a service for storage. My goal is to have an unlimited number of log entries. And not bog-down...
by frankcohen
Mon Aug 21, 2023 12:15 pm
Forum: General Discussion
Topic: ESP32-S3 + NAND + SD, or SDFAT, or LittleFS?
Replies: 4
Views: 1813

Re: ESP32-S3 + NAND + SD, or SDFAT, or LittleFS?

Thanks. Yes, the NAND gives a 1 pin SD interface over SPI. Espressif's SD works with it. However, I am seeing flakiness in the SD library. I will make a bunch of READS to an open file, and see the ESP32-S3 reboot. For my project I am using Arduino IDE 2.1 nightly build. ESP32-S3 crashes and reboots....
by frankcohen
Mon Aug 21, 2023 7:47 am
Forum: General Discussion
Topic: ESP32-S3 + NAND + SD, or SDFAT, or LittleFS?
Replies: 4
Views: 1813

ESP32-S3 + NAND + SD, or SDFAT, or LittleFS?

I'm building a media player with ESP32-S3. I store the mjpeg files on an SPI attached NAND (it's a surface mount version of an SD card, using 1 bit SPI transfer). I'm getting core resets occasionally. The files are typically 1 to 5 mbytes. 95% of the operations are READ, very few writes. Which libra...
by frankcohen
Sun Aug 06, 2023 8:51 pm
Forum: ESP-IDF
Topic: ESP32-S3 OTA Update from USB PenDrive resets during esp_ota_end()
Replies: 7
Views: 2739

Re: ESP32-S3 OTA Update from USB PenDrive resets during esp_ota_end()

Hi lipun12ka4, thank you for posting your code, logs, and the solution. I am building a mobile entertainment experience called Reflections. I did not want to use the Wifi OTA solutions because they assume we all have SSL certificate management solutions. For example, what happens to your OTA solutio...
by frankcohen
Fri Aug 04, 2023 6:36 pm
Forum: General Discussion
Topic: Arduino IDE 2.1 + ESP32 + Exception Decoder now available from dankeboy36
Replies: 0
Views: 1808

Arduino IDE 2.1 + ESP32 + Exception Decoder now available from dankeboy36

@dankeboy36 (on Github) published an Arduino stack trace decoding utility for Arduino IDE 2.1. When your sketch crashes a stack trace leading to the crash often appears in the Serial Monitor. Arduino IDE 2.1 does not yet support plug-ins and a decoder utility (available in Arduino IDE 1.8) is needed...
by frankcohen
Mon Jul 24, 2023 2:11 pm
Forum: ESP32 Arduino
Topic: Arduino and BLE on ESP32 as server and client combined, using NimBLE
Replies: 0
Views: 2508

Arduino and BLE on ESP32 as server and client combined, using NimBLE

# Arduino and BLE on ESP32 as server and client combined, using NimBLE Frank Cohen, [https://github.com/frankcohen/ReflectionsOS](https://github.com/frankcohen/ReflectionsOS), July 21, 2023 [NimBLE](https://mynewt.apache.org/latest/network/) is an open source Bluetooth Low Energy (BLE) stack for mic...
by frankcohen
Sun Jan 15, 2023 6:26 pm
Forum: General Discussion
Topic: JTAG debugger for MicroPython on ESP32
Replies: 0
Views: 932

JTAG debugger for MicroPython on ESP32

I am the principal maintainer for the Reflections project. It is an ESP32-S3 based wrist watch (details at https://github.com/frankcohen/ReflectionsOS). I am considering writing the watch OS in MicroPython to make it easier to write, maintain, and teach. MicroPython runs great on the ESP32-S3. Is th...
by frankcohen
Wed Aug 10, 2022 2:02 pm
Forum: ESP32 Arduino
Topic: USBMSC writing 1st sector data to SD, then writing zeros
Replies: 1
Views: 1636

Re: USBMSC writing 1st sector data to SD, then writing zeros

Appears to be a bug between the USBMSC and SD code. For this to work with Espressif's ESP32 code I changed line 694 esp32/hardware/eps32/2.0.3/libraries/SD/src/sd_diskio.cpp: return ff_sd_read(pdrv, buffer, sector, 1) == ESP_OK; Change '1' to '8' and line 699 change '1 to '8' return ff_sd_write(pdrv...
by frankcohen
Wed Aug 10, 2022 12:32 am
Forum: ESP32 Arduino
Topic: USBMSC writing 1st sector data to SD, then writing zeros
Replies: 1
Views: 1636

USBMSC writing 1st sector data to SD, then writing zeros

Hi ESP32-istas, I wrote an Adruino sketch to mount a SD card connected to an ESP32-S3 over SPI as a USB MSC volume. I plug the ESP32-S3 USB into my Mac laptop (MacOS Monterey 12.5) and the volume appears mounted correctly. I copy a text file to the volume, the original file is 2,526 bytes. The file ...