Search found 27 matches

by istokm
Sun Jul 11, 2021 11:36 pm
Forum: Hardware
Topic: 32kHz oscillator on ESP-WROVER-KIT-VE not working
Replies: 13
Views: 12201

Re: 32kHz oscillator on ESP-WROVER-KIT-VE not working

Sometimes I don't see the "BTDM_INIT: 32.768kHz XTAL not detected" message, but the 32.768k clock is unstable and causes the board to usually crash when entering light sleep. I can confirm the exact same findings. I was not the one who tested the 10M resistor, a colleague did, but reported no chang...
by istokm
Wed Jul 07, 2021 12:02 pm
Forum: Hardware
Topic: 32kHz oscillator on ESP-WROVER-KIT-VE not working
Replies: 13
Views: 12201

Re: 32kHz oscillator on ESP-WROVER-KIT-VE not working

"me too" May be relevant: https://github.com/espressif/esp-idf/issues/6621 Altough I've tried commits all the way back to August of last year, and I can't get it to work. We've got a batch of 5 custom boards, on 3 the crystal works, on 2 the crystal doesn't. It also doesn't work on the ESP32-WROVER...
by istokm
Mon May 24, 2021 1:14 pm
Forum: ESP-IDF
Topic: Call WRITE_RTC_REG in ULP using value from a register
Replies: 4
Views: 3674

Re: Call WRITE_RTC_REG in ULP using value from a register

If anyone is ever interested in this... for some reason ...here is the macro I've wrote for it. It's huge and totally impractical, as it is so large, that if you use 2 of them like this: A -> ioset -> ioset -> B, you will not be able to call a jump from A to B, because of Error: relocation out of ra...
by istokm
Fri May 21, 2021 12:50 pm
Forum: ESP-IDF
Topic: Call WRITE_RTC_REG in ULP using value from a register
Replies: 4
Views: 3674

Re: Call WRITE_RTC_REG in ULP using value from a register

That's quite unfortunate.. My first thought was the same as your proposal, but just thinking about it makes me nauseous - even though I'll probably have to go down that route (except that I'll hide it in a macro). I'll pass on your variable register writes, because that does indeed look quite dodgy ...
by istokm
Fri May 21, 2021 11:15 am
Forum: ESP-IDF
Topic: Call WRITE_RTC_REG in ULP using value from a register
Replies: 4
Views: 3674

Call WRITE_RTC_REG in ULP using value from a register

I've just now realized, that the C macros used in the ULP programs, like WRITE_RTC_REG, do not accept register values (r0, r1, etc). Is there a way around that? I've got a register that contains the RTCIO pin number of the pin I'd like to control, but I've got no way to use that value to actually wr...
by istokm
Mon Mar 22, 2021 2:22 pm
Forum: ESP-IDF
Topic: Wifi wasn't actually stopped after receiving the WIFI_EVENT_STA_STOP
Replies: 3
Views: 4009

Re: Wifi wasn't actually stopped after receiving the WIFI_EVENT_STA_STOP

For future reference, I've fixed this by rewriting my wifi lib to be completely synchronous. That way, the esp_wifi_start() is not being called inside of the event callbacks, but in a separate synchronous task - this resolved the issue, or, at least I cannot reproduce it anymore. What I mean by that...
by istokm
Sun Jan 17, 2021 1:16 am
Forum: ESP-IDF
Topic: Does the ULP have a fixed execution frequency?
Replies: 4
Views: 4064

Re: Does the ULP have a fixed execution frequency?

Well, that's a bit unfortunate, but it's fine as I've had some other ideas to mitigate the issues I'm encountering from this drift (in the future, I could store the current RTC time along with the data the ULP is generating, to take the cycle duration out of the equation). Also, remember that RTC sl...
by istokm
Fri Jan 15, 2021 9:06 pm
Forum: ESP-IDF
Topic: Does the ULP have a fixed execution frequency?
Replies: 4
Views: 4064

Does the ULP have a fixed execution frequency?

From my testing it seems that when you setup the ULP via ulp_set_wakeup_period , and run the ULPs program, it essentially works like a loop with a delay with the length being the period you set. This means that if you, for example, set a period of 100ms, the actual execution time for each loop will ...
by istokm
Wed Jan 13, 2021 3:46 pm
Forum: General Discussion
Topic: How to detect objects in range of 30 cm (180/360 angle)
Replies: 7
Views: 6475

Re: How to detect objects in range of 30 cm (180/360 angle)

You could try some special passive IR sensors from Kemet. I haven't tried them yet, but from what I've seen , if they offer the claimed range and focal length (60°) then It might be just perfect (and assuming animals can trigger them). I've got a few, just forgot to buy the tiny pitch JST connectors...
by istokm
Mon Dec 14, 2020 4:29 pm
Forum: ESP-IDF
Topic: (Solved) Totally not 'esp_wifi_disconnect wipes ULP RTC memory on deepsleep?'
Replies: 1
Views: 1937

Re: esp_wifi_disconnect wipes ULP RTC memory on deepsleep?

I was making a follow-up to this post, describing log output, commit number, etc.. and then it hit me. This is totally not a thing, just a nasty chain of event handlers that got fired in my own code - leading to esp_restart -> which in turn caused the ulp to get reinitialized due to the wakeup reaso...