Search found 574 matches

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: 1356

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: 1356

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: 1356

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: 3117

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: 13037

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: 66558

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: 66558

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: 5204

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...
by boarchuz
Sat Nov 18, 2023 10:11 am
Forum: Hardware
Topic: RTC? RTC Slow Memory? RTC Fast Memory
Replies: 1
Views: 3132

Re: RTC? RTC Slow Memory? RTC Fast Memory

The TRM does include a Glossary that defines RTC: Real Time Controller. A group of circuits in SoC that keeps working in any chip mode and at any time. And clarifies how RTC Slow and Fast memory got their names in 1.3.5.3: The ROM as well as the SRAM are both clocked from CPU_CLK and can be accessed...