RDA5807M gets i2c commands but ESP32 cannot read (i2c null address error)
Posted: Sat Mar 02, 2019 8:20 pm
I'm trying to get info from RDA5807M but ESP32 return i2c null address error. I tried to change addresses for sequential and random addresses, increase timeout but it has no effect. Arduino I2C scanner finds RDA's addresses.
My project in the attachment.
The log:
Hardware: ESP32-WROOM
ESP-IDF version: 3.1.3
My project in the attachment.
The log:
Code: Select all
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x17 (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:5840
ho 0 tail 12 room 4
load:0x40078000,len:9188
load:0x40080000,len:6084
0x40080000: _WindowOverflow4 at C:/msys32/home/dmitr/esp/esp-idf/components/freertos/xtensa_vectors.S:
1779
entry 0x4008032c
0x4008032c: _KernelExceptionVector at ??:?
I (30) boot: ESP-IDF v3.1.3-dirty 2nd stage bootloader
I (30) boot: compile time 22:44:01
I (30) boot: Enabling RNG early entropy source...
I (35) boot: SPI Speed : 40MHz
I (39) boot: SPI Mode : DIO
I (43) boot: SPI Flash Size : 4MB
I (47) boot: Partition Table:
I (51) boot: ## Label Usage Type ST Offset Length
I (58) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (66) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (73) boot: 2 factory factory app 00 00 00010000 00100000
I (80) boot: 3 storage Unknown data 01 82 00110000 000f0000
I (88) boot: End of partition table
I (92) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x2faf0 (195312) map
I (169) esp_image: segment 1: paddr=0x0003fb18 vaddr=0x3ffc0000 size=0x004f8 ( 1272) load
I (170) esp_image: segment 2: paddr=0x00040018 vaddr=0x400d0018 size=0xa50cc (676044) map
0x400d0018: _flash_cache_start at ??:?
I (413) esp_image: segment 3: paddr=0x000e50ec vaddr=0x3ffc04f8 size=0x029f0 ( 10736) load
I (417) esp_image: segment 4: paddr=0x000e7ae4 vaddr=0x40080000 size=0x00400 ( 1024) load
0x40080000: _WindowOverflow4 at C:/msys32/home/dmitr/esp/esp-idf/components/freertos/xtensa_vectors.S:
1779
I (420) esp_image: segment 5: paddr=0x000e7eec vaddr=0x40080400 size=0x131b0 ( 78256) load
I (472) boot: Loaded app from partition at offset 0x10000
I (472) boot: Disabling RNG early entropy source...
I (473) cpu_start: Pro cpu up.
I (476) cpu_start: Starting app cpu, entry point is 0x400810cc
0x400810cc: call_start_cpu1 at C:/msys32/home/dmitr/esp/esp-idf/components/esp32/cpu_start.c:232
I (0) cpu_start: App cpu up.
I (487) heap_init: Initializing. RAM available for dynamic allocation:
I (494) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
I (500) heap_init: At 3FFD32E8 len 0000CD18 (51 KiB): DRAM
I (506) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (512) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (519) heap_init: At 400935B0 len 0000CA50 (50 KiB): IRAM
I (525) cpu_start: Pro cpu start user code
I (207) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (436) SPIFFS: Initializing SPIFFS
I (516) SPIFFS: Partition size: total: 896321, used: 0
I (516) I2S: DMA Malloc info, datalen=blocksize=240, dma_buf_count=6
I (516) 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 (526) BT_AV: I2C initialized successfully!
E (536) i2c: C:/msys32/home/dmitr/esp/esp-idf/components/driver/i2c.c:1077 (i2c_master_read_byte):i2c
null address error
E (546) i2c: C:/msys32/home/dmitr/esp/esp-idf/components/driver/i2c.c:1077 (i2c_master_read_byte):i2c
null address error
E (1556) i2c: C:/msys32/home/dmitr/esp/esp-idf/components/driver/i2c.c:1077 (i2c_master_read_byte):i2c
null address error
E (1556) i2c: C:/msys32/home/dmitr/esp/esp-idf/components/driver/i2c.c:1077 (i2c_master_read_byte):i2c
null address error
E (2566) i2c: C:/msys32/home/dmitr/esp/esp-idf/components/driver/i2c.c:1077 (i2c_master_read_byte):i2c
null address error
E (2566) i2c: C:/msys32/home/dmitr/esp/esp-idf/components/driver/i2c.c:1077 (i2c_master_read_byte):i2c
null address error
I (3576) BTDM_INIT: BT controller compile version [3828e65]
I (3576) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
W (3576) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration
I (3746) phy: phy_version: 4008, c9ae59f, Jan 25 2019, 16:54:06, 0, 2
I (4386) BT_AV: Модуль инициализирован!
E (4386) i2c: C:/msys32/home/dmitr/esp/esp-idf/components/driver/i2c.c:1077 (i2c_master_read_byte):i2c
null address error
E (4396) i2c: C:/msys32/home/dmitr/esp/esp-idf/components/driver/i2c.c:1077 (i2c_master_read_byte):i2c
null address error
I (5406) BT_AV: FM RSSI = 0
ESP-IDF version: 3.1.3