Search found 17 matches

by jens.alfke
Thu Jun 28, 2018 10:00 pm
Forum: General Discussion
Topic: Caching issues with mmap'ed flash
Replies: 6
Views: 8180

Re: Caching issues with mmap'ed flash

Yeah, that's what I'm thinking too; as I wrote above:
My only other hypothesis is that this is due to CPU cache coherency, but the spi_flash code looks like it's careful to disable/enable caches.
However I have no idea what additional cache might be at fault, nor how to flush it.
by jens.alfke
Thu Jun 28, 2018 4:32 pm
Forum: General Discussion
Topic: Debugging a deadlock/hang
Replies: 2
Views: 4287

Debugging a deadlock/hang

My app will sometimes just freeze -- it stops logging and responding to network requests. I'd like to interrupt it and drop into the GDB stub and look at the thread/task stacks. Is there a way to do this? I can't find a monitor command for it. My dev board (a SparkFun ESP32 Thing) has two physical b...
by jens.alfke
Thu Jun 28, 2018 4:23 pm
Forum: General Discussion
Topic: how to resolve packet loss issue?
Replies: 14
Views: 18731

Re: how to resolve packet loss issue?

I've never seen anyone use send() to write to a TCP socket! TCP is a stream, so you use write() to write to it and read() to read. The only time I would use send() is for UDP. I have no idea what happens if you call send() instead of write(). It may well skip part of the TCP logic and send the packe...
by jens.alfke
Thu Jun 28, 2018 4:17 pm
Forum: General Discussion
Topic: Caching issues with mmap'ed flash
Replies: 6
Views: 8180

Caching issues with mmap'ed flash

I'm calling esp_partition_mmap() to memory-map a flash partition, and then esp_partition_erase_range() and esp_partition_write() to write to it. Most of the time (95%?) this works fine, but intermittently I see errors where, after a write, part of the mapped memory is still filled with FF instead of...
by jens.alfke
Fri May 04, 2018 4:05 pm
Forum: General Discussion
Topic: What would you like to see in The Next Chip?
Replies: 443
Views: 880210

Re: What would you like to see in The Next Chip?

I couldn't believe how primitive it is to set up the toolchain; like going back to the last ice age when MS-DOS roamed the planet. It should be easy to install the software directly from the Espressif website, without have to clone things off GitHub and to refer to instructions from 'readthedocs' I...
by jens.alfke
Wed May 02, 2018 6:51 pm
Forum: ESP-IDF
Topic: [Answered] How to build a subset of the possible components in ESP-IDF?
Replies: 24
Views: 41198

Re: [Answered] How to build a subset of the possible components in ESP-IDF?

Sorry to hijack this thread back to something closer to its original topic ... but has there been any progress with LTO support in the past year? I use (Clang's) LTO in my iOS projects and it helps quite a bit with performance as well as code size.
by jens.alfke
Wed May 02, 2018 4:43 pm
Forum: ESP-IDF
Topic: How to prevent dead-stripping / GC of .o files?
Replies: 1
Views: 3365

How to prevent dead-stripping / GC of .o files?

tl;dr: How do I prevent the linker from dead-stripping .o files that aren't referenced by symbols from any other .o files? I'm porting some code that uses the Catch unit-testing framework. Its test macros expand into C++ static initializers that register a test at startup time, instead of requiring...