Search found 303 matches

by mbratch
Sun Oct 20, 2024 3:43 pm
Forum: General Discussion
Topic: Which esp32 module is most actively supported on the Forum?
Replies: 2
Views: 1353

Re: Which esp32 module is most actively supported on the Forum?

I don't think this forum favors any particular ESP32 variant or kit model. However, I'm sure model usage is not uniform, so you're likely to see more posts about some particular models than others. If you choose an ESP32 to meet your needs and have an issue with it, then you can certainly make a pos...
by mbratch
Mon Aug 05, 2024 2:24 pm
Forum: ESP-IDF
Topic: WiFi or TCP-IP Blocking high priority FreeRTOS tasks for over 10 seconds
Replies: 3
Views: 961

Re: WiFi or TCP-IP Blocking high priority FreeRTOS tasks for over 10 seconds

Good find!
Do you know what the default is for the `.timeout_ms` setting? I couldn't find it in the documentation for `esp_http_client_config_t`
by mbratch
Wed Jul 24, 2024 6:47 pm
Forum: General Discussion
Topic: RTOS reliant?
Replies: 2
Views: 873

Re: RTOS reliant?

ESP-IDF uses FreeRTOS, but if your application is fairly simple, although the RTOS will be there, you don't really have to interact with it in any obvious way. It would just be a single task and the ESP-IDF environment defines a default main task where your code lives. On the other hand, FreeRTOS is...
by mbratch
Fri Jun 14, 2024 1:28 pm
Forum: ESP-IDF
Topic: GPTimer not enabled yet error, but timer works as intended
Replies: 2
Views: 3183

Re: GPTimer not enabled yet error, but timer works as intended

I know this post is already several months old but...

I get this same error if, for example, I do a UART transmission after I start the timer. If I disable my UART transmissions, I do not get the gptimer error.

What else is your code doing while the timer is running?
by mbratch
Mon Apr 08, 2024 6:06 pm
Forum: General Discussion
Topic: adding a file to an ESP-IDF project under VScode?
Replies: 4
Views: 3688

Re: adding a file to an ESP-IDF project under VScode?

It depends upon how your current `CMakeLists.txt` specifies the files. For example, if it globs them like this: file(GLOB_RECURSE app_sources ${CMAKE_SOURCE_DIR}/main/*.*) idf_component_register(SRCS ${app_sources}) Then you just need to add the file to the `main` folder and you're good to go. Other...
by mbratch
Mon Mar 25, 2024 4:20 pm
Forum: ESP-IDF
Topic: SPI signal @16MHz looks terrible
Replies: 6
Views: 2072

Re: SPI signal @16MHz looks terrible

OK, I've shortened the length of wires by half and now it looks better. Still far from perfect, but I guess it will be fine when all components are on one PCB. For sure. Shortening distance, especially having the signals be on traces on a single PCB, and reducing frequency, if possible, will mitiga...
by mbratch
Mon Mar 25, 2024 3:04 pm
Forum: General Discussion
Topic: Make the type of this parameter a pointer-to-const warning when declaring a FreeRTOS task
Replies: 12
Views: 4790

Re: Make the type of this parameter a pointer-to-const warning when declaring a FreeRTOS task

I do not think that the issue is related to vTaskDelay(pdMS_TO_TICKS(portTICK_PERIOD_MS)) I think it is related to task function declaration: static void HELLO_TASK(void *param) You're right! I'm so sorry and misread your original post and missed the detail you noted. My apologies. Make the type of...
by mbratch
Fri Mar 22, 2024 1:55 pm
Forum: General Discussion
Topic: Make the type of this parameter a pointer-to-const warning when declaring a FreeRTOS task
Replies: 12
Views: 4790

Re: Make the type of this parameter a pointer-to-const warning when declaring a FreeRTOS task

FreeRTOS has a macro with casting built in, `pdMS_TO_TICKS`. I use this all the time instead of literally putting the conversion in as `1000/period_in_ms`. So I would write: vTaskDelay(pdMS_TO_TICKS(portTICK_PERIOD_MS)); Have you tried that and does it get rid of the warning? The only caveat is that...
by mbratch
Tue Mar 19, 2024 3:23 pm
Forum: Hardware
Topic: ESP32 - IO33 - levels - 2V
Replies: 2
Views: 2341

Re: ESP32 - IO33 - levels - 2V

I have seen this behavior as well. I think phatpaul's explanation and suggested method of handling the pin are correct. I've used the pull-up successfully.
by mbratch
Sat Feb 10, 2024 2:39 pm
Forum: ESP-IDF
Topic: I2C Read returns incorrect data while Physical Bus has correct Data.
Replies: 3
Views: 1387

Re: I2C Read returns incorrect data while Physical Bus has correct Data.

I think some details would help.

What ESP32 processor are you using?
What version of ESP-IDF are you using?
What are your I2C port assignments?
Can you show your code that configures the I2C?
Can you show your code that reads the I2C?