Search found 10 matches
- Sat Oct 19, 2024 8:28 pm
- Forum: ESP-IDF
- Topic: How to update a value in a partition?
- Replies: 10
- Views: 1110
Re: How to update a value in a partition?
Ok thanks, I have the numbers now so I will choose the proper option according to final requirements.
- Sat Oct 19, 2024 3:50 pm
- Forum: ESP-IDF
- Topic: How to update a value in a partition?
- Replies: 10
- Views: 1110
Re: How to update a value in a partition?
I got confused there, of course it’s 1024 variables, thanks. How often do I need to update the variables? Well, as long as I could be able to store them in flash if electricity goes off, I could handle them in RAM, but none of them shold be lost, they are indeed important statistical data the user n...
- Sat Oct 19, 2024 11:17 am
- Forum: ESP-IDF
- Topic: How to update a value in a partition?
- Replies: 10
- Views: 1110
Re: How to update a value in a partition?
@nopnop2002, I could do what you suggest with W25 chips but in the ESP32 too, right? I mean they seem to have similar write/erase cycle limits. @ESP_Sprite, this is very clever indeed and very useful for this simple case where there are only 366 values but this sacrifices huge amount of memory space...
- Sat Oct 19, 2024 10:18 am
- Forum: ESP-IDF
- Topic: How to check if partition has already been erased?
- Replies: 4
- Views: 509
Re: How to check if partition has already been erased?
It's clear now, I was thinking about that magic value too as an alternative.
Thank you for the help.
Thank you for the help.
- Fri Oct 18, 2024 5:12 pm
- Forum: ESP-IDF
- Topic: How to update a value in a partition?
- Replies: 10
- Views: 1110
How to update a value in a partition?
Hello, I am migrating one project from PIC to ESP32 and I have the following question regarding data storage. At the moment I use an external memory in the PIC to store some statistical data. The memory is divided in 366 chunks, one per day of the year, where I save what the equipment consumes every...
- Fri Oct 18, 2024 10:50 am
- Forum: ESP-IDF
- Topic: How to check if partition has already been erased?
- Replies: 4
- Views: 509
Re: How to check if partition has already been erased?
Ok so let's say I reserve the first 4 bytes of the partition just to check whether it's erased or not. If I understand you correctly, can I assume that if I read those 4 bytes and they're not all 1, then the partition is not erased? Would it be correct something like this? Can I guarantee that if ch...
- Fri Oct 18, 2024 7:05 am
- Forum: ESP-IDF
- Topic: How to check if partition has already been erased?
- Replies: 4
- Views: 509
How to check if partition has already been erased?
Hello, I am following this example to implement my own partition and store some statistical data in my project: https://github.com/espressif/esp-idf/blob/a97a7b0962da148669bb333ff1f30bf272946ade/examples/storage/partition_api/partition_ops/main/main.c It's simple enough and it works just fine but I ...
- Mon Oct 14, 2024 2:03 pm
- Forum: Hardware
- Topic: [SOLVED] rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT) flash read err, 1000
- Replies: 14
- Views: 91403
Re: [SOLVED] rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT) flash read err, 1000
I had this problem but it was just a corrupt state after a bad flashing process. I reflashed and it was fixed.
- Fri May 24, 2024 8:38 am
- Forum: ESP-IDF
- Topic: esp_timer_is_active() status after deleting a timer
- Replies: 2
- Views: 543
Re: esp_timer_is_active() status after deleting a timer
Ok thanks, understood.
- Thu May 23, 2024 7:43 am
- Forum: ESP-IDF
- Topic: esp_timer_is_active() status after deleting a timer
- Replies: 2
- Views: 543
esp_timer_is_active() status after deleting a timer
Hello, I am using the function esp_timer_is_active() to detect whether a particular timer is active or not but the behaviour is misleading according to the documentation. Everything works as expected except this function returns TRUE (active) after the timer has been deleted. Is this the expected be...