Search found 7 matches

by chris.f.rice
Mon Feb 19, 2024 12:17 am
Forum: ESP-IDF
Topic: Do we need bad block management, and if so is there something in the API for it?
Replies: 3
Views: 747

Re: Do we need bad block management, and if so is there something in the API for it?

Oh, great... no we are implementing a circular log over a span of blocks using the Partitions API, which will be sort of naturally wear-leveled. So I'm glad to hear that that eliminates the need for bad block management. I thought I remembered that the bad blocks could appear over time, and was a di...
by chris.f.rice
Sun Feb 18, 2024 3:17 pm
Forum: ESP-IDF
Topic: Do we need bad block management, and if so is there something in the API for it?
Replies: 3
Views: 747

Do we need bad block management, and if so is there something in the API for it?

We are using a ESP-32 dev kit (ESP32-C6-DevKitC-1), and using the partitions API to read and write to FLASH, and it works well. It's been a while since I've written code for nonvolatile FLASH... I seem to recall the need for a mechanism called bad block management, in which you scan for blocks that ...
by chris.f.rice
Sun Feb 18, 2024 3:11 pm
Forum: ESP-IDF
Topic: Can receive characters via UART1, but not UART0
Replies: 3
Views: 795

Re: Can receive characters via UART1, but not UART0

Thank you ok-home, you are right that was the problem. Not sure why the dev kit would come shipped with this problem...
by chris.f.rice
Wed Feb 07, 2024 2:20 pm
Forum: ESP-IDF
Topic: Can receive characters via UART1, but not UART0
Replies: 3
Views: 795

Can receive characters via UART1, but not UART0

UPDATE: this is happening on two different boards, and I don't seem to be able to find ANY example code that sets up UART0 for receiving. This is getting absurd, the most basic function on a controller and I can't get it to work. Does anyone have any theories, or a pointer to some code that should r...
by chris.f.rice
Thu Feb 01, 2024 8:24 pm
Forum: ESP-IDF
Topic: Do I need to do something special to talk to dev kit UART0?
Replies: 0
Views: 528

Do I need to do something special to talk to dev kit UART0?

Hello, I'm trying to write some UART code to talk to my ESP32c6-DEVKITC1. I am able to read and write through UART1 through pins 10 and 11, with the first code snippet below. But I am not able to talk through UART0 through pins U0TXD/GPIO16, U0RXD/GPIO17, using the second code snippet below. Is ther...
by chris.f.rice
Wed Jan 24, 2024 1:50 am
Forum: ESP-IDF
Topic: Best library/API to use for custom nonvolatile database
Replies: 4
Views: 1374

Re: Best library/API to use for custom nonvolatile database

Thank you MicroController. I do get that, that FLASH memory generally requires erasing a page at a time, and we have some reusable roll-your-own code that manages that (copies page out, edits, erases original page, writes modified page). I will definitely look into the libraries you mention (SPIFFS,...
by chris.f.rice
Tue Jan 23, 2024 4:57 pm
Forum: ESP-IDF
Topic: Best library/API to use for custom nonvolatile database
Replies: 4
Views: 1374

Best library/API to use for custom nonvolatile database

Hello, we are getting started using an ESP32c6, and we would like to implement some light custom database functionality, using nonvolatile storage. I see that the NVS library is available, but that it's "designed to store key-value pairs in flash." I think that's (key value pairs) not exactly the mo...