ESP32 - create an upload stub - problem reading RX after stub running
Posted: Wed Oct 22, 2025 7:10 pm
I may have bitten over more than I can chew, but this should not be the problem that kills the project...
I am trying to create an offline bulk programmer for ESP32 chips.
Talking to ChatGPT for about a week now, I asked it to recommend forums or FAQs instead of pulling me along in an endless circle of failures.
ChatGPT did teach me how to set up VisualStudio Code to compile as "bare-bone" stub and strip off all Arduino and platformIO functions. This is important when creating stub because of image size.
Anyways - Without any settings, I can make the stub send me data via TX (UART0, GPIO1, pin35), but RX (UART0, GPIO3, pin34) does not detect any incoming data.
ChatGPT tells me that when uploading to RAM (stub upload), the control of TX is transferred to the stub correctly, but the RX is often disabled for some reason. Problem is that ChatGPT were not able to help me re-enable RX without screwing up the entire UART0 controller.
Does any of you know what registers I need to contact and what bits I need to clear/set to get my RX pin to work properly?
Kind regards,
Geir Moen
I am trying to create an offline bulk programmer for ESP32 chips.
Talking to ChatGPT for about a week now, I asked it to recommend forums or FAQs instead of pulling me along in an endless circle of failures.
ChatGPT did teach me how to set up VisualStudio Code to compile as "bare-bone" stub and strip off all Arduino and platformIO functions. This is important when creating stub because of image size.
Anyways - Without any settings, I can make the stub send me data via TX (UART0, GPIO1, pin35), but RX (UART0, GPIO3, pin34) does not detect any incoming data.
ChatGPT tells me that when uploading to RAM (stub upload), the control of TX is transferred to the stub correctly, but the RX is often disabled for some reason. Problem is that ChatGPT were not able to help me re-enable RX without screwing up the entire UART0 controller.
Does any of you know what registers I need to contact and what bits I need to clear/set to get my RX pin to work properly?
Kind regards,
Geir Moen