Search found 3736 matches

by ESP_Sprite
Fri Jul 31, 2020 7:20 am
Forum: General Discussion
Topic: UART software flow control
Replies: 4
Views: 246

Re: UART software flow control

Pretty sure that indeed, the internal buffers are entirely filled up and the watchdog timer resets the chip as to it, the CPU is 'stuck' in a routine somewhere. Because the UART still is waiting for the XON at that time, printing the core dump also gets held up, so you don't see that. In general, th...
by ESP_Sprite
Thu Jul 30, 2020 7:30 am
Forum: General Discussion
Topic: The right / easy way for live two way commands
Replies: 4
Views: 261

Re: The right / easy way for live two way commands

This code seems simple enough, but not sure how to inject new text/commands while the established connection remains active. Assuming you're using PHP for a webpage, that is more-or-less impossible... your PHP program ends as soon as the webpage has finished loading, and the socket closes when your...
by ESP_Sprite
Wed Jul 29, 2020 2:35 pm
Forum: Hardware
Topic: ESP32 Custom PCB not starting up except when U0RXD is pulled up or down externally
Replies: 5
Views: 416

Re: ESP32 Custom PCB not starting up except when U0RXD is pulled up or down externaly

Good to hear, and thanks for posting what the issue was. I almost started doubting my knowledge that U0RX is not a bootstrap pin...
by ESP_Sprite
Wed Jul 29, 2020 2:32 pm
Forum: General Discussion
Topic: C++ compiler for Sketch ESP32
Replies: 7
Views: 496

Re: C++ compiler for Sketch ESP32

The definition of a 'char' is not specified by the C specs at least iirc; it can be signed or unsigned by default, depending on the architecture; you may be right in that that differs between Xtensa and AVR. From what I know, gcc can change it with a command line option. (Although I'd posit good cod...
by ESP_Sprite
Wed Jul 29, 2020 2:27 pm
Forum: General Discussion
Topic: The right / easy way for live two way commands
Replies: 4
Views: 261

Re: The right / easy way for live two way commands

No such thing as 'the' right way to do something like this, but can I suggest looking into mqtt? Especially if your server is under your own control, this may be the way to go.
by ESP_Sprite
Tue Jul 28, 2020 1:43 pm
Forum: Hardware
Topic: ESP32 Custom PCB not starting up except when U0RXD is pulled up or down externally
Replies: 5
Views: 416

Re: ESP32 Custom PCB not starting up except when U0RXD is pulled up or down externaly

That is strange for sure... any chance you can capture what the chip sends on U0TXD when this happens?
by ESP_Sprite
Tue Jul 28, 2020 1:35 pm
Forum: ESP32 IDF
Topic: WDT Timeout on Core 0
Replies: 11
Views: 1352

Re: WDT Timeout on Core 0

So, note that the *interrupt* watchdog is not called that for no reason: it kicks in when your program spends too long in an *interrupt*. (Well, technically it kicks in when interrupts are disabled for too long, but as ISRs run with interrupts disabled, it triggers on that as well). This means that ...
by ESP_Sprite
Tue Jul 28, 2020 1:28 pm
Forum: ESP32 IDF
Topic: What should I write in esp_task_wdt_isr_user_handler()?
Replies: 1
Views: 113

Re: What should I write in esp_task_wdt_isr_user_handler()?

...What are you trying to do in the first place, as in, what is the purpose of killing and recreating the task? Whatever it is, doing stuff like this in an ISR is never going to work as none of those functions are intended to be called from an ISR.
by ESP_Sprite
Tue Jul 28, 2020 1:16 pm
Forum: ESP32 IDF
Topic: UART baudrate frame information auto detect?
Replies: 1
Views: 131

Re: UART baudrate frame information auto detect?

You want to detect all those things? Suggest you use the RMT peripheral to capture a few bytes, then in code try to see if you can detect the baudrate, then see if the stop bits match up with the word length you selected, then see if any parity works.
by ESP_Sprite
Tue Jul 28, 2020 1:12 pm
Forum: Hardware
Topic: Not able to program esp32d0wdq6 standalone ic
Replies: 12
Views: 934

Re: Not able to program esp32d0wdq6 standalone ic

I'll just copy-paste myself so I don't have to type it in another time:
Suggest you try to see if there is output on the UART at all to begin with and proceed debugging from there.

Go to advanced search