Search found 8917 matches

by ESP_Sprite
Sat Mar 23, 2024 2:57 am
Forum: ESP-IDF
Topic: opencv component overload DRAM.bss , how can i put into PSRAM
Replies: 4
Views: 290

Re: opencv component overload DRAM.bss , how can i put into PSRAM

If you enable that, you can mark variables to live in PSRAM BSS rather than internal BSS. Example:

Code: Select all

char very_big_variable[1024*1024];
would become

Code: Select all

#include <esp_attr.h>
...
EXT_RAM_BSS_ATTR char very_big_variable[1024*1024];
to allocate it in PSRAM.
by ESP_Sprite
Sat Mar 23, 2024 2:50 am
Forum: General Discussion
Topic: how to configure the ESP32S3 as USB mass storage
Replies: 1
Views: 138

Re: how to configure the ESP32S3 as USB mass storage

There's an example included in ESP-IDF for that.
by ESP_Sprite
Sat Mar 23, 2024 2:48 am
Forum: General Discussion
Topic: problem with the esp32 led
Replies: 1
Views: 144

Re: problem with the esp32 led

You mean the red LED that is on the board? That is not controllable; it's always on when the board is powered.
by ESP_Sprite
Fri Mar 22, 2024 11:46 am
Forum: ESP32 Arduino
Topic: Can ESP32-C6 use GPIO to wake up Deep Sleep?
Replies: 4
Views: 476

Re: Can ESP32-C6 use GPIO to wake up Deep Sleep?

I noticed that External Wakeup can be used to wake DeepSleep with RTC GPIO, but I didn't find any description on the web about which pin of the ESP32 C6 can be multiplexed as RTC GPIO. Can you make a suggestion? See the datasheet , section 2.3.2. Long story short: GPIO0 to GPIO7 are RTC (LP) GPIOs.
by ESP_Sprite
Fri Mar 22, 2024 11:41 am
Forum: ESP-IDF
Topic: opencv component overload DRAM.bss , how can i put into PSRAM
Replies: 4
Views: 290

Re: opencv component overload DRAM.bss , how can i put into PSRAM

There's an option for that somewhere in menuconfig. Note that you do need to annotate the bss variables you want in psram with a certain attribute; see the help for the menuconfig option.
by ESP_Sprite
Fri Mar 22, 2024 2:12 am
Forum: ESP-IDF
Topic: Power Management: problems when combining GPIO wakeup with GPIO interrupt in light sleep mode
Replies: 2
Views: 163

Re: Power Management: problems when combining GPIO wakeup with GPIO interrupt in light sleep mode

Looks like the GPIO ISR keeps triggering for some reason, causing an interrupt timeout... Just to check: if you disable the automatic light sleep functions, does it still crash in this way? Also, can you try moving the gpio_config line to after the gpio_isr_handler_add one?
by ESP_Sprite
Fri Mar 22, 2024 1:07 am
Forum: Hardware
Topic: Sparkfun MPRLS pressure sensor not responding to activation byte
Replies: 3
Views: 296

Re: Sparkfun MPRLS pressure sensor not responding to activation byte

Btw, one thing to note is that you're not zero-initializing your stack variables, especially your configuration structs. I don't think that is it in this case, but better do this:

Code: Select all

    i2c_config_t conf={0};
to make sure any not-mentioned fields are zero-initialized.
by ESP_Sprite
Thu Mar 21, 2024 8:40 am
Forum: Hardware
Topic: Sparkfun MPRLS pressure sensor not responding to activation byte
Replies: 3
Views: 296

Re: Sparkfun MPRLS pressure sensor not responding to activation byte

Not sure how much it matters, but you write 3x '0' after the start command. The datasheet I found only shows 2x '0'.
by ESP_Sprite
Thu Mar 21, 2024 3:30 am
Forum: ESP8266
Topic: ESP Now - Wrong data in structure
Replies: 3
Views: 165

Re: ESP Now - Wrong data in structure

Maybe a data packing issue? You can try aligning it manually:

Code: Select all

typedef struct dht_message{
  uint8_t id;
  uint8_t dummy[3];
  float temp;
  float humi;
} dht_message;
by ESP_Sprite
Thu Mar 21, 2024 3:22 am
Forum: ESP32 Arduino
Topic: Store number over 1 byte in EEPROM
Replies: 2
Views: 192

Re: Store number over 1 byte in EEPROM

Yeah, the EEPROM library emulates an actual EEPROM device which stores an array of bytes. If you want to store larger numbers, you'd need to split it into multiple bytes. A better option is to use the Preferences library, which is more flexible as it doesn't have to emulate a hardware device.