Earlier this week, I began experimenting with V4.0 of the IDF. It was causing some strange behavior (explained below) so I went back to V3.3, only to discover that the problem seems to persist. I then tried running a hello world example, and the problem occurs there, so at least it's not my application code.
In an attempt to restore a working environment, I've:
1. deleted /esp-idf and re-cloned it from github.
2. deleted the toolchain and re-installed per the instructions on the get started page for V3.3.
3. deleted the app's build directory
4. deleted the app's sdkconfig and regenerated it
5. erased the flash on the board
In short, I don't know what else to do in an attempt to return to a "known" environment. If I've missed a step, I hope someone will tell me.
Now, as for the problem: I'm unable to redirect application output to UART1.
When my menuconfig->component config-> ESP32-specific->UART for console output is set to Default: UART0, TX=GPIO1, RX=GPIO3, and then do a "make flash monitor," my output is fine (including just an excerpt):
Code: Select all
I (256) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (263) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (269) heap_init: At 4008842C len 00017BD4 (94 KiB): IRAM
I (275) cpu_start: Pro cpu start user code
I (294) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
Hello world!
This is ESP32 chip with 2 CPU cores, WiFi/BT/BLE, silicon revision 1, 4MB external flash
Restarting in 10 seconds...
Restarting in 9 seconds...
Restarting in 8 seconds...
Restarting in 7 seconds...
and do a "make flash," (I don't get any application output. It stops at this line:
And after a little more than 10 seconds (the delay built into the hello world example) it repeats.I (232) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (239) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (245) heap_init: At 4008842C len 00017BD4 (94 KiB): IRAM
I (251) cpu_start: Pro cpu start user code
SO:
It's as though the application seems to be running fine but it's just not putting out anything to the console. And...this worked fine until I began monkeying with different versions of the IDF. I'm sure I've screwed something up, but as indicated above, I can't think of anything else to restore. Any suggestions?
Thanks...this is driving me absolutely crazy...