Blink example not running?

bradcb212
Posts: 2
Joined: Fri Oct 01, 2021 6:10 pm

Blink example not running?

Postby bradcb212 » Fri Oct 01, 2021 6:23 pm

Attempting to run the blink example.

Hardware: ESP32-DevKitC-S1 (ESP32-SOLO-1 on DevKitC)

I'm following the documentation found here: https://github.com/espressif/vscode-esp ... OARDING.md

I've ran into three issues.
1. Expired certificate issue, ended up modifying my date/time to get installation to finish.
2. After flashing the unit for the first time it appeared to be watchdog resetting continuously. I disabled the bootloader watchdog in the SDK configuration editor.
3. Now I seem to be able to flash and monitor the device fine, but there's no evidence my application code runs.

3a. I noticed that DevKitC doesn't have an on-board LED, so I removed the lines that configure/toggle GPIO5.
3b. No application code printf()'s are making it to the serial monitor.

My application code:
  1. void app_main(void)
  2. {
  3.     /* Configure the IOMUX register for pad BLINK_GPIO (some pads are
  4.        muxed to GPIO on reset already, but some default to other
  5.        functions and need to be switched to GPIO. Consult the
  6.        Technical Reference for a list of pads and their default
  7.        functions.)
  8.     */
  9.     //gpio_reset_pin(BLINK_GPIO);
  10.     /* Set the GPIO as a push/pull output */
  11.     //gpio_set_direction(BLINK_GPIO, GPIO_MODE_OUTPUT);
  12.     while(1) {
  13.         /* Blink off (output low) */
  14.         printf("Turning off the LED\n");
  15.         //gpio_set_level(BLINK_GPIO, 0);
  16.         vTaskDelay(1000 / portTICK_PERIOD_MS);
  17.         /* Blink on (output high) */
  18.         printf("Turning on the LED\n");
  19.         //gpio_set_level(BLINK_GPIO, 1);
  20.         vTaskDelay(1000 / portTICK_PERIOD_MS);
  21.     }
  22. }
Flash Terminal:

Code: Select all

> Executing task: C:\Users\bradc\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe C:\Users\bradc\esp\esp-idf\components\esptool_py\esptool\esptool.py -p COM4 -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_freq 40m --flash_size detect 0x10000 blink.bin 0x1000 bootloader/bootloader.bin 0x8000 partition_table/partition-table.bin <

