Search found 566 matches

by boarchuz
Mon Jan 22, 2024 12:07 pm
Forum: General Discussion
Topic: ESP32: Partition Table Update through OTA
Replies: 13
Views: 29522

Re: ESP32: Partition Table Update through OTA

You risk bricking the device if the erase+write is interrupted for any reason, so imo it's worth avoiding this where possible. Unless these changes need to be backwards compatible, there's no need to literally alter the partition table. You can specify the partition in your esp_vfs_littlefs_conf_t, ...
by boarchuz
Mon Jan 22, 2024 11:54 am
Forum: General Discussion
Topic: Can I use "Boot" button as a GPIO push button after program is loaded onto flash in ESP32?
Replies: 5
Views: 17966

Re: Can I use "Boot" button as a GPIO push button after program is loaded onto flash in ESP32?

There's nothing special about GPIO0 in this respect, so I would expect some bouncing from the tactile switch. There may be a capacitor which will filter out a bit of noise, but it may also cause boot issues so most designs exclude it. Even if this particular switch is very well-behaved you shouldn't...
by boarchuz
Fri Jan 19, 2024 12:25 pm
Forum: ESP-IDF
Topic: Esp32S3 : Is it possible to activate an output of the chip before app_main() is executed ?
Replies: 7
Views: 1074

Re: Esp32S3 : Is it possible to activate an output of the chip before app_main() is executed ?

The NVS component would be quite heavy for this imo, not to mention the significant effort of porting it to the bootloader. I would assign a single-sector (0x1000 bytes) partition for this purpose, and use basic flash operations to read and alter the setting: to get the current setting, read and cou...
by boarchuz
Fri Jan 19, 2024 11:16 am
Forum: ESP-IDF
Topic: Esp32S3 : Is it possible to activate an output of the chip before app_main() is executed ?
Replies: 7
Views: 1074

Re: Esp32S3 : Is it possible to activate an output of the chip before app_main() is executed ?

1. Check the datasheet, "Appendix A – ESP32-S3 Consolidated Pin Overview": https://www.espressif.com/sites/default/files/documentation/esp32-s3_datasheet_en.pdf In the "At Reset" column, find a pin that is initialised in the desired state, taking care of strapping pins. Also check the S3 WROOM datas...
by boarchuz
Fri Jan 19, 2024 9:31 am
Forum: ESP-IDF
Topic: Esp32S3 : Is it possible to activate an output of the chip before app_main() is executed ?
Replies: 7
Views: 1074

Re: Esp32S3 : Is it possible to activate an output of the chip before app_main() is executed ?

Use a "bootloader_before_init()" hook as in the example here: https://github.com/espressif/esp-idf/tree/master/examples/custom_bootloader/bootloader_hooks Since this is executed in the bootloader you'll need to be conscious of the limitations, in particular you'll need to use ROM functions where pos...
by boarchuz
Mon Jan 01, 2024 11:01 am
Forum: ESP-IDF
Topic: ULP with ultrasonic sensor HC-SR04 / JSN-SR04T
Replies: 5
Views: 2697

Re: ULP with ultrasonic sensor HC-SR04 / JSN-SR04T

How to measure time? The RTC tick counter is 48 bits, so there's more than enough. True, you can only read 16 bits in one instruction, but you can use multiple instructions, or you can sacrifice some resolution at the lower end by reading RTC_SLOW_TICKS[18:3], for example. How to wait in program un...
by boarchuz
Mon Dec 18, 2023 4:14 am
Forum: ESP32 Arduino
Topic: ESP32-C3 ADC odd behaviour
Replies: 3
Views: 12414

Re: ESP32-C3 ADC odd behaviour

Schematic for your board reveals a 10k pullup on GPIO2:

https://dfimg.dfrobot.com/nobody/wiki/3 ... 106295.pdf
by boarchuz
Thu Dec 14, 2023 11:29 am
Forum: ESP-IDF
Topic: Some linker definitions seem to be in reserved regions, how can this be?
Replies: 3
Views: 64092

Re: Some linker definitions seem to be in reserved regions, how can this be?

Table 1-2, and section 1.3.2.1. There is nothing about ROM1 addressing via the instruction bus @ 0x40060000, however. I've only deduced this by literally comparing the contents of memory at these addresses. Give it a try to confirm for yourself, if you like. Knowing this, it's more intuitive to thin...
by boarchuz
Wed Dec 13, 2023 3:50 am
Forum: ESP-IDF
Topic: Some linker definitions seem to be in reserved regions, how can this be?
Replies: 3
Views: 64092

Re: Some linker definitions seem to be in reserved regions, how can this be?

It looks like that needs to be updated. As far as I can tell, we can think of IROM as one contiguous 448K block @ 0x40000000, the last 64K of which is also byte-addressable over the data bus at 0x3ff90000 as "ROM1" (ie. ROM1 == 0x3ff90000 == 0x40060000).
by boarchuz
Thu Dec 07, 2023 11:10 am
Forum: ESP-IDF
Topic: OTA to 2MB flash - possible?
Replies: 4
Views: 2439

Re: OTA to 2MB flash - possible?

It all comes down to how large your typical application binary is. If you configure your build for minimal size (especially by disabling logging) then you can squeeze a lot into a ~1MB partition. For reference, the factory app on the device next to me with WiFi STA+AP, HTTP/S client and server, resp...