Search found 48 matches

by RandomInternetGuy
Thu Apr 18, 2024 9:14 pm
Forum: ESP32 Arduino
Topic: ESP32S3 Unable to set specific GPIO as outputs
Replies: 8
Views: 5617

Re: ESP32S3 Unable to set specific GPIO as outputs

A useful community resource (including open issues, discussion) on this topic can be found at
https://github.com/atomic14/esp32-s3-pinouts
by RandomInternetGuy
Thu Apr 18, 2024 9:44 am
Forum: ESP-IDF
Topic: UART Communication
Replies: 1
Views: 2911

Re: UART Communication

You CAN. It has the huge advantage that it's human readable. You can just print whatever is going over the wire using whatever terminal emulator makes you happy with a couple of wire clips and you can instantly know if the sender sent what you thought and the receiver received that. Don't give that ...
by RandomInternetGuy
Thu Apr 18, 2024 9:23 am
Forum: ESP-IDF
Topic: ESP32S3 edits the partition table in the main program
Replies: 4
Views: 2863

Re: ESP32S3 edits the partition table in the main program

You may find joy in writing the alternative partition table (supported) instead of the primary one.

See https://esp32.com/viewtopic.php?f=19&t=35166 for inspiration and enough hints for working code that you should be able to stick the landing. It worked for me.
by RandomInternetGuy
Tue Jan 02, 2024 4:46 am
Forum: ESP-IDF
Topic: ESP32s3 Disable JTAG/Serial RTS Reset
Replies: 2
Views: 3852

Re: ESP32s3 Disable JTAG/Serial RTS Reset

the S3 doesn't. Bummer. That's probably the single least awesome aspect of debugging C3 and S3 with the built-in JTAG facility. Every time you load new code to the device, you have to restart the debugger or manually recreate the connection and source all the startup chatter. If that's the way it i...
by RandomInternetGuy
Tue Jan 02, 2024 4:39 am
Forum: ESP-IDF
Topic: freertos fails to allocate memory and crashes at boot
Replies: 2
Views: 10977

Re: freertos fails to allocate memory and crashes at boot

There's not really enough detail there for anyone to give you a definitive answer. malloc() allocates memory at runtime. There's no static tool that can tell how much memory malloc will use. allocate_foos(int nfoos) { return calloc(sizeof(foo), nfoos); } That might be called with a million and it ma...
by RandomInternetGuy
Tue Jan 02, 2024 4:29 am
Forum: ESP-IDF
Topic: The cost of C++ exception handling
Replies: 4
Views: 10464

Re: The cost of C++ exception handling

IMO, this question has been well answered and the costs actually measured and considered instead of relying on folklore. Gold star. As a reminder, especially to those coming from a background in C, you CAN have multiple values returned from a function. Sometimes that plays out really well and someti...
by RandomInternetGuy
Mon Jan 01, 2024 9:38 am
Forum: Hardware
Topic: Is redirecting stdout over JTAG possible?
Replies: 2
Views: 1404

Re: Is redirecting stdout over JTAG possible?

The search terms you seek are "Semihosting" and "Segger RTT". From the name, you can guess that one company kind of drove the adoption, but it's a simple array of circular queues that allows for separate streams for stdin, stdout, files, console, and more. I've not reviewed these articles in depth a...
by RandomInternetGuy
Mon Jan 01, 2024 9:21 am
Forum: Hardware
Topic: ESP32 Status
Replies: 2
Views: 1480

Re: ESP32 Status

Bummer. Depending on what got hooked up wrong and for how long, under what circumstances, etc. (Don't bother trying to explain...it won't matter) the damage can range from one pin that doesn't work (yay) that can just be unused or remapped away in software to damage that basically requires replaceme...
by RandomInternetGuy
Mon Jan 01, 2024 9:05 am
Forum: Hardware
Topic: Discord or section here for laymen/noob questions?
Replies: 2
Views: 957

Re: Discord or section here for laymen/noob questions?

Discord, IMO, is _way_ harder to use to solve actual technical problems. Threading is a total mess so conversations all jumble together and it encourages real-time answers over considered, thought out (tested) answers. It has a place, but I just don't dig it for detailed tech support. I can't parse ...
by RandomInternetGuy
Wed Aug 23, 2023 12:58 am
Forum: General Discussion
Topic: Using printf with \r does not print anything
Replies: 10
Views: 5010

Re: Using printf with \r does not print anything

You're welcome. I totally believe that the default behavior changed. Honestly, I'm more surprised that the old behavior was as it was until approximately now. (In computer science years) The older behavior really is more common in super tiny systems where a difference of a few k can totally blow you...