esptool.py v3.1-dev
Serial port COM4
Connecting........___
Chip is ESP32-S0WD (revision 1)
Features: WiFi, BT, Single Core, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: a8:03:2a:8c:4b:d8
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00010000 to 0x00037fff...
Flash will be erased from 0x00001000 to 0x00006fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 160240 bytes to 83883...
Wrote 160240 bytes (83883 compressed) at 0x00010000 in 2.3 seconds (effective 548.1 kbit/s)...
Hash of data verified.
Flash params set to 0x0220
Compressed 23984 bytes to 14905...
Wrote 23984 bytes (14905 compressed) at 0x00001000 in 0.6 seconds (effective 298.0 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 462.7 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

Terminal will be reused by tasks, press any key to close it.

Code: Select all

Serial Monitor:

PS C:\Users\bradc\Documents\PersonalProjects\esp32\examples\blink> C:\Users\bradc\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe C:\Users\bradc\esp\esp-idf\tools\idf.py -p COM4 monitor
Executing action: monitor
Running idf_monitor in directory c:\users\bradc\documents\personalprojects\esp32\examples\blink
Executing "C:\Users\bradc\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe C:\Users\bradc\esp\esp-idf\tools/idf_monitor.py -p COM4 -b 115200 --toolchain-prefix xtensa-esp32-elf- c:\users\bradc\documents\personalprojects\esp32\examples\blink\build\blink.elf -m 'C:\Users\bradc\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe' 'C:\Users\bradc\esp\esp-idf\tools\idf.py' '-p' 'COM4'"...
--- WARNING: GDB cannot open serial ports accessed as COMx
--- Using \\.\COM4 instead...
--- idf_monitor on \\.\COM4 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:7000
load:0x40078000,len:13248
load:0x40080400,len:3648
0x40080400: _init at ??:?

entry 0x40080678
I (27) boot: ESP-IDF v4.3.1-dirty 2nd stage bootloader
I (27) boot: compile time 10:39:44
I (27) boot: chip revision: 1
I (30) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (37) boot.esp32: SPI Speed      : 40MHz
I (42) boot.esp32: SPI Mode       : DIO
I (47) boot.esp32: SPI Flash Size : 4MB
I (51) boot: Enabling RNG early entropy source...
I (57) boot: Partition Table:
I (60) boot: ## Label            Usage          Type ST Offset   Length
I (67) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (75) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (82) boot:  2 factory          factory app      00 00 00010000 00100000
I (90) boot: End of partition table
I (94) boot_comm: chip revision: 1, min. application chip revision: 0
I (101) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=0680ch ( 26636) map
I (119) esp_image: segment 1: paddr=00016834 vaddr=3ffb0000 size=028d4h ( 10452) load
I (124) esp_image: segment 2: paddr=00019110 vaddr=40080000 size=06f08h ( 28424) load
I (138) esp_image: segment 3: paddr=00020020 vaddr=400d0020 size=1343ch ( 78908) map
I (167) esp_image: segment 4: paddr=00033464 vaddr=40086f08 size=03d44h ( 15684) load
I (174) esp_image: segment 5: paddr=000371b0 vaddr=50000000 size=00010h (    16) load
I (180) boot: Loaded app from partition at offset 0x10000
I (180) boot: Disabling RNG early entropy source...
I (196) cpu_start: Pro cpu up.
Any ideas what I'm doing wrong?

Moderators Note: Added code boxes

ESP_Dazz
Posts: 308
Joined: Fri Jun 02, 2017 6:50 am

Re: Blink example not running?

Postby ESP_Dazz » Sat Oct 09, 2021 9:00 am

According to your flash and monitor log, it seems like the application is flashing fine, and the blink APP startup also runs. Could you post a copy of your sdkconfig, maybe it's something to do with the UART baudrate.

jmnelson
Posts: 6
Joined: Wed Oct 20, 2021 5:17 pm

Re: Blink example not running?

Postby jmnelson » Thu Oct 21, 2021 4:18 pm

I'm experiencing similar issue(s), and it's happening to me across all the examples.
Im working with the ESP32-DevKitM-1 which has the ESP32-MINI-1 module

I go into the example directory (blink in this case, but got the same out of hello-world, softAP and others as well0
I command idf.py set-target esp32 (to set the target to esp32)
I command idf.py menuconfig
(to set the mbedTLS certificate bundle to use only the most common certificates to work around a bad certificate issue0
I command idf.py build
I command idf.py -p com3 flash monitor to program the device and watch what the console produces.
All this works with only one thing coming out of the monitor as to what's wrong.
I see the lines
load:0x40080400,len:3716
0x40080400: _init at ??:?

The bootloadeer status text shows up, it waits 9 seconds, and the watchdog causes a reboot.

It leads me to think I'm missing a build step or something. I mean these are unmodified examples that are failing.
The baud rate(s) are 115200, or otherwise moot, considering that it's a USB Virtual com port.

I have to be missing something Any ideas as to what?

Here's the command shell log of the whole process starting just after going into its directory.
[Codebox]
C:\esp-idf\examples\get-started\blink>idf.py set-target esp32
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'c:\esp-idf\examples\get-started\blink\build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory c:\esp-idf\examples\get-started\blink\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 c:\esp-idf\examples\get-started\blink"...
-- Found Git: C:/Users/jnelson/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1")
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/jnelson/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/jnelson/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/jnelson/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Users/jnelson/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: C:/Users/jnelson/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file C:/esp-idf/examples/get-started/blink/sdkconfig
Loading defaults file C:/esp-idf/examples/get-started/blink/sdkconfig.defaults...
-- Found PythonInterp: C:/Users/jnelson/.espressif/python_env/idf4.3_py3.8_env/Scripts/python.exe (found version "3.8.7")
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- App "blink" version: v4.3.1
-- Adding linker script C:/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script C:/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script C:/esp-idf/examples/get-started/blink/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script C:/esp-idf/components/esp32/ld/esp32.project.ld.in
-- Adding linker script C:/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor cmock coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_local_ctrl esp_netif esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap idf_test jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ulp unity vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/esp-idf/components/app_trace C:/esp-idf/components/app_update C:/esp-idf/components/asio C:/esp-idf/components/bootloader C:/esp-idf/components/bootloader_support C:/esp-idf/components/bt C:/esp-idf/components/cbor C:/esp-idf/components/cmock C:/esp-idf/components/coap C:/esp-idf/components/console C:/esp-idf/components/cxx C:/esp-idf/components/driver C:/esp-idf/components/efuse C:/esp-idf/components/esp-tls C:/esp-idf/components/esp32 C:/esp-idf/components/esp_adc_cal C:/esp-idf/components/esp_common C:/esp-idf/components/esp_eth C:/esp-idf/components/esp_event C:/esp-idf/components/esp_gdbstub C:/esp-idf/components/esp_hid C:/esp-idf/components/esp_http_client C:/esp-idf/components/esp_http_server C:/esp-idf/components/esp_https_ota C:/esp-idf/components/esp_https_server C:/esp-idf/components/esp_hw_support C:/esp-idf/components/esp_ipc C:/esp-idf/components/esp_local_ctrl C:/esp-idf/components/esp_netif C:/esp-idf/components/esp_pm C:/esp-idf/components/esp_ringbuf C:/esp-idf/components/esp_rom C:/esp-idf/components/esp_serial_slave_link C:/esp-idf/components/esp_system C:/esp-idf/components/esp_timer C:/esp-idf/components/esp_websocket_client C:/esp-idf/components/esp_wifi C:/esp-idf/components/espcoredump C:/esp-idf/components/esptool_py C:/esp-idf/components/expat C:/esp-idf/components/fatfs C:/esp-idf/components/freemodbus C:/esp-idf/components/freertos C:/esp-idf/components/hal C:/esp-idf/components/heap C:/esp-idf/components/idf_test C:/esp-idf/components/jsmn C:/esp-idf/components/json C:/esp-idf/components/libsodium C:/esp-idf/components/log C:/esp-idf/components/lwip C:/esp-idf/examples/get-started/blink/main C:/esp-idf/components/mbedtls C:/esp-idf/components/mdns C:/esp-idf/components/mqtt C:/esp-idf/components/newlib C:/esp-idf/components/nghttp C:/esp-idf/components/nvs_flash C:/esp-idf/components/openssl C:/esp-idf/components/partition_table C:/esp-idf/components/perfmon C:/esp-idf/components/protobuf-c C:/esp-idf/components/protocomm C:/esp-idf/components/pthread C:/esp-idf/components/sdmmc C:/esp-idf/components/soc C:/esp-idf/components/spi_flash C:/esp-idf/components/spiffs C:/esp-idf/components/tcp_transport C:/esp-idf/components/tcpip_adapter C:/esp-idf/components/tinyusb C:/esp-idf/components/ulp C:/esp-idf/components/unity C:/esp-idf/components/vfs C:/esp-idf/components/wear_levelling C:/esp-idf/components/wifi_provisioning C:/esp-idf/components/wpa_supplicant C:/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/esp-idf/examples/get-started/blink/build

C:\esp-idf\examples\get-started\blink>idf.py menuconfig
Executing action: menuconfig
Running ninja in directory c:\esp-idf\examples\get-started\blink\build
Executing "ninja menuconfig"...
[0/1] cmd.exe /C "cd /D C:\esp-idf\examples\get-started\bl...ut config C:/esp-idf/examples/get-started/blink/sdkconfig"
Loading defaults file C:/esp-idf/examples/get-started/blink/sdkconfig.defaults...
C:/esp-idf/Kconfig:14: warning: IDF_ENV_FPGA has 'option env="IDF_ENV_FPGA"', but the environment variable IDF_ENV_FPGA is not set
Loaded configuration 'C:/esp-idf/examples/get-started/blink/sdkconfig'
No changes to save (for 'C:/esp-idf/examples/get-started/blink/sdkconfig')
Loading defaults file C:/esp-idf/examples/get-started/blink/sdkconfig.defaults...

C:\esp-idf\examples\get-started\blink>idf.py build
Executing action: all (aliases: build)
Running ninja in directory c:\esp-idf\examples\get-started\blink\build
Executing "ninja all"...
[0/1] Re-running CMake...
-- ccache will be used for faster recompilation
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file C:/esp-idf/examples/get-started/blink/sdkconfig
Loading defaults file C:/esp-idf/examples/get-started/blink/sdkconfig.defaults...
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- App "blink" version: v4.3.1
-- Adding linker script C:/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script C:/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script C:/esp-idf/examples/get-started/blink/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script C:/esp-idf/components/esp32/ld/esp32.project.ld.in
-- Adding linker script C:/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor cmock coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_local_ctrl esp_netif esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap idf_test jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ulp unity vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/esp-idf/components/app_trace C:/esp-idf/components/app_update C:/esp-idf/components/asio C:/esp-idf/components/bootloader C:/esp-idf/components/bootloader_support C:/esp-idf/components/bt C:/esp-idf/components/cbor C:/esp-idf/components/cmock C:/esp-idf/components/coap C:/esp-idf/components/console C:/esp-idf/components/cxx C:/esp-idf/components/driver C:/esp-idf/components/efuse C:/esp-idf/components/esp-tls C:/esp-idf/components/esp32 C:/esp-idf/components/esp_adc_cal C:/esp-idf/components/esp_common C:/esp-idf/components/esp_eth C:/esp-idf/components/esp_event C:/esp-idf/components/esp_gdbstub C:/esp-idf/components/esp_hid C:/esp-idf/components/esp_http_client C:/esp-idf/components/esp_http_server C:/esp-idf/components/esp_https_ota C:/esp-idf/components/esp_https_server C:/esp-idf/components/esp_hw_support C:/esp-idf/components/esp_ipc C:/esp-idf/components/esp_local_ctrl C:/esp-idf/components/esp_netif C:/esp-idf/components/esp_pm C:/esp-idf/components/esp_ringbuf C:/esp-idf/components/esp_rom C:/esp-idf/components/esp_serial_slave_link C:/esp-idf/components/esp_system C:/esp-idf/components/esp_timer C:/esp-idf/components/esp_websocket_client C:/esp-idf/components/esp_wifi C:/esp-idf/components/espcoredump C:/esp-idf/components/esptool_py C:/esp-idf/components/expat C:/esp-idf/components/fatfs C:/esp-idf/components/freemodbus C:/esp-idf/components/freertos C:/esp-idf/components/hal C:/esp-idf/components/heap C:/esp-idf/components/idf_test C:/esp-idf/components/jsmn C:/esp-idf/components/json C:/esp-idf/components/libsodium C:/esp-idf/components/log C:/esp-idf/components/lwip C:/esp-idf/examples/get-started/blink/main C:/esp-idf/components/mbedtls C:/esp-idf/components/mdns C:/esp-idf/components/mqtt C:/esp-idf/components/newlib C:/esp-idf/components/nghttp C:/esp-idf/components/nvs_flash C:/esp-idf/components/openssl C:/esp-idf/components/partition_table C:/esp-idf/components/perfmon C:/esp-idf/components/protobuf-c C:/esp-idf/components/protocomm C:/esp-idf/components/pthread C:/esp-idf/components/sdmmc C:/esp-idf/components/soc C:/esp-idf/components/spi_flash C:/esp-idf/components/spiffs C:/esp-idf/components/tcp_transport C:/esp-idf/components/tcpip_adapter C:/esp-idf/components/tinyusb C:/esp-idf/components/ulp C:/esp-idf/components/unity C:/esp-idf/components/vfs C:/esp-idf/components/wear_levelling C:/esp-idf/components/wifi_provisioning C:/esp-idf/components/wpa_supplicant C:/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/esp-idf/examples/get-started/blink/build
[7/966] Generating ../../partition_table/partition-table.bin
Partition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
*******************************************************************************
[538/966] Performing configure step for 'bootloader'
-- Found Git: C:/Users/jnelson/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/jnelson/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/jnelson/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/jnelson/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Users/jnelson/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: C:/Users/jnelson/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file C:/esp-idf/examples/get-started/blink/sdkconfig
-- Adding linker script C:/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script C:/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script C:/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.ld
-- Adding linker script C:/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp32 esp_common esp_hw_support esp_rom esp_system esptool_py hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: C:/esp-idf/components/bootloader C:/esp-idf/components/bootloader_support C:/esp-idf/components/efuse C:/esp-idf/components/esp32 C:/esp-idf/components/esp_common C:/esp-idf/components/esp_hw_support C:/esp-idf/components/esp_rom C:/esp-idf/components/esp_system C:/esp-idf/components/esptool_py C:/esp-idf/components/hal C:/esp-idf/components/log C:/esp-idf/components/bootloader/subproject/main C:/esp-idf/components/bootloader/subproject/components/micro-ecc C:/esp-idf/components/newlib C:/esp-idf/components/partition_table C:/esp-idf/components/soc C:/esp-idf/components/spi_flash C:/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/esp-idf/examples/get-started/blink/build/bootloader
[598/966] Performing build step for 'bootloader'
[1/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/soc_include_legacy_warn.c.obj
[2/86] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mpu_hal.c.obj
[3/86] Generating project_elf_src_esp32.c
[4/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_panic.c.obj
[5/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/memory_layout_utils.c.obj
[6/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_sha.c.obj
[7/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/lldesc.c.obj
[8/86] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/wdt_hal_iram.c.obj
[9/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/interrupts.c.obj
[10/86] Building C object CMakeFiles/bootloader.elf.dir/project_elf_src_esp32.c.obj
[11/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/flash_encrypt.c.obj
[12/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_esp32.c.obj
[13/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/dac_periph.c.obj
[14/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/i2s_periph.c.obj
[15/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/i2c_periph.c.obj
[16/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/ledc_periph.c.obj
[17/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/gpio_periph.c.obj
[18/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sdmmc_periph.c.obj
[19/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sigmadelta_periph.c.obj
[20/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/pcnt_periph.c.obj
[21/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/adc_periph.c.obj
[22/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sdio_slave_periph.c.obj
[23/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rtc_io_periph.c.obj
[24/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rmt_periph.c.obj
[25/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/soc_memory_layout.c.obj
[26/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/touch_sensor_periph.c.obj
[27/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/timer_periph.c.obj
[28/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/uart_periph.c.obj
[29/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/spi_periph.c.obj
[30/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random.c.obj
[31/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_mem.c.obj
[32/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_init.c.obj
[33/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash.c.obj
[34/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random_esp32.c.obj
[35/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_utility.c.obj
[36/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console_loader.c.obj
[37/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common.c.obj
[38/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common_loader.c.obj
[39/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_efuse_esp32.c.obj
[40/86] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/esp32/spi_flash_rom_patch.c.obj
[41/86] Building C object esp-idf/micro-ecc/CMakeFiles/__idf_micro-ecc.dir/uECC_verify_antifault.c.obj
[42/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/secure_boot.c.obj
[43/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_loader.c.obj
[44/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console.c.obj
[45/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_encrypt.c.obj
[46/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_init.c.obj
[47/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_qio_mode.c.obj
[48/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_partitions.c.obj
[49/86] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp32/esp_efuse_fields.c.obj
[50/86] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp32/esp_efuse_utility.c.obj
[51/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash_config_esp32.c.obj
[52/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp_image_format.c.obj
[53/86] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp32/esp_efuse_api.c.obj
[54/86] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32/esp_efuse_table.c.obj
[55/86] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api.c.obj
[56/86] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/compare_set.c.obj
[57/86] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_fields.c.obj
[58/86] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_utility.c.obj
[59/86] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_init.c.obj
[60/86] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/cpu_util.c.obj
[61/86] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_clk_init.c.obj
[62/86] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_crc.c.obj
[63/86] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_pm.c.obj
[64/86] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_clk.c.obj
[65/86] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_time.c.obj
[66/86] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_sys.c.obj
[67/86] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_uart.c.obj
[68/86] Building ASM object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_longjmp.S.obj
[69/86] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_wdt.c.obj
[70/86] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_noos.c.obj
[71/86] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_buffers.c.obj
[72/86] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/bootloader_start.c.obj
[73/86] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_sleep.c.obj
[74/86] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log.c.obj
[75/86] Linking C static library esp-idf\log\liblog.a
[76/86] Linking C static library esp-idf\esp_rom\libesp_rom.a
[77/86] Linking C static library esp-idf\esp_hw_support\libesp_hw_support.a
[78/86] Linking C static library esp-idf\efuse\libefuse.a
[79/86] Linking C static library esp-idf\bootloader_support\libbootloader_support.a
[80/86] Linking C static library esp-idf\spi_flash\libspi_flash.a
[81/86] Linking C static library esp-idf\micro-ecc\libmicro-ecc.a
[82/86] Linking C static library esp-idf\soc\libsoc.a
[83/86] Linking C static library esp-idf\hal\libhal.a
[84/86] Linking C static library esp-idf\main\libmain.a
[85/86] Linking C executable bootloader.elf
[86/86] Generating binary image from built executable
esptool.py v3.1-dev
Merged 1 ELF section
Generated C:/esp-idf/examples/get-started/blink/build/bootloader/bootloader.bin
[966/966] Generating binary image from built executable
esptool.py v3.1-dev
Merged 2 ELF sections
Generated C:/esp-idf/examples/get-started/blink/build/blink.bin

Project build complete. To flash, run this command:
C:\Users\jnelson\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe ..\..\..\components\esptool_py\esptool\esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 build\bootloader\bootloader.bin 0x8000 build\partition_table\partition-table.bin 0x10000 build\blink.bin
or run 'idf.py -p (PORT) flash'

C:\esp-idf\examples\get-started\blink>idf.py -p com3 flash monitor
Executing action: flash
Running ninja in directory c:\esp-idf\examples\get-started\blink\build
Executing "ninja flash"...
[1/4] Performing build step for 'bootloader'
ninja: no work to do.
[1/2] cmd.exe /C "cd /D C:\esp-idf\components\esptool_py &...-P C:/esp-idf/components/esptool_py/run_serial_tool.cmake"
esptool.py esp32 -p com3 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 blink.bin
esptool.py v3.1-dev
Serial port com3
Connecting.....
Chip is ESP32-U4WDH (revision 3)
Features: WiFi, BT, Single Core, Embedded Flash, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 3c:61:05:5b:7a:d8
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x00001000 to 0x00007fff...
Flash will be erased from 0x00010000 to 0x00039fff...
Compressed 3072 bytes to 103...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 472.6 kbit/s)...
Hash of data verified.
Compressed 25008 bytes to 15434...
Writing at 0x00001000... (100 %)
Wrote 25008 bytes (15434 compressed) at 0x00001000 in 0.7 seconds (effective 288.6 kbit/s)...
Hash of data verified.
Compressed 168784 bytes to 87488...
Writing at 0x00010000... (16 %)
Writing at 0x0001b3ee... (33 %)
Writing at 0x00020bc8... (50 %)
Writing at 0x000267df... (66 %)
Writing at 0x0002fde6... (83 %)
Writing at 0x0003739e... (100 %)
Wrote 168784 bytes (87488 compressed) at 0x00010000 in 2.4 seconds (effective 556.3 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Executing action: monitor
Running idf_monitor in directory c:\esp-idf\examples\get-started\blink
Executing "C:\Users\jnelson\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe C:\esp-idf\tools/idf_monitor.py -p com3 -b 115200 --toolchain-prefix xtensa-esp32-elf- c:\esp-idf\examples\get-started\blink\build\blink.elf -m 'C:\Users\jnelson\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe' 'C:/esp-idf/\tools\idf.py' '-p' 'com3'"...
--- idf_monitor on com3 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6896
load:0x40078000,len:14308
ho 0 tail 12 room 4
load:0x40080400,len:3716
0x40080400: _init at ??:?

entry 0x40080680
I (30) boot: ESP-IDF v4.3.1 2nd stage bootloader
I (30) boot: compile time 11:51:28
I (30) boot: chip revision: 3
I (33) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (40) boot.esp32: SPI Speed : 40MHz
I (44) boot.esp32: SPI Mode : DIO
I (49) boot.esp32: SPI Flash Size : 2MB
I (53) boot: Enabling RNG early entropy source...
I (59) boot: Partition Table:
I (62) boot: ## Label Usage Type ST Offset Length
I (70) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (77) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (85) boot: 2 factory factory app 00 00 00010000 00100000
I (92) boot: End of partition table
I (96) boot_comm: chip revision: 3, min. application chip revision: 0
I (103) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=0764ch ( 30284) map
I (123) esp_image: segment 1: paddr=00017674 vaddr=3ffb0000 size=028c4h ( 10436) load
I (127) esp_image: segment 2: paddr=00019f40 vaddr=40080000 size=060d8h ( 24792) load
I (139) esp_image: segment 3: paddr=00020020 vaddr=400d0020 size=147b4h ( 83892) map
I (170) esp_image: segment 4: paddr=000347dc vaddr=400860d8 size=04b38h ( 19256) load
I (178) esp_image: segment 5: paddr=0003931c vaddr=50000000 size=00010h ( 16) load
I (184) boot: Loaded app from partition at offset 0x10000
I (184) boot: Disabling RNG early entropy source...
I (198) cpu_start: Pro cpu up.
ets Jul 29 2019 12:21:46

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6896
load:0x40078000,len:14308
ho 0 tail 12 room 4
load:0x40080400,len:3716
0x40080400: _init at ??:?

entry 0x40080680
I (30) boot: ESP-IDF v4.3.1 2nd stage bootloader
I (30) boot: compile time 11:51:28
I (30) boot: chip revision: 3
I (33) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (40) boot.esp32: SPI Speed : 40MHz
I (45) boot.esp32: SPI Mode : DIO
I (49) boot.esp32: SPI Flash Size : 2MB
I (54) boot: Enabling RNG early entropy source...
I (59) boot: Partition Table:
I (63) boot: ## Label Usage Type ST Offset Length
I (70) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (78) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (85) boot: 2 factory factory app 00 00 00010000 00100000
I (92) boot: End of partition table
I (97) boot_comm: chip revision: 3, min. application chip revision: 0
I (104) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=0764ch ( 30284) map
I (123) esp_image: segment 1: paddr=00017674 vaddr=3ffb0000 size=028c4h ( 10436) load
I (128) esp_image: segment 2: paddr=00019f40 vaddr=40080000 size=060d8h ( 24792) load
I (139) esp_image: segment 3: paddr=00020020 vaddr=400d0020 size=147b4h ( 83892) map
I (170) esp_image: segment 4: paddr=000347dc vaddr=400860d8 size=04b38h ( 19256) load
I (178) esp_image: segment 5: paddr=0003931c vaddr=50000000 size=00010h ( 16) load
I (184) boot: Loaded app from partition at offset 0x10000
I (184) boot: Disabling RNG early entropy source...
I (199) cpu_start: Pro cpu up.

Done

C:\esp-idf\examples\get-started\blink>
[/Codebox]

filo_gr
Posts: 109
Joined: Wed Jul 28, 2021 12:25 pm
Location: Italy

Re: Blink example not running?

Postby filo_gr » Fri Oct 22, 2021 12:22 pm

To avoid the Python certificate error you should try to uncheck the option inside: Menuconfig -> Certificate Bundle -> remove the check from "Enable trusted root certificate bundle".
Filippo

jmnelson
Posts: 6
Joined: Wed Oct 20, 2021 5:17 pm

Re: Blink example not running?

Postby jmnelson » Fri Oct 22, 2021 1:01 pm

filo_gr wrote:
Fri Oct 22, 2021 12:22 pm
To avoid the Python certificate error you should try to uncheck the option inside: Menuconfig -> Certificate Bundle -> remove the check from "Enable trusted root certificate bundle".
I may have to try that again. I must have set something else a little differently, because when I thought I'd done that, it stopped at the same point in the build and threw a fault about not having a specified certificate bundle to process.

Rereading the first reply from ESP_Dazz, I'm going to share my sdkconfig file here (renamed to sdkconfig.txt)
Attachments
sdkconfig.txt
(37.87 KiB) Downloaded 366 times

filo_gr
Posts: 109
Joined: Wed Jul 28, 2021 12:25 pm
Location: Italy

Re: Blink example not running?

Postby filo_gr » Fri Oct 22, 2021 1:43 pm

Make sure you saved the Menuconfig, and try to delete the build folder before compiling.
Filippo

jmnelson
Posts: 6
Joined: Wed Oct 20, 2021 5:17 pm

Re: Blink example not running?

Postby jmnelson » Fri Oct 22, 2021 3:41 pm

filo_gr wrote:
Fri Oct 22, 2021 1:43 pm
Make sure you saved the Menuconfig, and try to delete the build folder before compiling.
Im pretty sure I had also done that, due to the build behaving differently.
I tried what you suggested, and it did take care of the build stopping as you predicted. 8-)

Now if only the bootloader would bother to figure out that there's an app loaded and launch it.
Yeah, Im still struggling with problem that the original poster described.

ESP_Sprite
Posts: 8921
Joined: Thu Nov 26, 2015 4:08 am

Re: Blink example not running?

Postby ESP_Sprite » Sat Oct 23, 2021 1:43 am

How are you flashing the app? 'idf.py flash' should flash everything that is needed, but 'idf.py app-flash' only flashes the app, in your case possibly leading to inconsistencies between bootloader and app.

jmnelson
Posts: 6
Joined: Wed Oct 20, 2021 5:17 pm

Re: Blink example not running?

Postby jmnelson » Mon Oct 25, 2021 11:31 am

ESP_Sprite wrote:
Sat Oct 23, 2021 1:43 am
How are you flashing the app? 'idf.py flash' should flash everything that is needed, but 'idf.py app-flash' only flashes the app, in your case possibly leading to inconsistencies between bootloader and app.
I had first used "idf.py flash" but when I discovered that you could transition to the monitor function I started using
"idf.py flash monitor" which is what I used to collect and share what the module reported in my other post.

John.

filo_gr
Posts: 109
Joined: Wed Jul 28, 2021 12:25 pm
Location: Italy

Re: Blink example not running?

Postby filo_gr » Mon Oct 25, 2021 12:24 pm

jmnelson wrote:
Mon Oct 25, 2021 11:31 am
ESP_Sprite wrote:
Sat Oct 23, 2021 1:43 am
How are you flashing the app? 'idf.py flash' should flash everything that is needed, but 'idf.py app-flash' only flashes the app, in your case possibly leading to inconsistencies between bootloader and app.
I had first used "idf.py flash" but when I discovered that you could transition to the monitor function I started using
"idf.py flash monitor" which is what I used to collect and share what the module reported in my other post.

John.
Did you include <stdio.h>?
If yes, try to use ESP_LOGI() macros instead. They are inside esp_log.h
Filippo

Who is online

Users browsing this forum: No registered users and 127 guests