Search found 110 matches

by phatpaul
Thu Jul 18, 2024 7:52 pm
Forum: ESP-IDF
Topic: Unit testing, on the host (gcc x86_64)
Replies: 1
Views: 2537

Re: Unit testing, on the host (gcc x86_64)

I am also interested in running unit tests on a host machine (via GitLab CI). Ideally, it would automatically use the same unit tests that I have written for my components in /components/mycmp/test/test_mycmp.c, just like the Unit Test App does . And if some tests are not appropriate for running on ...
by phatpaul
Fri Mar 15, 2024 2:00 pm
Forum: Hardware
Topic: GPIO4 can't be used for UART when Ethernet is enabled
Replies: 6
Views: 3189

Re: GPIO4 can't be used for UART when Ethernet is enabled

Not sure if relevant or helpful, but I previously found that JTAG was unusable when the EMAC is enabled, even though they don't share any pins. I never figured out why, but configured my project with macros to disable EMAC when I need to debug with JTAG.
by phatpaul
Fri Mar 15, 2024 1:44 pm
Forum: Hardware
Topic: ESP32 - IO33 - levels - 2V
Replies: 2
Views: 1616

Re: ESP32 - IO33 - levels - 2V

My guess is that the pin is initialized to Hi-Z (floating) at power-on-reset. Then it takes some time for the CPU to start running your code and set the level high.
You could try adding an external pull-up resistor to 3.3V so it goes high when the pin is hi-Z / floating.
by phatpaul
Fri Mar 15, 2024 1:32 pm
Forum: Hardware
Topic: In-Package Quad SPI Flash
Replies: 2
Views: 739

Re: In-Package Quad SPI Flash

Yep! And some ESP32 variants also have PSRAM / SPI RAM inside the same chip package.
by phatpaul
Fri Mar 15, 2024 1:25 pm
Forum: Hardware
Topic: Hardware Flash Corruption Issue
Replies: 56
Views: 53705

Re: Hardware Flash Corruption Issue

If you can recover after reflashing the code, then it is NOT the same issue as covered in this thread/topic.
You should start a new topic.
by phatpaul
Thu Aug 17, 2023 8:10 pm
Forum: General Discussion
Topic: ESP-IDF very slow compilation from vscode
Replies: 3
Views: 5855

Re: ESP-IDF very slow compilation from vscode

Whoa! adding --ccache makes a huge difference. Wonder why that isn't the default?
Thanks for the tips.
by phatpaul
Thu Jul 27, 2023 2:33 pm
Forum: ESP-IDF
Topic: [Answered] Maximum number of open sockets supported
Replies: 7
Views: 19010

Re: [Answered] Maximum number of open sockets supported

The way I've dealt with this limitation is to set the HTTP header "Connection: close\r\n". That tells the client to close every connection as soon as it is finished being used. This has allowed me to serve static content and some APIs to several browsers and keep several websockets alive at once. I'...
by phatpaul
Wed Jun 07, 2023 6:41 pm
Forum: ESP-IDF
Topic: Can single fw support multiple hardware variants? (Ethernet RMII vs. SPI)
Replies: 2
Views: 1772

Re: Can single fw support multiple hardware variants? (Ethernet RMII vs. SPI)

Thanks ESP_ondrej for your confirmation that this could work.

I already have a method to detect the HW version at run-time (on our production-line, we write a hardware version code to a special NVS partition).
by phatpaul
Thu Apr 20, 2023 7:15 pm
Forum: ESP-IDF
Topic: Can single fw support multiple hardware variants? (Ethernet RMII vs. SPI)
Replies: 2
Views: 1772

Can single fw support multiple hardware variants? (Ethernet RMII vs. SPI)

I have this scenario: We have existing products in the field that we continue to support with OTA FW updates. And we want to develop the next generation product which uses some different components. We would like to distribute a single FW binary that can support both old and new hardware. Specifical...
by phatpaul
Thu Apr 20, 2023 6:50 pm
Forum: ESP-IDF
Topic: Using OTA with multi-partition application
Replies: 6
Views: 4960

Re: Using OTA with multi-partition application

If you want a read-only filesystem that is compiled into your firmware binary, I use EspFs (a.k.a. FrogFs) and it is fast and easy to use.

https://github.com/jkent/frogfs