Search found 292 matches

by boarchuz
Thu Oct 15, 2020 11:31 pm
Forum: ESP-IDF
Topic: ESP32S2 running ULP-FSM example sought
Replies: 8
Views: 880

Re: ESP32S2 running ULP-FSM example sought

https://esp32.com/viewtopic.php?t=14532 Consider using the RISC-V ULP processor. It's supported already, and is the obvious choice if you're writing a ULP program from scratch at this point. FSM's main use case would be for porting an existing program from ESP32, or requiring compatibility with mult...
by boarchuz
Sun Oct 11, 2020 12:57 am
Forum: ESP-IDF
Topic: (solved) Can you use JUMPR with a variable? - ESP32 ULP
Replies: 2
Views: 142

Re: Can you use JUMPR with a variable? - ESP32 ULP

You need to load your threshold value into a separate register. Then subtract the iterator reg and the threshold reg, result into r0.
If they are equal, r0 will be 0, so you can now use:
jumpr yourlabel 1 LT

If you don't want to pollute r0 you could subtract into any reg, then:
jump label EQ
by boarchuz
Wed Oct 07, 2020 4:57 pm
Forum: ESP32 Arduino
Topic: Saving preferences doesn't work
Replies: 8
Views: 342

Re: Saving preferences doesn't work

The preferences feature is not very robust. When I define my string as char ptr and initialize it to an empty string (char * test = ""), then prefs will cause ESP32 to crash when I try to retrieve something from NVS into that char ptr. Did you try Ibernstone's solution?: "You aren't allocating any ...
by boarchuz
Tue Oct 06, 2020 12:57 pm
Forum: Hardware
Topic: ESP32 reading from Attiny85 sensor through I2C protocol
Replies: 4
Views: 212

Re: ESP32 reading from Attiny85 sensor through I2C protocol

Also the Tiny at 5V could well be a problem: a logic high on the I2C bus may not be high enough.
Investigate powering it from 3v3 or using level shifters.
by boarchuz
Mon Oct 05, 2020 7:54 pm
Forum: General Discussion
Topic: ESP32 - Deep Sleep for over 3 hours
Replies: 1
Views: 236

Re: ESP32 - Deep Sleep for over 3 hours

Use the ULL (unsigned long long) modifier:
esp_deep_sleep_start(8ULL * 60 * 60 * 1000 * 1000); // sleep 8hrs
by boarchuz
Wed Sep 30, 2020 12:05 pm
Forum: ESP-IDF
Topic: ESP NOW without NVS?
Replies: 8
Views: 661

Re: ESP NOW without NVS?

Although I can't understand why we have to "manually" call esp_phy_rf_init It needs the calibration data from somewhere. You can enable NVS so that it can store/load it as needed, you can use esp_phy_rf_init to set this data managed by your application, or you can do neither and it will need to per...
by boarchuz
Tue Sep 29, 2020 3:23 pm
Forum: ESP-IDF
Topic: ESP NOW without NVS?
Replies: 8
Views: 661

Re: ESP NOW without NVS?

Hi Timm, I've had a tinker today to refresh my memory. Here are a few things: Please go to that first link again. I have closed the PR with a comment because I've realised that ESP-IDF already exposes a way to set phy calibration data (plus it saves the ugly mess of reserving RTC memory internally)....
by boarchuz
Mon Sep 28, 2020 10:56 pm
Forum: ESP-IDF
Topic: ESP NOW without NVS?
Replies: 8
Views: 661

Re: ESP NOW without NVS?

Have you set CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP? https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/kconfig.html#config-bootloader-skip-validate-in-deep-sleep Also reduce bootloader logging level to none, and tie GPIO 15 low or use esp_deep_sleep_disable_rom_logging...
by boarchuz
Sat Sep 26, 2020 5:46 pm
Forum: Hardware
Topic: Brownout Detection on WiFi start... sometimes
Replies: 7
Views: 743

Re: Brownout Detection on WiFi start... sometimes

I think the TPS3839 should be monitoring 3V3, not VBAT.

Also you need to swap VDD/Reset.

Go to advanced search