Search found 35 matches

by greycon
Tue Mar 11, 2025 8:56 pm
Forum: ESP-IDF
Topic: Decode backtrace automatically IDF Eclipse
Replies: 1
Views: 530

Re: Decode backtrace automatically IDF Eclipse

OK, I "Solved" it by comparing the sdkconfig for the old (working) program and my new one. The key was in the logging format:
CONFIG_LOG_COLORS=y

This caused the IDF Monitor output to appear. (In orange).

Without this setting, I don't see any IDF Log output, for some reason. Perhaps it's there in ...
by greycon
Tue Mar 11, 2025 8:07 pm
Forum: ESP-IDF
Topic: Decode backtrace automatically IDF Eclipse
Replies: 1
Views: 530

Decode backtrace automatically IDF Eclipse

I'm driving myself crazy here, please help !

I have an IDF project from last year, developed in Eclipse IDF, and if I encounter an unhandled exception crash, the ESP-IDF-Serial Monitor windows in Eclipse automatically decodes the Backtrace, like this;

0x4017c076: _vfprintf_r at /builds/idf ...
by greycon
Sat Nov 09, 2024 7:40 pm
Forum: General Discussion
Topic: Design question - sampling a relatively low frequency protocol
Replies: 1
Views: 794

Design question - sampling a relatively low frequency protocol

Hi,
I need to sample and decode a proprietary protocol. It consists of packets arriving at about 700 bits/ Second, and I will need to capture pulses about 500 uS in duration. (Either a single High pulse, 2 High pulses , or 4 High pulses.)

I will likely use an ESP32-C6, running at 160Mhz. (I want ...
by greycon
Thu Oct 03, 2024 4:15 pm
Forum: General Discussion
Topic: run a task every 0.25 us
Replies: 10
Views: 6814

Re: run a task every 0.25 us

I see your point - sounds like you are on top of this. I look forward to reading your solution - I think you are more experienced here than I am.
by greycon
Thu Oct 03, 2024 3:32 pm
Forum: General Discussion
Topic: run a task every 0.25 us
Replies: 10
Views: 6814

Re: run a task every 0.25 us

From the Espressif Docs:

The LEDC can be used for generating signals at much higher frequencies that are sufficient enough to clock other devices, e.g., a digital camera module. In this case, the maximum available frequency is 40 MHz with duty resolution of 1 bit. This means that the duty cycle is ...
by greycon
Thu Oct 03, 2024 3:01 pm
Forum: General Discussion
Topic: run a task every 0.25 us
Replies: 10
Views: 6814

Re: run a task every 0.25 us

On a 240MHz core, I would have expected that I could easily enter an ISR, toggle a Port Pin and return in 60 cycles, but it's a gut feeling based on other SOCs. But you won't be doing much else with that core.

Perhaps the LED PWM Controller could be programmed to do the job - so no CPU load. But OP ...
by greycon
Thu Oct 03, 2024 1:20 pm
Forum: General Discussion
Topic: run a task every 0.25 us
Replies: 10
Views: 6814

Re: run a task every 0.25 us

I would just use one of the ESP32 timers, set to contintually countdown, and reload. Have it setup to generate an interrupt every time it reaches 0, and then in the ISR toggle the GPIO Pin, directly. This will be short enough to be an acceptable ISR.

Do you know how to use the Timers in this manner ...
by greycon
Thu Oct 03, 2024 1:12 pm
Forum: General Discussion
Topic: Help With Esp32
Replies: 6
Views: 4356

Re: Help With Esp32

Hi, OK, which pin did you connect the +5v to when you used the external PSU? What you are doing should work perfectly well, I do it all the time.
by greycon
Tue Oct 01, 2024 11:20 pm
Forum: General Discussion
Topic: run a task every 0.25 us
Replies: 10
Views: 6814

Re: run a task every 0.25 us

Hi,
since you talk about running a task, I assume you are programming for an RTOS In which case, you would never do this - you would have an interrupt handler (Or callback) pick up date from the SPI, and do something with it - write it to an RTOS Queue for example.

Can you give a little more ...
by greycon
Tue Oct 01, 2024 9:48 pm
Forum: General Discussion
Topic: Help With Esp32
Replies: 6
Views: 4356

Re: Help With Esp32

Hi, can you take a step back? Flash a very simple program into the ESP32 which blinks an LED (And outputs a debug string on the Serial port) Then power it from your breadboard. Does that work?

Apologies if this is in any way offensive - but not knowing your skill level - it's best to start at ...

Go to advanced search