Search found 48 matches

by RandomInternetGuy
Tue Jul 02, 2024 5:52 am
Forum: General Discussion
Topic: 10x faster flash programming. Source code ESP32ROM.STUB_CODE?
Replies: 6
Views: 2802

Re: 10x faster flash programming. Source code ESP32ROM.STUB_CODE?

Gee, I composed a long answer, got distracted, and came back to press the preview button. The forum then took me to a login page, but ate my post. Classy! The TLDR is that this is, in fact, not really Espressif's problem. I chased the problem all the way down to the wire and the upload of ~1MB of *....
by RandomInternetGuy
Sun Jun 30, 2024 2:56 pm
Forum: ESP-IDF
Topic: Cursor navigation in a text editor
Replies: 1
Views: 467

Re: Cursor navigation in a text editor

This isn't really related to ESP32, but "large data buffer" for a text editor is headed down a bad path from the start.

Read up on the data structure known as 'ropes'. They're key to this class of problems.
by RandomInternetGuy
Sun Jun 30, 2024 2:53 pm
Forum: ESP-IDF
Topic: Bootloader Size Increase when Upgrading from ESP-IDF 4.3.1 to 5.1.1
Replies: 4
Views: 881

Re: Bootloader Size Increase when Upgrading from ESP-IDF 4.3.1 to 5.1.1

Have you modified the bootloader? Have you modified linker map or the build environment? That's an extremely common partition configuration. I'd expect if this problem were widespread that there would be panic in the streets. I just looked at my own build and I'm seeing a 15k-17 bootloader.bin for W...
by RandomInternetGuy
Sat Jun 29, 2024 10:24 pm
Forum: General Discussion
Topic: 10x faster flash programming. Source code ESP32ROM.STUB_CODE?
Replies: 6
Views: 2802

Re: 10x faster flash programming. Source code ESP32ROM.STUB_CODE?

I suspect many of us are annoyed at the long flash times. The few times I poked at it (before finding this) I, too, concluded that the flash write itself was probably the bottleneck. Well, I at least concluded that the serial wasn't the bottleneck. You can pretty trivially convinced yourself that 2M...
by RandomInternetGuy
Sun Jun 09, 2024 12:36 pm
Forum: ESP-IDF
Topic: How to Include and Align a Proprietary Binary in ESP-IDF Firmware
Replies: 3
Views: 692

Re: How to Include and Align a Proprietary Binary in ESP-IDF Firmware

This is indeed a very unusual requirement on parts like this. When you have only a few hundred K - and nothing like a general purpose MMU that imposes such requirements - burning up to 4095 bytes of address space just to get it on an alignment of 4096 is not to be taken lightly. But if you're insist...
by RandomInternetGuy
Sun Jun 09, 2024 12:22 pm
Forum: ESP-IDF
Topic: how to enable esp32c6 USB settings from sdk.
Replies: 4
Views: 631

Re: how to enable esp32c6 USB settings from sdk.

ESP32-C3 doesn't have OTG, so there will be no examples.

C3 has only the debug/console CDC/ACM part of the USB controller present on the other post-2020 parts.
by RandomInternetGuy
Sun Jun 09, 2024 11:31 am
Forum: Hardware
Topic: Uart Rx/tx
Replies: 17
Views: 12278

Re: Uart Rx/tx

This question doesn't seem to be related to the seven year old thread you resurrected. Your question seems to be "how do I send a break", which isn't really appropriate in the hardware group at all, but it's documented in ESP-IDF. uart_write_bytes_with_break() is covered in many places, but notably ...
by RandomInternetGuy
Sun Jun 09, 2024 11:19 am
Forum: Hardware
Topic: RS-232 Modules are not working with ESP32's
Replies: 4
Views: 1662

Re: RS-232 Modules are not working with ESP32's

Congrats. Board convention is to change your subject to include "Solved:" as you see on other posts. It's late now, but here's a helpful tip when debugging 232 connections and trying to figure out if you need to introduce a RX/TX flip (the "null modem") of if cabling has already done so for you. Whi...
by RandomInternetGuy
Sun Jun 09, 2024 11:04 am
Forum: Hardware
Topic: ESP32-C3-WROOM-02 keeps rebooting while connecting WiFi
Replies: 6
Views: 2142

Re: ESP32-C3-WROOM-02 keeps rebooting while connecting WiFi

It's not the actual question, but when the magnetic field in your relay collapses and it needs to dump many tens/hundreds of volts into a spike somewhere, where does that go? It's possible this board handles it, but I don't see the requisite parts. Stick a scope with a trigger on the trailing edge o...
by RandomInternetGuy
Wed Jun 05, 2024 3:00 pm
Forum: ESP-IDF
Topic: Improving programming speed
Replies: 6
Views: 1610

Re: Improving programming speed

You can play some games like using multiple partitions and keeping the part of your code that you're not constantly changing (e.g. resources) in another partition that you don't reload on each build. For example, put your .png files in a LittleFS and just don't keep reloading them all the time. An a...