Search found 63 matches

by doglike
Mon Feb 12, 2024 9:47 pm
Forum: Hardware
Topic: GPIO14 prevents ESP32-WROOM to boot
Replies: 4
Views: 442

Re: GPIO14 prevents ESP32-WROOM to boot

pipi61 wrote:
Mon Feb 12, 2024 5:56 pm
https://randomnerdtutorials.com/esp32-p ... nce-gpios/
14 outputs PWM signal at boot
Hi pipi, how does this explain that behaviour ?
by doglike
Mon Feb 12, 2024 5:02 pm
Forum: Hardware
Topic: GPIO14 prevents ESP32-WROOM to boot
Replies: 4
Views: 442

Re: GPIO14 prevents ESP32-WROOM to boot

Possible, I am still checking for electr. issues/shorts.
But lets assume there is some kind of electr. short or what ever...
Why is a voltage level @ GPIO14 is influencing the boot ?
by doglike
Sun Feb 11, 2024 9:48 pm
Forum: Hardware
Topic: GPIO14 prevents ESP32-WROOM to boot
Replies: 4
Views: 442

GPIO14 prevents ESP32-WROOM to boot

Hi, I have a weird behaviour on my custom PCB, which I do not understand. GPIO14 is connected directly to the input of a darlington transistor. When you check the schematic of the darlington (attachment), then you will see, that there are some pulldowns (total 13K). :arrow: General: Putting ESP to d...
by doglike
Thu Sep 14, 2023 8:14 pm
Forum: Hardware
Topic: Capacitor for custom PCB
Replies: 3
Views: 1990

Re: Capacitor for custom PCB

@ ESP_Sprite
Many thanks for that awesome post and support!

@ MicroController
I am already reading the source voltage, so that I can react to a shutoff.
Thanks for the hint with shutting down not needed stuff like wifi etc! Didn't consider that.
by doglike
Wed Sep 13, 2023 8:08 am
Forum: Hardware
Topic: Capacitor for custom PCB
Replies: 3
Views: 1990

Capacitor for custom PCB

Hi, my custom PCB is sourced with 12V and I have 3.3V voltage regulator on it. I have a requirement, that the ESP32 needs to stay energized for 1sec after the source voltage was cut off, so that there is some time, to write data to flash. Current consumption is about 0.25A Could someone please help ...
by doglike
Fri Sep 08, 2023 7:46 am
Forum: ESP-IDF
Topic: Class methods as ISR (IRAM allocation)
Replies: 7
Views: 2104

Re: Class methods as ISR (IRAM allocation)

You can also try __attribute__((noinline)) to prevent inlining of the function at the call site. That worked, many thanks :) .iram1.1605 0x00000000400836dc 0xe /home/user/eclipse-workspace/class_test/build/main/libmain.a(main.o) 0x11 (size before relaxing) 0x00000000400836dc _ZN5PIN_t8set_modeEhh I...
by doglike
Thu Sep 07, 2023 2:26 pm
Forum: ESP-IDF
Topic: Class methods as ISR (IRAM allocation)
Replies: 7
Views: 2104

Re: Class methods as ISR (IRAM allocation)

MicroController wrote:
Thu Sep 07, 2023 12:30 pm
Do you 'use' the function in your code?
Yes, I am calling pin_instance.set_mode() it in a freertos task.

I didn't checked your "trampoline" workaround yet.
First I want to see, whether it is allocated in IRAM.
by doglike
Thu Sep 07, 2023 7:36 am
Forum: ESP-IDF
Topic: Class methods as ISR (IRAM allocation)
Replies: 7
Views: 2104

Re: Class methods as ISR (IRAM allocation)

Hi, thanks for your feedback. I tried it with this code: class PIN_t { public: void IRAM_ATTR set_mode(void); } void IRAM_ATTR PIN_t::set_mode(void) { // do stuff } PIN_t pin_instance; Then I checked the map file in build directory: - method set_mode is not appearing in map file at all. - when searc...
by doglike
Thu Aug 31, 2023 7:51 am
Forum: ESP-IDF
Topic: Class methods as ISR (IRAM allocation)
Replies: 7
Views: 2104

Class methods as ISR (IRAM allocation)

Hi,
I want to use a class method as ISR and want to allocate it in IRAM.
How to do it correctly?

Will this example code work ?

Thanks in advance.

Code: Select all

class PIN_t
{
     void isr_func (void);
} pin;


void IRAM_ATTR PIN_t::isr_func (void) 
{
     // do stuff
}

by doglike
Wed Jul 26, 2023 11:30 am
Forum: ESP-IDF
Topic: Deactivate bootloader download-mode (GPIO2=Low)
Replies: 0
Views: 2192

Deactivate bootloader download-mode (GPIO2=Low)

Hi, is there a way to entirely deactivate the bootloader download-mode on ESP32 WROOM ? I am pulling GPIO2 LOW on the very first flash via bootloader and all further flashes will be done OTA. It is neccessary for my PCB, that the state of GPIO2 will be completely ignored during boot, that means, whe...