Hi, I have a board ESP32-DevKitC, and I programming the example blink or hello World
ubuntu@ubuntu:~/esp/workspace/blink$ make flash
Python requirements from /home/ubuntu/esp/esp-idf/requirements.txt are satisfied.
Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000 )...
esptool.py v2.5.0
Serial port /dev/ttyUSB0
Connecting........_
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Single Core
MAC: 24:0a:c4:85:fe:90
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0220
Compressed 21680 bytes to 12799...
Wrote 21680 bytes (12799 compressed) at 0x00001000 in 1.1 seconds (effective 153.2 kbit/s)...
Hash of data verified.
Compressed 156208 bytes to 73921...
Wrote 156208 bytes (73921 compressed) at 0x00010000 in 6.6 seconds (effective 190.7 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 1560.2 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
All is ok, I do in Linux and Windows and the chip flash ok... but the code not running.... what is the problem?
The code example not running
Re: The code example not running
Maybe auto reset failed so push reset button. Also try add monitor command to see what chip is saying. "make monitor" or "make flash monitor"
Re: The code example not running
thanks for answer...
ubuntu@ubuntu:~/esp/workspace/hello_world$ make flash monitor
Python requirements from /home/ubuntu/esp/esp-idf/requirements.txt are satisfied.
Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000 )...
esptool.py v2.5.0
Serial port /dev/ttyUSB0
Connecting........_____....._____.....____
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Single Core
MAC: 24:0a:c4:85:fe:90
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0220
Compressed 21312 bytes to 12601...
Wrote 21312 bytes (12601 compressed) at 0x00001000 in 1.1 seconds (effective 152.5 kbit/s)...
Hash of data verified.
Compressed 155760 bytes to 76207...
Wrote 155760 bytes (76207 compressed) at 0x00010000 in 6.8 seconds (effective 184.2 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 1546.1 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
MONITOR
--- idf_monitor on /dev/ttyUSB0 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
I (799) esp_image: segment 7:�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:0x3fff0010,len:4
load:0x3fff0014,len:6080
ho 0 tail 12 room 4
load:0x40078000,len:9392
load:0x40080400,len:5744
entry 0x40080744
I (185) boot: ESP-IDF v3.2-dev-760-ga0d2dd03 2nd stage bootloader
I (185) boot: compile time 20:19:38
I (186) boot: Enabling RNG early entropy source...
I (206) boot: SPI Speed : 40MHz
I (219) boot: SPI Mode : DIO
I (232) boot: SPI Flash Size : 4MB
I (245) boot: Partition Table:
I (256) boot: ## Label Usage Type ST Offset Length
I (278) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (302) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (325) boot: 2 factory factory app 00 00 00010000 00100000
I (348) boot: End of partition table
I (361) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x0799c ( 31132) map
I (457) esp_image: segment 1: paddr=0x000179c4 vaddr=0x3ffb0000 size=0x0211c ( 8476) load
I (479) esp_image: segment 2: paddr=0x00019ae8 vaddr=0x3ffb211c size=0x00000 ( 0) load
I (481) esp_image: segment 3: paddr=0x00019af0 vaddr=0x40080000 size=0x00400 ( 1024) load
0x40080000: _WindowOverflow4 at /home/ubuntu/esp/esp-idf/components/freertos/xtensa_vectors.S:1685
I (508) esp_image: segment 4: paddr=0x00019ef8 vaddr=0x40080400 size=0x06118 ( 24856) load
I (597) esp_image: segment 5: paddr=0x00020018 vaddr=0x400d0018 size=0x13180 ( 78208) map
0x400d0018: _flash_cache_start at ??:?
I (767) esp_image: segment 6: paddr=0x000331a0 vaddr=0x40086518 size=0x02e94 ( 11924) load
0x40086518: _frxt_task_coproc_state at /home/ubuntu/esp/esp-idf/components/freertos/portasm.S:631
I (799) esp_image: segment 7: paddr=0x0003603c vaddr=0x400c0000 size=0x00000 ( 0) load
I (801) esp_image: segment 8: paddr=0x00036044 vaddr=0x50000000 size=0x00000 ( 0) load
I (857) boot: Loaded app from partition at offset 0x10000
I (858) boot: Disabling RNG early entropy source...
I (865) cpu_start: Pro cpu up.
I (876) cpu_start: Starting app cpu, entry point is 0x4008107c
0x4008107c: call_start_cpu1 at /home/ubuntu/esp/esp-idf/components/esp32/cpu_start.c:228
I dont know what happped... the programming its ok... but not run the code
ubuntu@ubuntu:~/esp/workspace/hello_world$ make flash monitor
Python requirements from /home/ubuntu/esp/esp-idf/requirements.txt are satisfied.
Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000 )...
esptool.py v2.5.0
Serial port /dev/ttyUSB0
Connecting........_____....._____.....____
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Single Core
MAC: 24:0a:c4:85:fe:90
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0220
Compressed 21312 bytes to 12601...
Wrote 21312 bytes (12601 compressed) at 0x00001000 in 1.1 seconds (effective 152.5 kbit/s)...
Hash of data verified.
Compressed 155760 bytes to 76207...
Wrote 155760 bytes (76207 compressed) at 0x00010000 in 6.8 seconds (effective 184.2 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 1546.1 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
MONITOR
--- idf_monitor on /dev/ttyUSB0 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
I (799) esp_image: segment 7:�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:0x3fff0010,len:4
load:0x3fff0014,len:6080
ho 0 tail 12 room 4
load:0x40078000,len:9392
load:0x40080400,len:5744
entry 0x40080744
I (185) boot: ESP-IDF v3.2-dev-760-ga0d2dd03 2nd stage bootloader
I (185) boot: compile time 20:19:38
I (186) boot: Enabling RNG early entropy source...
I (206) boot: SPI Speed : 40MHz
I (219) boot: SPI Mode : DIO
I (232) boot: SPI Flash Size : 4MB
I (245) boot: Partition Table:
I (256) boot: ## Label Usage Type ST Offset Length
I (278) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (302) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (325) boot: 2 factory factory app 00 00 00010000 00100000
I (348) boot: End of partition table
I (361) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x0799c ( 31132) map
I (457) esp_image: segment 1: paddr=0x000179c4 vaddr=0x3ffb0000 size=0x0211c ( 8476) load
I (479) esp_image: segment 2: paddr=0x00019ae8 vaddr=0x3ffb211c size=0x00000 ( 0) load
I (481) esp_image: segment 3: paddr=0x00019af0 vaddr=0x40080000 size=0x00400 ( 1024) load
0x40080000: _WindowOverflow4 at /home/ubuntu/esp/esp-idf/components/freertos/xtensa_vectors.S:1685
I (508) esp_image: segment 4: paddr=0x00019ef8 vaddr=0x40080400 size=0x06118 ( 24856) load
I (597) esp_image: segment 5: paddr=0x00020018 vaddr=0x400d0018 size=0x13180 ( 78208) map
0x400d0018: _flash_cache_start at ??:?
I (767) esp_image: segment 6: paddr=0x000331a0 vaddr=0x40086518 size=0x02e94 ( 11924) load
0x40086518: _frxt_task_coproc_state at /home/ubuntu/esp/esp-idf/components/freertos/portasm.S:631
I (799) esp_image: segment 7: paddr=0x0003603c vaddr=0x400c0000 size=0x00000 ( 0) load
I (801) esp_image: segment 8: paddr=0x00036044 vaddr=0x50000000 size=0x00000 ( 0) load
I (857) boot: Loaded app from partition at offset 0x10000
I (858) boot: Disabling RNG early entropy source...
I (865) cpu_start: Pro cpu up.
I (876) cpu_start: Starting app cpu, entry point is 0x4008107c
0x4008107c: call_start_cpu1 at /home/ubuntu/esp/esp-idf/components/esp32/cpu_start.c:228
I dont know what happped... the programming its ok... but not run the code
Re: The code example not running
Your log says you have single core chip so I guess that is why app cpu doesn't start. You have to build for single core configuration.
Re: The code example not running
Please say me where I do it? make menuconfig or in code?
Re: The code example not running
Thanks you... I does it
Component config > FreeRTOS
There is an entry called "Run FreeRTOS only on first core".
viewtopic.php?t=802
now its running
Component config > FreeRTOS
There is an entry called "Run FreeRTOS only on first core".
viewtopic.php?t=802
now its running
-
- Posts: 1
- Joined: Tue Dec 10, 2019 7:27 pm
Re: The code example not running
The Following article may help you to understad the issue and fix it.
https://electronicsinnovation.com/hard- ... explained/
https://electronicsinnovation.com/hard- ... explained/
Who is online
Users browsing this forum: No registered users and 134 guests