Skip to content

Instantly share code, notes, and snippets.

@jasta
Created October 12, 2023 20:42
Show Gist options
  • Save jasta/25be24926dd3c2067e26461ebd54b09a to your computer and use it in GitHub Desktop.
Save jasta/25be24926dd3c2067e26461ebd54b09a to your computer and use it in GitHub Desktop.
$ cargo run --example ble_server
Finished dev [optimized + debuginfo] target(s) in 0.13s
Running `espflash flash --monitor target/riscv32imc-esp-espidf/debug/examples/ble_server`
[2023-10-12T20:38:44Z INFO ] 🚀 A new version of espflash is available: v2.1.0
[2023-10-12T20:38:44Z INFO ] Serial port: '/dev/ttyUSB0'
[2023-10-12T20:38:44Z INFO ] Connecting...
[2023-10-12T20:38:44Z INFO ] Using flash stub
Chip type: esp32c3 (revision v0.3)
Crystal frequency: 40MHz
Flash size: 4MB
Features: WiFi, BLE
MAC address: f4:12:fa:1b:4a:b4
App/part. size: 505,584/4,128,768 bytes, 12.25%
[00:00:01] [========================================] 13/13 0x0 [00:00:00] [========================================] 1/1 0x8000 [00:00:30] [========================================] 286/286 0x10000 [2023-10-12T20:39:17Z INFO ] Flashing has completed!
Commands:
CTRL+R Reset chip
CTRL+C Exit
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:2
load:0x3fcd5820,len:0x171c
0x3fcd5820 - _bss_end
at ??:??
load:0x403cc710,len:0x968
0x403cc710 - _iram_data_start
at ??:??
load:0x403ce710,len:0x2f68
0x403ce710 - _iram_data_start
at ??:??
SHA-256 comparison failed:
Calculated: 1d06b938c0222bf626e0bdf46178b1b37ab24d03f0360fc8fcf7153c2571deaf
Expected: 68d7bdf643ba446b8ed7ae8423241d442fd052b2bc77091100ba06fd65dcf8d5
Attempting to boot anyway...
entry 0x403cc710
0x403cc710 - _iram_data_start
at ??:??
I (50) boot: ESP-IDF v5.1-beta1-378-gea5e0ff298-dirt 2nd stage bootloader
I (50) boot: compile time Jun 7 2023 07:59:10
I (51) boot: chip revision: v0.3
I (55) boot.esp32c3: SPI Speed : 40MHz
I (60) boot.esp32c3: SPI Mode : DIO
I (65) boot.esp32c3: SPI Flash Size : 4MB
I (69) boot: Enabling RNG early entropy source...
I (75) boot: Partition Table:
I (78) boot: ## Label Usage Type ST Offset Length
I (86) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (93) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (101) boot: 2 factory factory app 00 00 00010000 003f0000
I (108) boot: End of partition table
I (112) esp_image: segment 0: paddr=00010020 vaddr=3c060020 size=15c18h ( 89112) map
I (140) esp_image: segment 1: paddr=00025c40 vaddr=3fc8f400 size=01e50h ( 7760) load
I (143) esp_image: segment 2: paddr=00027a98 vaddr=40380000 size=08580h ( 34176) load
I (155) esp_image: segment 3: paddr=00030020 vaddr=42000020 size=54944h (346436) map
I (231) esp_image: segment 4: paddr=0008496c vaddr=40388580 size=06d5ch ( 27996) load
I (243) boot: Loaded app from partition at offset 0x10000
I (243) boot: Disabling RNG early entropy source...
I (254) cpu_start: Pro cpu up.
I (263) cpu_start: Pro cpu start user code
I (263) cpu_start: cpu freq: 160000000
I (263) cpu_start: Application information:
I (266) cpu_start: Project name: libespidf
I (271) cpu_start: App version: 1
I (276) cpu_start: Compile time: Oct 12 2023 13:24:53
I (282) cpu_start: ELF file SHA256: 0000000000000000...
I (288) cpu_start: ESP-IDF: v4.4.5-dirty
I (293) cpu_start: Min chip rev: v0.3
I (298) cpu_start: Max chip rev: v0.99
I (302) cpu_start: Chip rev: v0.3
I (307) heap_init: Initializing. RAM available for dynamic allocation:
I (315) heap_init: At 3FC93940 len 00048DD0 (291 KiB): DRAM
I (321) heap_init: At 3FCDC710 len 00002950 (10 KiB): STACK/DRAM
I (327) heap_init: At 50000020 len 00001FE0 (7 KiB): RTCRAM
I (335) spi_flash: detected chip: generic
I (338) spi_flash: flash io: dio
I (343) sleep: Configure to isolate all GPIO pins in sleep state
I (349) sleep: Enable automatic switching of GPIO sleep configuration
I (356) coexist: coexist rom version 9387209
I (361) cpu_start: Starting scheduler.
I (372) BLE_INIT: BT controller compile version [85b425c]
I (372) phy_init: phy_version 970,1856f88,May 10 2023,17:44:12
W (382) phy_init: failed to load RF calibration data (0xffffffff), falling back to full calibration
0xffffffff - USB_SERIAL_JTAG
at ??:??
I (432) system_api: Base MAC address is not set
I (442) system_api: read default base MAC address from EFUSE
I (442) BLE_INIT: Bluetooth MAC: f4:12:fa:1b:4a:b6
I (452) esp32_nimble::ble_device: BLE Host Task Started
I (452) NimBLE: GAP procedure initiated: stop advertising.
I (462) esp32_nimble::ble_device: Device Address: F4:12:FA:1B:4A:B6
primary service
uuid 0x1800
handle 1
end_handle 5
characteristic
uuid 0x2a00
def_handle 2
val_handle 3
min_key_size 0
flags [READ]
characteristic
uuid 0x2a01
def_handle 4
val_handle 5
min_key_size 0
flags [READ]
primary service
uuid 0x1801
handle 6
end_handle 9
characteristic
uuid 0x2a05
def_handle 7
val_handle 8
min_key_size 0
flags [INDICATE]
ccc descriptor
uuid 0x2902
handle 9
min_key_size 0
flags [READ|WRITE]
primary service
uuid fafafafa-fafa-fafa-fafa-fafafafafafa
handle 10
end_handle 17
characteristic
uuid d4e0e0d0-1a2b-11e9-ab14-d663bd873d93
def_handle 11
val_handle 12
min_key_size 0
flags [READ]
characteristic
uuid a3c87500-8ed3-4bdf-8a39-a01bebede295
def_handle 13
val_handle 14
min_key_size 0
flags [READ|NOTIFY]
ccc descriptor
uuid 0x2902
handle 15
min_key_size 0
flags [READ|WRITE]
characteristic
uuid 3c9a3f00-8ed3-4bdf-8a39-a01bebede295
def_handle 16
val_handle 17
min_key_size 0
flags [READ|WRITE]
I (582) NimBLE: GAP procedure initiated: advertise;
I (582) NimBLE: disc_mode=2
I (582) NimBLE: adv_channel_map=0 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=0 adv_itvl_max=0
I (592) NimBLE:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment