Search found 61 matches

by glrtheil
Mon Mar 18, 2024 10:32 pm
Forum: ESP-IDF
Topic: ADC values less than half of expected
Replies: 2
Views: 655

ADC values less than half of expected

I've got a project we're working on where we are implementing a hardware ID process, using the ADC and a GPIO for a vref. This is an ESP32_WROOM_32UE on ESP-IDF 4.3.7 Essentially we have a voltage divider that is on SENSOR_VP (GPIO36/ADC1_CHANNEL_0) and GPIO_13 https://i.imgur.com/sLhjbho.png The co...
by glrtheil
Thu Feb 22, 2024 5:32 pm
Forum: ESP-IDF
Topic: CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC vs CONFIG_MBEDTLS_DEFAULT_MEM_ALLOC
Replies: 3
Views: 1221

Re: CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC vs CONFIG_MBEDTLS_DEFAULT_MEM_ALLOC

The help text in menuconfig for "Memory allocation strategy" describes the strategies: "Internal DRAM memory only" vs. "Either internal or external memory based on default malloc() behavior in ESP-IDF" Unfortunately, Espressif has broken the help text for menuconfig in vscode plugin, so that inform...
by glrtheil
Mon Feb 12, 2024 3:42 pm
Forum: ESP-IDF
Topic: CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC vs CONFIG_MBEDTLS_DEFAULT_MEM_ALLOC
Replies: 3
Views: 1221

CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC vs CONFIG_MBEDTLS_DEFAULT_MEM_ALLOC

What is the difference between CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC and CONFIG_MBEDTLS_DEFAULT_MEM_ALLOC? This doesn't seem to be explained anywhere.
by glrtheil
Fri Oct 27, 2023 3:04 pm
Forum: IDEs for ESP-IDF
Topic: JTAG debugging with vscode
Replies: 5
Views: 46906

Re: JTAG debugging with vscode

That definitely made a change, but still not quite working as expected. Here's the logs: [OpenOCD] Info : New GDB Connection: 1, Target esp32.cp [OpenOCD] u0, state: halted Warn : ignoring character 0x43 Warn : ignoring character 0x6f Warn : ignoring character 0x6e ..... Warn : ignoring character 0x...
by glrtheil
Wed Oct 25, 2023 5:48 pm
Forum: IDEs for ESP-IDF
Topic: JTAG debugging with vscode
Replies: 5
Views: 46906

Re: JTAG debugging with vscode

You can use custom configuration for OPENOCD, by using the command "ESP-IDF: Select OpenOCD Board Configuration" which have different presets or even custom configurations. Also, when you flash via JTAG you should be asked if you want to start OpenOCD. For debugging, I recommend you to look at the ...
by glrtheil
Wed Oct 18, 2023 5:10 pm
Forum: IDEs for ESP-IDF
Topic: JTAG debugging with vscode
Replies: 5
Views: 46906

JTAG debugging with vscode

I'm not using a dev board. We have a production device with JTAG built in. I can flash using JTAG, but that's it. I'm dying to figure out how to do anything else with it, especially monitoring and debugging. What's really frustrating is there seems to be no way to configure openocd to run automatica...
by glrtheil
Fri Jun 09, 2023 4:54 pm
Forum: ESP-IDF
Topic: w5500 and be sure module works in any time.
Replies: 14
Views: 8929

Re: w5500 and be sure module works in any time.

Was led here via an Espressif support rep, but had a lot of issues getting this to work. Even the claim of the code snippet from ESP_ondrej doesn't make sense, as that code doesn't appear anywhere in any example within any version of the IDF that I could find. But even using that code within the exa...
by glrtheil
Wed Jun 07, 2023 2:53 pm
Forum: ESP-IDF
Topic: W5500 ethernet priority over Wifi
Replies: 2
Views: 1845

Re: W5500 ethernet priority over Wifi

I've contacted Espressif support and made some progress on this. Higher prio number equals higher priority, where I assumed a lower number equaled a higher priority. This strange since typically when talking about priority, a lower number equals a higher priority. e.g. 1 is the greatest priority wit...
by glrtheil
Thu Jun 01, 2023 4:54 pm
Forum: ESP-IDF
Topic: W5500 ethernet priority over Wifi
Replies: 2
Views: 1845

W5500 ethernet priority over Wifi

ESP-IDF v4.3.2 We're adding a w5500 chip to one of our long established pieces of hardware. I've got everything working correctly, but despite the interface priority of the w5500 being the default of 50, and the wifi interface priority being the default of 100, it ALWAYS attempts to use the wifi bef...
by glrtheil
Tue Nov 29, 2022 6:42 pm
Forum: ESP-IDF
Topic: Reason code
Replies: 3
Views: 4465

Re: Reason code

if(WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT == event->reason || WIFI_REASON_AUTH_FAIL == event->reason) { g_fatal_error = true; ESP_LOGI(TAG,"Incorrect WiFi Credentials"); } Just as a note, don't use WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT to determine whether or not the password is correct. I made this mista...