Search found 17 matches

by jeeves
Thu Jul 02, 2020 7:04 am
Forum: General Discussion
Topic: Requesting watchdog register docs
Replies: 1
Views: 3494

Requesting watchdog register docs

There are several watchdog registers I can't find documented anywhere, in the headers or the technical manual. For example

Code: Select all

DPORT_REG_SET_BIT(DPORT_APP_CPU_RECORD_CTRL_REG, DPORT_APP_CPU_PDEBUG_ENABLE | DPORT_APP_CPU_RECORD_ENABLE);
Requesting docs for these.
by jeeves
Thu Jul 02, 2020 6:59 am
Forum: General Discussion
Topic: Unreliable GPIO
Replies: 25
Views: 26946

Re: Unreliable GPIO

Your summary is correct. The other end is an old "hard realtime" style microcontroller. By this I mean it has direct access to GPIOs and cycle counting instructions on it is accurate, both unlike the ESPs. ESP accesses GPIO over a bus, and executes instructions pipelined and partially out of order. ...
by jeeves
Wed Jul 01, 2020 2:42 pm
Forum: General Discussion
Topic: Unreliable GPIO
Replies: 25
Views: 26946

Re: Unreliable GPIO

Nope, not memw. I removed the memw from the w1tc write, and the timings were identical. Then I forced the write again via DPORT instead of AHB, and timings didn't change. So it looks like a busy bus, and likely not workable around.
by jeeves
Tue Jun 30, 2020 5:01 pm
Forum: General Discussion
Topic: Unreliable GPIO
Replies: 25
Views: 26946

Re: Unreliable GPIO

Managed to get the higher sample rates working. The default format and a few others used too much cpu, but dumping to binary worked fine for high rates. The 1 MHz was indeed far too inaccurate. I tested pin 21's variance, how long it stayed high, at 25 MHz. While not quite 3 us, the variance is stil...
by jeeves
Mon Jun 29, 2020 2:48 pm
Forum: General Discussion
Topic: memw details?
Replies: 6
Views: 7726

Re: memw details?

p 117, section 6.3.1 of the technical manual
The DMA Engine accesses SRAM over the AHB BUS.
:( not what I hoped for. If it was DPORT and AHB was free, and AHB did not need memw, that would allow GPIO writes over AHB to proceed unhindered. But DPORT requires memw.
by jeeves
Mon Jun 29, 2020 1:48 pm
Forum: General Discussion
Topic: memw details?
Replies: 6
Views: 7726

Re: memw details?

https://esp32.com/viewtopic.php?p=35711#p35711 In the event of a cache miss, the cache line is automatically filled via a read from the flash chip. The cache line size is 32 bytes. With Quad SPI (QIO mode) this requires something like 75 clocks to fill the cache (8 clocks for the command plus 64 clo...
by jeeves
Sun Jun 28, 2020 6:11 am
Forum: General Discussion
Topic: Unreliable GPIO
Replies: 25
Views: 26946

Re: Unreliable GPIO

Second core code is successfully running, GPIO parts have delays ;) So the entire project isn't successful yet. That just meant "core 1 starts and stays up, entirely on my code, no freertos", which nobody has publicly achieved.
by jeeves
Sat Jun 27, 2020 6:34 am
Forum: General Discussion
Topic: Unreliable GPIO
Replies: 25
Views: 26946

Re: Unreliable GPIO

@p-rimes I use sigrok's latest stable (sigrok-cli 0.7.1, libsigrok 0.5.2/5:1:1), and I tried with three channels at most rates. I opened this bug https://sigrok.org/bugzilla/show_bug.cgi?id=1565 . Poor quality USB is a possibility, I use the USB B cable that came with the unit. However it's looking ...
by jeeves
Fri Jun 26, 2020 5:06 pm
Forum: General Discussion
Topic: Unreliable GPIO
Replies: 25
Views: 26946

Re: Unreliable GPIO

https://sigrok.org/wiki/Mcupro_Logic16_clone

Not sure if I mentioned it anywhere, but core 1 code is fully in IRAM. So flash delays not possible either.
by jeeves
Fri Jun 26, 2020 4:46 pm
Forum: General Discussion
Topic: Unreliable GPIO
Replies: 25
Views: 26946

Re: Unreliable GPIO

Saleae16 clone arrived, but sigrok is having issues on keeping it dumping more than a couple sec. Anyway, I found some random lag spikes of up to ~720 cycles (~3us), which shouldn't be possible - in the memw thread, ESP_Sprite says memw should take at most a hundred cycles, and the GPIO.out_w1* writ...