Search found 41 matches

by Lancsrick
Mon Apr 27, 2026 8:06 am
Forum: ESP-IDF
Topic: ESP_TIMER - Declaration issue
Replies: 2
Views: 63

Re: ESP_TIMER - Declaration issue

Thank you, I'd gone blind! Much appreciated.
by Lancsrick
Sun Apr 26, 2026 10:06 pm
Forum: ESP-IDF
Topic: ESP_TIMER - Declaration issue
Replies: 2
Views: 63

ESP_TIMER - Declaration issue

I've made a right mess of migrating from 5.5 to 6.0 and have lost track of edits that I've done. My current issue is that I cannot get rid of an error being thrown every time I pass arguments to esp_timer_create. The IDE only seems happy when it's esp_timer_create() with no arguments, which clearly ...
by Lancsrick
Sun Mar 09, 2025 6:54 pm
Forum: ESP-IDF
Topic: Best method for pulse timing and filtering?
Replies: 2
Views: 607

Best method for pulse timing and filtering?

Ok that's a vague title so let's expand on that.

INPUT1 is a light gate, 1 when intact, 0 when broken and wired to a GPIO digital input.
There are 4 separate light gates in the real case, but I'll just take one for simplicity.

I'm interested in two attributes:
1) When did the beam get broken?
2 ...
by Lancsrick
Mon Feb 17, 2025 4:16 pm
Forum: ESP-IDF
Topic: No printf output
Replies: 4
Views: 1501

Re: No printf output

Perfect, thanks!
by Lancsrick
Sun Feb 16, 2025 6:20 pm
Forum: ESP-IDF
Topic: No printf output
Replies: 4
Views: 1501

Re: No printf output

It's this block of code below that's causing the problem, but I don't know why. Switched to VS Code to ensure there was no environment issue going on that I couldn't find.

/*gpio_config_t io_conf1;
io_conf1.intr_type = GPIO_INTR_DISABLE;//disable interrupt
io_conf1.mode = GPIO_MODE_INPUT;
io ...
by Lancsrick
Sun Feb 16, 2025 2:16 pm
Forum: ESP-IDF
Topic: No printf output
Replies: 4
Views: 1501

Re: No printf output

To add some more information:

- I've confirmed the monitor is at 115200
- I've tried different usb ports and cables (all flash fine, all give no serial output)
- I've tried manually resetting the board with the terminal running
by Lancsrick
Sun Feb 16, 2025 11:43 am
Forum: ESP-IDF
Topic: No printf output
Replies: 4
Views: 1501

No printf output

Hi all, I assume I'm doing something stupid but I can't figure it out at the minute. Using Espressif-IDE, DOIT Devkit v1 ESP32. Whilst my program runs absolutely fine I can't get any printf output to the terminal - I get all the flash and boot information but then it stops at the green line below ...
by Lancsrick
Wed Jan 15, 2025 10:13 am
Forum: ESP-IDF
Topic: gpio_config_t .mode not applying?
Replies: 5
Views: 1295

Re: gpio_config_t .mode not applying?

I'm an idiot, I never called pin_setup() within main. Thanks for driving me to look closer at my code, the fact that the #define was still actioned threw me off. Cheers.
by Lancsrick
Wed Jan 15, 2025 9:13 am
Forum: ESP-IDF
Topic: gpio_config_t .mode not applying?
Replies: 5
Views: 1295

Re: gpio_config_t .mode not applying?

I've commented out the majority of my code but still get the same behaviour - permanent high without the gpio_set_direction(), working as intended with. Copy paste of my code below.

#include <inttypes.h>
#include <stdio.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <sys ...
by Lancsrick
Tue Jan 14, 2025 6:52 pm
Forum: ESP-IDF
Topic: gpio_config_t .mode not applying?
Replies: 5
Views: 1295

Re: gpio_config_t .mode not applying?

I can check again but given the addition of a gpio_set_direction() then works it must be executing the first code block to understand what AMBER_LIGHT1 is. Because it works fine with just the addition of that direction call I'll triple (quadruple?) check I have no conflicting definition for GPIO5 ...

Go to advanced search