Search found 20 matches

by scotthauck
Tue Sep 22, 2020 8:18 pm
Forum: ESP-ADF
Topic: Getting started with generated audio
Replies: 4
Views: 5241

Re: Getting started with generated audio

Thanks for the response. I don't have anything I'd call a pipeline yet - I've got DAC to a piezoelectric buzzer that is good enough, but too quiet, for my first application. I don't think I'll go that deeply into any of the sound side, but if I can do generative sound in ADF that may be where I'll l...
by scotthauck
Mon Sep 21, 2020 8:20 pm
Forum: ESP-ADF
Topic: Getting started with generated audio
Replies: 4
Views: 5241

Getting started with generated audio

I've been using the ESP32 via the Arduino software for a while (ported an existing codebase from another Arduino board), and have some questions on how to start doing some audio generation within my overall design. These are "ADF newbie" questions. I'm using the Adafruit Feather Huzzah32, and ideall...
by scotthauck
Fri Sep 04, 2020 6:24 pm
Forum: ESP32 Arduino
Topic: What runs on each core? And can you force ethernet callback routines onto core 0?
Replies: 3
Views: 4565

What runs on each core? And can you force ethernet callback routines onto core 0?

Is there any reference to what runs on each of the cores of the ESP32 under a normal arduino application? Looks like the Arduino setup & loop are on core 1. The Ethernet callback function also seems to end up on core 1 (i.e. I'm using AsyncUDP, and the onPacket routine says it is on core 1). I belie...
by scotthauck
Wed Jan 22, 2020 10:56 pm
Forum: ESP32 Arduino
Topic: Question re: sub-microsecond timing, performance tuning
Replies: 6
Views: 7503

Re: Question re: sub-microsecond timing, performance tuning

Seven in one case, three in another.
by scotthauck
Sat Jan 18, 2020 9:11 pm
Forum: ESP32 Arduino
Topic: Question re: sub-microsecond timing, performance tuning
Replies: 6
Views: 7503

Re: Question re: sub-microsecond timing, performance tuning

Using lots of steppers, so nothing pre-built I could find. Through disassembly and hunting around found a few of the issues: xthal_get_ccount() is a subroutine call for a single assembly instruction - better to do the assembly equivalent to avoid call overhead. XT_CLOCK_FREQ is also a subroutine cal...
by scotthauck
Fri Jan 17, 2020 10:25 pm
Forum: ESP32 Arduino
Topic: Disassembly process?
Replies: 2
Views: 7320

Re: Disassembly process?

Got disassembly going, via objdump, on my Windows 10 box for Arduino compiles. Hope this helps other folks. Install the ESP-IDF tools (if you haven't already). See the homepage for how. Find the place where the Arduino tools do the build: https://www.kanda.com/blog/microcontrollers/avr-microcontroll...
by scotthauck
Fri Jan 17, 2020 6:28 am
Forum: ESP32 Arduino
Topic: Disassembly process?
Replies: 2
Views: 7320

Re: Disassembly process?

Well, I at least found the object files.

C:\Documents and Settings\<user name>\Local Settings\Temp\arduino_build_<a number for that build>\sketch

Looks like it is time to install the ESP tools and figure out how to use objdump...
by scotthauck
Wed Jan 15, 2020 11:29 pm
Forum: ESP32 Arduino
Topic: Disassembly process?
Replies: 2
Views: 7320

Disassembly process?

Any suggestions on how to get a disassembly of code for ESP32 under Arduino? Specifically:
(1) Any pointers to a disassembler that people like? I'm developing on a Windows 10 box.
(2) Any pointers to where the executables are stored when you are using the Arduino IDE?

Thanks in advance.
by scotthauck
Tue Jan 14, 2020 1:04 am
Forum: ESP32 Arduino
Topic: Question re: sub-microsecond timing, performance tuning
Replies: 6
Views: 7503

Question re: sub-microsecond timing, performance tuning

I'm working on code to interface to a motor controller with 1us and 200ns setup and hold time requirements. If I do timings via micros(), I'll be wasting a noticeable amount of time (probably 2-3 microseconds due to resolution issues), so decided to roll an alternative using ccount. But, the routine...
by scotthauck
Fri Aug 09, 2019 2:40 am
Forum: ESP32 Arduino
Topic: Working with pre-release versions?
Replies: 0
Views: 2295

Working with pre-release versions?

Okay, just had my second experience where digging through the pre-release versions of the ESP32 arduino core code turned up bug fixes that got me past blocking issues. So, my questions: (1) What's the right way to grab pre-release versions of the code? Right now I've been manually applying specific ...