Search found 83 matches
- Sun Jan 28, 2024 7:53 am
- Forum: ESP32 Arduino
- Topic: Is Rust supporting the ESP32 family?
- Replies: 2
- Views: 1199
Re: Is Rust supporting the ESP32 family?
Looks like I am already late to the game, thx!
- Sat Jan 27, 2024 1:50 pm
- Forum: ESP32 Arduino
- Topic: Is Rust supporting the ESP32 family?
- Replies: 2
- Views: 1199
Is Rust supporting the ESP32 family?
I am happily coding for the ESP32 using vscode with platformio and the '[framework = arduino]', i.e. using C and C++. Now I want to get my feet wet with Rust. I need to be able to read/set the pins, and use I2C; reading the ADC would be nice. Does Rust support those features on a ESP32? What and whe...
- Tue Sep 05, 2023 10:43 am
- Forum: ESP32 Arduino
- Topic: Are 'preferences' supposed to maintain values even over uploads of new code?
- Replies: 6
- Views: 5244
Re: Are 'preferences' supposed to maintain values even over uploads of new code?
Is it possible that partition "app0" MUST be placed at address 0x010000? Because I let the ESP-firmware decide where to put the partitions, and if I want nvs at size 0x3000, it always adds a gap of 0x2000 after nvs. So there is no point in "saving" nvs space!? Actually, for wear-leveling it might be...
- Tue Sep 05, 2023 10:00 am
- Forum: ESP32 Arduino
- Topic: Are 'preferences' supposed to maintain values even over uploads of new code?
- Replies: 6
- Views: 5244
Re: Are 'preferences' supposed to maintain values even over uploads of new code?
I ran some more tests: I can definitively rule out the need for a minimum 0x3000 size for a nvs partition! Both the default as well as a custom nvs do work with size 0x2000. Both do NOT work with a size of 0x1000! While I do not know what the default nvs is used for, my custom nvs gets only 3 keys w...
- Tue Sep 05, 2023 8:00 am
- Forum: ESP32 Arduino
- Topic: Are 'preferences' supposed to maintain values even over uploads of new code?
- Replies: 6
- Views: 5244
Re: Are 'preferences' supposed to maintain values even over uploads of new code?
@boarchuz: are you saying than each and every nvs partition requires a minimum of 0x3000, i.e. 3 sectors of 4096 bytes each? This is in stark contrast to what Ibernstone stated, https://esp32.com/viewtopic.php?f=19&t=35286&sid=1ec998b3d22391093749395ee377d118#p118909 namely that 1000 bytes can be en...
- Mon Sep 04, 2023 11:23 am
- Forum: ESP32 Arduino
- Topic: Are 'preferences' supposed to maintain values even over uploads of new code?
- Replies: 6
- Views: 5244
Re: Are 'preferences' supposed to maintain values even over uploads of new code?
I reported what I think is a severe bug in the preferences lib - or even in code behind it - and I am somewhat surprised that I do not get a response to this?
I'd like to know: is this a bug? If not, what did I do wrong, please help me!
I'd like to know: is this a bug? If not, what did I do wrong, please help me!
- Mon Aug 28, 2023 2:29 pm
- Forum: ESP32 Arduino
- Topic: Are 'preferences' supposed to maintain values even over uploads of new code?
- Replies: 6
- Views: 5244
Re: Are 'preferences' supposed to maintain values even over uploads of new code?
I have more details, and I think I got trapped by a bug in the preferences lib: When I use the default nvs to store my pref variables, all works fine - values are maintained over reboots as well as over uploads. But when I use a custom nvs as a 2nd nvs, my values are still maintained over reboots, b...
- Sat Aug 26, 2023 6:31 am
- Forum: ESP32 Arduino
- Topic: Are 'preferences' supposed to maintain values even over uploads of new code?
- Replies: 6
- Views: 5244
Are 'preferences' supposed to maintain values even over uploads of new code?
I am using preferences with 5 keys (Bytes, Strings, Short) and as expected the values are preserved over any reboot. However, when I upload fresh code - and do NOT touch the partitions - there is a mix of results. In some rare(!) occasions the values are preserved, but most of the time from 1 to all...
- Sat Aug 26, 2023 6:04 am
- Forum: ESP32 Arduino
- Topic: Can it be determined that a boot came as consequence of an upload?
- Replies: 2
- Views: 1789
Re: Can it be determined that a boot came as consequence of an upload?
Setting a flag is what I want, but I am not talking about OTA (which I use and it works). I have the ESP connected via USB cable. After modifying my code I compile, build and upload (all under platformio in vscode). Then the ESP automatically boots. It is this boot which I want to register, and not ...
- Fri Aug 25, 2023 3:02 pm
- Forum: ESP32 Arduino
- Topic: Can it be determined that a boot came as consequence of an upload?
- Replies: 2
- Views: 1789
Can it be determined that a boot came as consequence of an upload?
I'd like to mark some log data with "after upload" when a boot came as a consequence of an upload, versus a "regular boot" like after the boot button pressed.
Is that possible? I am using the Arduino framework under platformio with an Espressif ESP32-dev board.
Is that possible? I am using the Arduino framework under platformio with an Espressif ESP32-dev board.