Page 1 of 1

Struggling with A2DP_sink example

Posted: Sun Apr 21, 2019 9:54 am
by chesham71
This is my first foray into the ESP32. I am trying to build a bluetooth speaker and so the ESP32 looks perfect.

I have done

Code: Select all

make flash monitor
on the example provided in the esp-idf/examples/bluetooth/a2dp_sink, it uploads, and appears to run, but I can't see the device on my phone. I'm using nRF connect app by Nordic Semiconductors on android. Other bluetooth devices show up so it seems that the ESP32 is not available for discovery.
The output from the monitor is:

Code: Select all

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:0x3fff0018,len:4
load:0x3fff001c,len:6352
ho 0 tail 12 room 4
load:0x40078000,len:11308
load:0x40080400,len:6700
entry 0x40080764
I (30) boot: ESP-IDF v4.0-dev-402-ga20d02b7f 2nd stage bootloader
I (30) boot: compile time 10:28:44
I (30) boot: Enabling RNG early entropy source...
I (36) boot: SPI Speed      : 40MHz
I (40) boot: SPI Mode       : DIO
I (44) boot: SPI Flash Size : 4MB
I (49) boot: Partition Table:
I (52) boot: ## Label            Usage          Type ST Offset   Length
I (59) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (67) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (74) boot:  2 factory          factory app      00 00 00010000 00100000
I (82) boot: End of partition table
I (86) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x2960c (169484) map
I (154) esp_image: segment 1: paddr=0x00039634 vaddr=0x3ffbdb60 size=0x02aa4 ( 10916) load
I (159) esp_image: segment 2: paddr=0x0003c0e0 vaddr=0x40080000 size=0x00400 (  1024) load
0x40080000: _WindowOverflow4 at /Users/timfernandez/esp/esp-idf/components/freertos/xtensa_vectors.S:1779

I (161) esp_image: segment 3: paddr=0x0003c4e8 vaddr=0x40080400 size=0x03b28 ( 15144) load
I (176) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0x862f0 (549616) map
0x400d0018: _flash_cache_start at ??:?

I (371) esp_image: segment 5: paddr=0x000c6310 vaddr=0x40083f28 size=0x0dda0 ( 56736) load
0x40083f28: set_chan_dig_gain at ??:?

I (405) boot: Loaded app from partition at offset 0x10000
I (406) boot: Disabling RNG early entropy source...
I (406) cpu_start: Pro cpu up.
I (410) cpu_start: Application information:
I (414) cpu_start: Project name:     a2dp_sink
I (420) cpu_start: App version:      1
I (424) cpu_start: Compile time:     Apr 21 2019 10:31:07
I (430) cpu_start: ELF file SHA256:  b84a63f8364064ab...
I (436) cpu_start: ESP-IDF:          v4.0-dev-402-ga20d02b7f
I (442) cpu_start: Starting app cpu, entry point is 0x40081054
0x40081054: call_start_cpu1 at /Users/timfernandez/esp/esp-idf/components/esp32/cpu_start.c:267

I (0) cpu_start: App cpu up.
I (453) heap_init: Initializing. RAM available for dynamic allocation:
I (460) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
I (466) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
I (472) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
I (478) heap_init: At 3FFBDB5C len 00000004 (0 KiB): DRAM
I (484) heap_init: At 3FFCE530 len 00011AD0 (70 KiB): DRAM
I (490) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (497) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (503) heap_init: At 40091CC8 len 0000E338 (56 KiB): IRAM
I (509) cpu_start: Pro cpu start user code
I (192) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (254) I2S: DMA Malloc info, datalen=blocksize=240, dma_buf_count=6
I (254) I2S: PLL_D2: Req RATE: 44100, real rate: 44642.000, BITS: 16, CLKM: 14, BCK: 8, MCLK: 11289966.924, SCLK: 1428544.000000, diva: 64, divb: 11
I (264) BTDM_INIT: BT controller compile version [484c057]
I (264) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (374) phy: phy_version: 4100, 2a5dd04, Jan 23 2019, 21:00:07, 0, 0
I'm sure I'm doing/not doing something really simple here. If anyone has any tips to get me up and running that would be very much appreciated.

Tim