Search found 9 matches

by TinkerBearNZ
Sat Mar 06, 2021 3:08 am
Forum: IDEs for ESP-IDF
Topic: ESP-IDF VS Code extension build suddenly failing (macOS)
Replies: 9
Views: 7848

ESP-IDF VS Code extension build suddenly failing (macOS)

macOS just updated to 11.2.2 (at least I think that's the change responsible), and now if I try to build from the icon at the bottom of the VS Code window, I get an immediate failure: > Executing task: espressif.esp-idf-extension: ESP-IDF Compile < ESP-IDF Custom Terminal $ cmake spawn cmake EACCES ...
by TinkerBearNZ
Tue Jan 12, 2021 1:34 am
Forum: ESP-IDF
Topic: How to fix "include path " problems in VS code IDE?
Replies: 6
Views: 24452

Re: How to fix "include path " problems in VS code IDE?

Do you have the C/C++ Extension installed?

I'm struggling to remember what I did to fix this, but I believe it's a matter of letting or making the C/C++ extension use build/compile_commands.json to find the proper include path.

compile_commands.json is available after you've done your first build.
by TinkerBearNZ
Wed Jan 06, 2021 10:47 pm
Forum: ESP-IDF
Topic: PCNT units 4-7 cause compile/runtime errors on esp32
Replies: 1
Views: 2141

PCNT units 4-7 cause compile/runtime errors on esp32

Not quite sure what's going on here - using "stable", v4.2. The esp32s2 only has 4 PCNT units - but I'm not building for the esp32s2, I'm building for the regular old esp32, which has 8 units. Test case: build examples/peripherals/pcnt Builds fine, presumably works (haven't tested that far) Now edit...
by TinkerBearNZ
Mon Jan 04, 2021 10:35 pm
Forum: General Discussion
Topic: Tools setup - python packages dependency problem?
Replies: 2
Views: 3676

Re: Tools setup - python packages dependency problem?

Yep, the light just dawned this morning and I was back to reply to myself... and you beat me by 2 minutes. :oops:
by TinkerBearNZ
Mon Jan 04, 2021 4:48 am
Forum: General Discussion
Topic: Tools setup - python packages dependency problem?
Replies: 2
Views: 3676

Tools setup - python packages dependency problem?

Hi there! I'm trying to update some sources from the v3.3.4 esp-idf to v4.2.0 - need to get the v4.2 tools set up first. Following the Getting Started guide: https://docs.espressif.com/projects/esp-idf/en/stable/esp32/get-started/index.html When I run install.sh, it fails during the installation of ...
by TinkerBearNZ
Mon Jul 15, 2019 6:13 am
Forum: Report Bugs
Topic: LEDC low-speed channels not starting?
Replies: 0
Views: 3229

LEDC low-speed channels not starting?

I've been trying to use (possibly mis-use) the LEDC PWM generators as general waveform generators. I've run into an instance where setting up 1 high-speed channel and 1 low-speed channel at a low frequency results in no output on the low-speed channel. This has been super frustrating, because I've g...
by TinkerBearNZ
Mon Jul 15, 2019 5:57 am
Forum: ESP32 Arduino
Topic: Frequency Measurement on digital input
Replies: 18
Views: 41413

Re: Frequency Measurement on digital input

Wouldn't you get more accuracy by using a hardware signal to gate the counter? Like... using a 5Hz signal from the LEDC, fed to a GPIO that's also used as the counter gate. Then it's just a matter of adding an interrupt routine on the negative edge of the gate signal to grab the count. I've had to p...
by TinkerBearNZ
Tue Jul 09, 2019 10:52 pm
Forum: Sample Code
Topic: Sinus Signal Generator from 18Hz to 250kHz
Replies: 9
Views: 66774

Re: Sinus Signal Generator from 18Hz to 250kHz

Some interesting trade-offs using this as a waveform generator. If you use an RTC clock divider of 1, you get lovely smooth waveforms, but you can only generate multiples of ~131.6Hz (at least on my board). Waveforms up to the 500kHz range look pretty decent. If you use an RTC clock divider of 8, yo...
by TinkerBearNZ
Thu Jul 04, 2019 6:08 am
Forum: Sample Code
Topic: Sinus Signal Generator from 18Hz to 250kHz
Replies: 9
Views: 66774

Re: Sinus Signal Generator from 18Hz to 250kHz

I'm looking at the esp32 Technical Reference Manual, section 28.5.4, and it says: A phase-shift of 0 / 90 / 180 / 270 degrees can be added by setting register SENS_SAR_DAC_INVn[1:0]. Do you think this is just a documentation error? My experimentation with the invert values has discovered useful outp...