https://kunkune.co.uk/shop/esp32-esp826 ... oth-board/
I have compiled and flashed the example code a2dp_sink in Espressif-IDE.
I have wired the board to a MAX98357A as explained in the read me file.
I can connect my phone to the bluetooth module, but it does not play any audio. All it does is randomly make a crackling noise. Why does it not play music ?
The configuration is correct as shown...
I got an warning about partition...
So I changed the partition configuration from "Single factory app, no OTA" to "Single factory app (large), no OTA"
This is the console output....
Code: Select all
--- esp-idf-monitor 1.6.2 on /dev/cu.usbserial-0001 115200
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
(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:6276
load:0x40078000,len:15748
load:0x40080400,len:4
--- 0x40080400: _init at ??:?
ho 8 tail 4 room 4
load:0x40080404,len:3860
entry 0x4008063c
I (31) boot: ESP-IDF v5.4.1-dirty 2nd stage bootloader
I (31) boot: compile time May 24 2025 20:46:30
I (31) boot: Multicore bootloader
I (33) boot: chip revision: v3.1
I (36) boot.esp32: SPI Speed : 40MHz
I (40) boot.esp32: SPI Mode : DIO
I (43) boot.esp32: SPI Flash Size : 2MB
I (47) boot: Enabling RNG early entropy source...
I (51) boot: Partition Table:
I (54) boot: ## Label Usage Type ST Offset Length
I (60) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (67) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (73) boot: 2 factory factory app 00 00 00010000 00177000
I (80) boot: End of partition table
I (83) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=2aff0h (176112) map
I (151) esp_image: segment 1: paddr=0003b018 vaddr=3ff80000 size=0001ch ( 28) load
I (151) esp_image: segment 2: paddr=0003b03c vaddr=3ffbdb60 size=04c98h ( 19608) load
I (162) esp_image: segment 3: paddr=0003fcdc vaddr=40080000 size=0033ch ( 828) load
I (162) esp_image: segment 4: paddr=00040020 vaddr=400d0020 size=aa2bch (697020) map
I (408) esp_image: segment 5: paddr=000ea2e4 vaddr=4008033c size=17b8ch ( 97164) load
I (457) boot: Loaded app from partition at offset 0x10000
I (457) boot: Disabling RNG early entropy source...
I (468) cpu_start: Multicore app
I (476) cpu_start: Pro cpu start user code
I (476) cpu_start: cpu freq: 160000000 Hz
I (476) app_init: Application information:
I (476) app_init: Project name: a2dp_sink
I (480) app_init: App version: 1
I (484) app_init: Compile time: May 24 2025 20:46:22
I (489) app_init: ELF file SHA256: 54113e4fd...
I (493) app_init: ESP-IDF: v5.4.1-dirty
I (498) efuse_init: Min chip rev: v0.0
I (501) efuse_init: Max chip rev: v3.99
I (505) efuse_init: Chip rev: v3.1
I (509) heap_init: Initializing. RAM available for dynamic allocation:
I (516) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
I (521) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
I (526) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
I (531) heap_init: At 3FFCC3F0 len 00013C10 (79 KiB): DRAM
I (536) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (541) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (547) heap_init: At 40097EC8 len 00008138 (32 KiB): IRAM
I (554) spi_flash: detected chip: generic
I (556) spi_flash: flash io: dio
W (559) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (572) coexist: coex firmware version: e727207
I (576) main_task: Started on CPU0
I (586) main_task: Calling app_main()
I (596) BTDM_INIT: BT controller compile version [dc1cd58]
I (596) BTDM_INIT: Bluetooth MAC: 04:83:08:57:73:d6
I (596) phy_init: phy_version 4860,6b7a6e5,Feb 6 2025,14:47:07
I (1256) BT_AV: Own address:[04:83:08:57:73:d6]
W (1276) BT_BTC: A2DP Enable with AVRC
I (1286) BT_AV: A2DP PROF STATE: Init Complete
I (1286) BT_AV: event: 10
I (1296) BT_AV: event: 10
I (1296) BT_AV: event: 10
I (1296) BT_AV: Get delay report value: delay_value: 1200 * 1/10 ms
I (1296) BT_AV: event: 23
I (1296) BT_AV: Set delay report value: success, delay_value: 1250 * 1/10 ms
I (1296) main_task: Returned from app_main()
W (7226) BT_HCI: hcif conn complete: hdl 0x80, st 0x0
I (7226) BT_AV: ESP_BT_GAP_ACL_CONN_CMPL_STAT_EVT Connected to [74:42:18:70:99:48], status: 0x0
W (7316) BT_HCI: hcif link supv_to changed: hdl 0x80, supv_to 8000
W (7436) BT_HCI: hcif link supv_to changed: hdl 0x80, supv_to 32000
I (7516) BT_AV: Encryption mode to [74:42:18:70:99:48] changed to E0
W (7576) BT_HCI: hcif link supv_to changed: hdl 0x80, supv_to 8000
I (7596) BT_AV: A2DP connection state: Connecting, [74:42:18:70:99:48]
I (7616) RC_TG: AVRC conn_state evt: state 1, [74:42:18:70:99:48]
I (7616) RC_TG: start volume change simulation
I (7656) BT_AV: A2DP audio stream configuration, codec type: 0
I (7656) BT_AV: Configure audio player: 21-15-2-35
I (7656) BT_AV: Audio player configured, sample rate: 44100
I (7656) BT_AV: protocol service capabilities configured: 0x1
I (7666) BT_AV: Peer device support delay reporting
I (7716) RC_TG: AVRC register event notification: 13, param: 0x0
I (8026) RC_CT: AVRC conn_state event: state 1, [74:42:18:70:99:48]
I (8026) RC_CT: AVRC remote features 125b, TG features 1d1
W (8026) RC_CT: Peer support Cover Art feature, start connection...
I (8026) RC_TG: AVRC remote features: 125b, CT features: 2
W (8096) BT_APPL: new conn_srvc id:19, app_id:0
I (8096) BT_AV: A2DP connection state: Connected, [74:42:18:70:99:48]
I (8096) BT_APP_CORE: ringbuffer data empty! mode changed: RINGBUFFER_MODE_PREFETCHING
I (8136) RC_CT: remote rn_cap: count 7, bitmask 0x1f06
I (8316) RC_CT: AVRC metadata rsp: attribute id 0x1, Crossroads (feat. Nathan Nicholson)
I (8316) RC_CT: AVRC metadata rsp: attribute id 0x2, Tinlicker
I (8316) RC_CT: AVRC metadata rsp: attribute id 0x4, Cold Enough For Snow
I (8326) RC_CT: AVRC metadata rsp: attribute id 0x20, Electronic
W (8496) RC_CT: Cover Art Client connected
I (8696) RC_CT: AVRC remote features 125b, TG features 1d1
I (8696) RC_TG: AVRC remote features: 125b, CT features: 2
W (11296) BT_HCI: hci cmd send: sniff: hdl 0x80, intv(400 800)
W (11326) BT_HCI: hcif mode change: hdl 0x80, mode 2, intv 800, status 0x0
I (11336) BT_AV: ESP_BT_GAP_MODE_CHG_EVT mode: 2, interval: 500.00 ms
W (11886) BT_HCI: hcif mode change: hdl 0x80, mode 0, intv 0, status 0x0
I (11886) BT_AV: ESP_BT_GAP_MODE_CHG_EVT mode: 0, interval: 0.00 ms
I (11906) BT_LOG: bta_av_link_role_ok hndl:x41 role:1 conn_audio:x1 bits:1 features:x864b
W (11906) BT_APPL: new conn_srvc id:19, app_id:1
I (11906) BT_AV: A2DP audio state: Started
W (15776) BT_APPL: Sequence numbers error, recv:0x96, expect:0xc, recount:0x0
I (17616) RC_TG: Volume is set locally to: 3%
W (19536) BT_HCI: reassemble_and_dispatch found unfinished packet for handle with start packet. Dropping old.
W (19536) BT_APPL: Sequence numbers error, recv:0x138, expect:0x97, recount:0x0
W (19716) BT_APPL: Sequence numbers error, recv:0x13f, expect:0x139, recount:0x0
W (20676) BT_APPL: Sequence numbers error, recv:0x169, expect:0x140, recount:0x0
I (20686) BT_APP_CORE: ringbuffer data increased! mode changed: RINGBUFFER_MODE_PROCESSING
I (20796) BT_APP_CORE: ringbuffer underflowed! mode changed: RINGBUFFER_MODE_PREFETCHING
W (21676) BT_APPL: Sequence numbers error, recv:0x194, expect:0x16a, recount:0x0
W (23226) BT_APPL: Sequence numbers error, recv:0x1d8, expect:0x195, recount:0x0
W (25576) BT_APPL: Sequence numbers error, recv:0x23b, expect:0x1d9, recount:0x0
W (26886) BT_APPL: Sequence numbers error, recv:0x274, expect:0x23c, recount:0x0
I (27616) RC_TG: Volume is set locally to: 7%
W (28276) BT_APPL: Sequence numbers error, recv:0x2af, expect:0x275, recount:0x0
I (28286) BT_APP_CORE: ringbuffer data increased! mode changed: RINGBUFFER_MODE_PROCESSING
I (28386) BT_APP_CORE: ringbuffer underflowed! mode changed: RINGBUFFER_MODE_PREFETCHING
W (29086) BT_APPL: Sequence numbers error, recv:0x2d4, expect:0x2b0, recount:0x0
W (30856) BT_APPL: Sequence numbers error, recv:0x321, expect:0x2d5, recount:0x0
W (31936) BT_APPL: Sequence numbers error, recv:0x34f, expect:0x322, recount:0x0
W (33786) BT_APPL: Sequence numbers error, recv:0x39e, expect:0x350, recount:0x0
I (37616) RC_TG: Volume is set locally to: 11%
W (37766) BT_HCI: reassemble_and_dispatch found unfinished packet for handle with start packet. Dropping old.
W (37766) BT_APPL: Sequence numbers error, recv:0x449, expect:0x39f, recount:0x0
I (37776) BT_APP_CORE: ringbuffer data increased! mode changed: RINGBUFFER_MODE_PROCESSING
I (37876) BT_APP_CORE: ringbuffer underflowed! mode changed: RINGBUFFER_MODE_PREFETCHING
W (39146) BT_APPL: Sequence numbers error, recv:0x484, expect:0x44a, recount:0x0
W (39416) BT_APPL: Sequence numbers error, recv:0x490, expect:0x485, recount:0x0
W (39506) BT_APPL: Sequence numbers error, recv:0x493, expect:0x491, recount:0x0
W (40396) BT_APPL: Sequence numbers error, recv:0x4b9, expect:0x494, recount:0x0
W (40466) BT_APPL: Sequence numbers error, recv:0x4bd, expect:0x4ba, recount:0x0
I (40476) BT_APP_CORE: ringbuffer data increased! mode changed: RINGBUFFER_MODE_PROCESSING
I (40586) BT_APP_CORE: ringbuffer underflowed! mode changed: RINGBUFFER_MODE_PREFETCHING
W (42206) BT_APPL: Sequence numbers error, recv:0x508, expect:0x4be, recount:0x0
W (42366) BT_APPL: Sequence numbers error, recv:0x50f, expect:0x509, recount:0x0
W (44276) BT_APPL: Sequence numbers error, recv:0x562, expect:0x510, recount:0x0
I (47616) RC_TG: Volume is set locally to: 15%