Problem uploading to ESP32-CAM with ESP-Prog

Things appear to be better. Here is the log when trying to start debugging. There appear to be a number of issues, but I don’t know what they mean:

Processing esp32_snapshotcam (platform: espressif32; board: esp32cam; framework: arduino)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32cam.html
PLATFORM: Espressif 32 (4.3.0) > AI Thinker ESP32-CAM
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (cmsis-dap, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 @ 3.20003.0 (2.0.3)
 - tool-esptoolpy @ 1.30300.0 (3.3.0)
 - tool-openocd-esp32 @ 2.1100.20220411 (11.0)
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
Converting ESP32-snapshot.ino
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 32 compatible libraries
Scanning dependencies...
Dependency Graph
|-- ArduinoOTA @ 2.0.0
|   |-- Update @ 2.0.0
|   |-- WiFi @ 2.0.0
|   |-- ESPmDNS @ 2.0.0
|   |   |-- WiFi @ 2.0.0
|-- DNSServer @ 2.0.0
|   |-- WiFi @ 2.0.0
|-- ESPmDNS @ 2.0.0
|   |-- WiFi @ 2.0.0
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- SPIFFS @ 2.0.0
|   |-- FS @ 2.0.0
Building in debug mode
Compiling .pio\build\esp32_snapshotcam\src\Docs\linearled\linearled.c.o
Compiling .pio\build\esp32_snapshotcam\src\ESP32-snapshot.ino.cpp.o
Compiling .pio\build\esp32_snapshotcam\src\app_httpd.cpp.o
Compiling .pio\build\esp32_snapshotcam\src\src\jsonlib\jsonlib.cpp.o
Compiling .pio\build\esp32_snapshotcam\src\src\parsebytes.cpp.o
Compiling .pio\build\esp32_snapshotcam\src\storage.cpp.o
Generating partitions .pio\build\esp32_snapshotcam\partitions.bin
Compiling .pio\build\esp32_snapshotcam\libf3a\Update\HttpsOTAUpdate.cpp.o
Compiling .pio\build\esp32_snapshotcam\libf3a\Update\Updater.cpp.o
Compiling .pio\build\esp32_snapshotcam\libd31\WiFi\WiFi.cpp.o
Compiling .pio\build\esp32_snapshotcam\libd31\WiFi\WiFiAP.cpp.o
Compiling .pio\build\esp32_snapshotcam\libd31\WiFi\WiFiClient.cpp.o
Compiling .pio\build\esp32_snapshotcam\libd31\WiFi\WiFiGeneric.cpp.o
Compiling .pio\build\esp32_snapshotcam\libd31\WiFi\WiFiMulti.cpp.o
Compiling .pio\build\esp32_snapshotcam\libd31\WiFi\WiFiSTA.cpp.o
Compiling .pio\build\esp32_snapshotcam\libd31\WiFi\WiFiScan.cpp.o
Compiling .pio\build\esp32_snapshotcam\libd31\WiFi\WiFiServer.cpp.o
Compiling .pio\build\esp32_snapshotcam\libd31\WiFi\WiFiUdp.cpp.o
Compiling .pio\build\esp32_snapshotcam\libb4f\ESPmDNS\ESPmDNS.cpp.o
Compiling .pio\build\esp32_snapshotcam\lib963\ArduinoOTA\ArduinoOTA.cpp.o
Compiling .pio\build\esp32_snapshotcam\lib440\DNSServer\DNSServer.cpp.o
Compiling .pio\build\esp32_snapshotcam\libfd6\FS\FS.cpp.o
Archiving .pio\build\esp32_snapshotcam\libf3a\libUpdate.a
Compiling .pio\build\esp32_snapshotcam\libfd6\FS\vfs_api.cpp.o
Indexing .pio\build\esp32_snapshotcam\libf3a\libUpdate.a
Compiling .pio\build\esp32_snapshotcam\libe11\SPIFFS\SPIFFS.cpp.o
Archiving .pio\build\esp32_snapshotcam\libFrameworkArduinoVariant.a
Indexing .pio\build\esp32_snapshotcam\libFrameworkArduinoVariant.a
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\Esp.cpp.o
Archiving .pio\build\esp32_snapshotcam\libb4f\libESPmDNS.a
Archiving .pio\build\esp32_snapshotcam\libd31\libWiFi.a
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\FirmwareMSC.cpp.o
Indexing .pio\build\esp32_snapshotcam\libb4f\libESPmDNS.a
Indexing .pio\build\esp32_snapshotcam\libd31\libWiFi.a
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\FunctionalInterrupt.cpp.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\HWCDC.cpp.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\HardwareSerial.cpp.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\IPAddress.cpp.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\IPv6Address.cpp.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\MD5Builder.cpp.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\Print.cpp.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\Stream.cpp.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\StreamString.cpp.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\Tone.cpp.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\USB.cpp.o
Archiving .pio\build\esp32_snapshotcam\lib440\libDNSServer.a
Indexing .pio\build\esp32_snapshotcam\lib440\libDNSServer.a
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\USBCDC.cpp.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\USBMSC.cpp.o
Archiving .pio\build\esp32_snapshotcam\lib963\libArduinoOTA.a
Indexing .pio\build\esp32_snapshotcam\lib963\libArduinoOTA.a
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\WMath.cpp.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\WString.cpp.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\base64.cpp.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\cbuf.cpp.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\esp32-hal-adc.c.o
Archiving .pio\build\esp32_snapshotcam\libfd6\libFS.a
Indexing .pio\build\esp32_snapshotcam\libfd6\libFS.a
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\esp32-hal-bt.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\esp32-hal-cpu.c.o
Archiving .pio\build\esp32_snapshotcam\libe11\libSPIFFS.a
Indexing .pio\build\esp32_snapshotcam\libe11\libSPIFFS.a
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\esp32-hal-dac.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\esp32-hal-gpio.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\esp32-hal-i2c-slave.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\esp32-hal-i2c.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\esp32-hal-ledc.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\esp32-hal-matrix.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\esp32-hal-misc.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\esp32-hal-psram.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\esp32-hal-rmt.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\esp32-hal-sigmadelta.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\esp32-hal-spi.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\esp32-hal-time.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\esp32-hal-timer.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\esp32-hal-tinyusb.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\esp32-hal-touch.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\esp32-hal-uart.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\firmware_msc_fat.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\libb64\cdecode.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\libb64\cencode.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\main.cpp.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\stdlib_noniso.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\wiring_pulse.c.o
Compiling .pio\build\esp32_snapshotcam\FrameworkArduino\wiring_shift.c.o
Archiving .pio\build\esp32_snapshotcam\libFrameworkArduino.a
Indexing .pio\build\esp32_snapshotcam\libFrameworkArduino.a
Linking .pio\build\esp32_snapshotcam\firmware.elf
Retrieving maximum program size .pio\build\esp32_snapshotcam\firmware.elf
Checking size .pio\build\esp32_snapshotcam\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [==        ]  17.9% (used 58552 bytes from 327680 bytes)
Flash: [===       ]  32.7% (used 1028065 bytes from 3145728 bytes)
Building .pio\build\esp32_snapshotcam\firmware.bin
esptool.py v3.3
Creating esp32 image...
Merged 25 ELF sections
Successfully created esp32 image.
========================= [SUCCESS] Took 20.30 seconds =========================
undefinedC:\Users\sidpr\.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch3\bin\xtensa-esp32-elf-gdb.exe: warning: Couldn't determine a path for the index cache directory.
Reading symbols from d:\DataRoot\Projects\Espressif\ESP32-snapshot\.pio\build\esp32_snapshotcam\firmware.elf...
PlatformIO Unified Debugger -> https://bit.ly/pio-debug
PlatformIO: debug_tool = esp-prog
PlatformIO: Initializing remote target...
Open On-Chip Debugger  v0.11.0-esp32-20220411 (2022-04-11-08:48)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
adapter speed: 20000 kHz

WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release.
DEPRECATED! use 'adapter speed' not 'adapter_khz'
adapter speed: 5000 kHz

Info : tcl server disabled
Info : telnet server disabled
Info : clock speed 5000 kHz
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : starting gdb server for esp32.cpu0 on pipe
Info : accepting 'gdb' connection from pipe
Info : esp32.cpu0: Target halted, PC=0x400093D0, debug_reason=00000000
Info : Set GDB target to 'esp32.cpu0'
Info : esp32.cpu1: Target halted, PC=0x400076E2, debug_reason=00000000
Warn : No symbols for FreeRTOS!
Info : esp32.cpu0: Target halted, PC=0x4009260E, debug_reason=00000001
Error: Failed to get flash maps (4294967295)!
Warn : Failed to get flash mappings (-4)!
Info : esp32.cpu0: Target halted, PC=0x4009260E, debug_reason=00000001
Info : esp32.cpu0: Target halted, PC=0x4009260E, debug_reason=00000001
Info : Auto-detected flash bank 'esp32.cpu0.flash' size 4096 KB
Info : Using flash bank 'esp32.cpu0.flash' size 4096 KB
Info : esp32.cpu0: Target halted, PC=0x4009260E, debug_reason=00000001
Error: Failed to get flash maps (4294967295)!
Warn : Failed to get flash mappings (-4)!
Info : esp32.cpu0: Target halted, PC=0x4009260E, debug_reason=00000001
Info : Using flash bank 'esp32.cpu0.irom' size 0 KB
Info : esp32.cpu0: Target halted, PC=0x4009260E, debug_reason=00000001
Error: Failed to get flash maps (4294967295)!
Warn : Failed to get flash mappings (-4)!
Info : esp32.cpu0: Target halted, PC=0x4009260E, debug_reason=00000001
Info : Using flash bank 'esp32.cpu0.drom' size 0 KB
Info : New GDB Connection: 1, Target esp32.cpu0, state: halted
0x400093d0 in ?? ()
Loading section .flash.appdesc, size 0x100 lma 0x3f400020
Warn : address 0x3f400020 not writable
Loading section .flash.rodata, size 0x38624 lma 0x3f400120
Warn : address 0x3f400120 not writable
.pioinit:12: Error in sourced command file:
Load failed
.pioinit:12: Error in sourced command file:
Load failed