Search found 300 matches

by mbratch
Fri Jun 14, 2024 1:28 pm
Forum: ESP-IDF
Topic: GPTimer not enabled yet error, but timer works as intended
Replies: 1
Views: 1893

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: 2357

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: 1241

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: 3024

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: 3024

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: 1198

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: 787

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?
by mbratch
Thu Feb 08, 2024 2:19 am
Forum: General Discussion
Topic: sdkconfig showing error
Replies: 2
Views: 586

Re: sdkconfig showing error

Is your development environment recently installed? It looks like there's something wrong with your installation. It isn't finding the tools. How did you install it? What IDE are you using?
by mbratch
Wed Jan 10, 2024 4:53 pm
Forum: ESP-IDF
Topic: mDNS not found on ESP IDF 5.1.2
Replies: 9
Views: 62568

Re: mDNS not found on ESP IDF 5.1.2

The build process DOES NOT help download a component. This only happens after idf.py reconfigure command. Yes, I think that is described in the details of the link I provided. The reconfiguration is needed for the process to work. It would indeed be nice to have access to all these things from the ...