Search found 175 matches

by boarchuz
Wed Nov 20, 2019 12:38 am
Forum: ESP32 IDF
Topic: Is it safe to use unused register address space?
Replies: 4
Views: 455

Is it safe to use unused register address space?

It occurs to me that it would be possible to use the REG_RD and REG_WR instructions in a ULP program to effectively carve out some address space for custom purposes. I have a ULP program with a lot of boolean-type variables which are very expensive in terms of RTC memory (4 bytes each), where these ...
by boarchuz
Mon Nov 18, 2019 3:16 am
Forum: Hardware
Topic: Use NC pins on WROOM and WROVER to relay power?
Replies: 4
Views: 385

Re: Use NC pins on WROOM and WROVER to relay power?

Incidentally, I just had some PCBs delivered 5 minutes ago where I've done something similar on a little 2-layer board. What I did was to edit a custom WROOM footprint where I've removed the pad entirely (ie. There's soldermask where that pin will be on the WROOM, so it won't be soldered to the boar...
by boarchuz
Sun Nov 17, 2019 8:45 pm
Forum: General Discussion
Topic: GPIO isr service
Replies: 2
Views: 342

Re: GPIO isr service

It's safe:

https://github.com/espressif/esp-idf/bl ... pio.h#L631
return ESP_ERR_INVALID_STATE ISR service already installed.
by boarchuz
Thu Oct 17, 2019 7:16 am
Forum: ESP32 Arduino
Topic: Error sending array > around 255 bytes
Replies: 4
Views: 496

Re: Error sending array > around 255 bytes

char htmlResponse[35000];
Do you really need 35k for that little json?
Make it much much smaller or allocate dynamically.
by boarchuz
Tue Oct 15, 2019 5:13 pm
Forum: ESP32 Arduino
Topic: Error sending array > around 255 bytes
Replies: 4
Views: 496

Re: Error sending array > around 255 bytes

Some code would be helpful. From what you've given it sounds like buf is not null terminated so strlen is crapping out.
by boarchuz
Tue Oct 15, 2019 7:27 am
Forum: ESP32 Arduino
Topic: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Replies: 3
Views: 677

Re: ISO C++ forbids comparison between pointer and integer [-fpermissive]

const int* zeit_m[]
zeit_m (same for zeit_h) is an array of pointers, not an array of ints. You need to dereference these pointers to get the int that they point to.
if(*zeit_m[Wort] == minuten) {
by boarchuz
Mon Oct 14, 2019 5:51 am
Forum: ESP32 Arduino
Topic: Why use Serial.println() to configure sleep mode?
Replies: 2
Views: 279

Re: Why use Serial.println() to configure sleep mode?

Its just passing the return value to println() for debugging. Same as esp_err_t result; result = esp_deep_sleep_enable_ext0_wakeup((gpio_num_t)RTC_IN, 0) Serial.println(result); You can see the return values here: https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/system/sleep_modes...
by boarchuz
Fri Oct 11, 2019 8:38 am
Forum: ESP32 Arduino
Topic: RTC8M_CLK for LED control
Replies: 3
Views: 388

Re: RTC8M_CLK for LED control

Hopefully someone who knows what they're talking about will chime in, but I'll throw in a few thoughts in the meantime: Are you using the API? I'm sure you'll have a lot more luck with that than starting from scratch fiddling with individual registers, at least as a starting point for your own custo...

Go to advanced search