miketeachman / micropython-esp32-i2s-examples

Usage and examples for I2S support on the ESP32 microcontroller
MIT License
145 stars 29 forks source link

Could not work with wifi connected #9

Closed aeroju closed 4 years ago

aeroju commented 4 years ago

Hi, I was trying your firmware: esp32-idf3-i2s-2020-05-13-v1-12.bin, and example: record-mono-mic-to-sdcard.py. When I did not connect esp32 to wifi, your example works fine, but when I connect esp32 to wifi, I always get esp32 reboot with following information:

bck_pin = Pin(14) ws_pin = Pin(15) sdin_pin = Pin(32) audio_in = I2S( ... I2S.NUM0, ... bck=bck_pin, ws=ws_pin, sdin=sdin_pin, ... standard=I2S.PHILIPS, ... mode=I2S.MASTER_RX, ... dataformat=I2S.B32, ... channelformat=I2S.ONLY_LEFT, ... samplerate=SAMPLE_RATE_IN_HZ, ... dmacount=50, ... dmalen=NUM_SAMPLES_IN_DMA_BUFFER ... ) E (228651) I2S: Error malloc dma buffer C:/Users/miket/Documents/micropython_projects/esp-idf-v3-3-2-9e7082/components/freertos/queue.c:1796 (vQueueDelete)- assert failed! abort() was called at PC 0x4009b24f on core 1

ELF file SHA256: 0000000000000000000000000000000000000000000000000000000000000000

Backtrace: 0x4008ef6b:0x3ffce560 0x4008f289:0x3ffce580 0x4009b24f:0x3ffce5a0 0x4010965d:0x3ffce5c0 0x40109747:0x3ffce5e0 0x4010a420:0x3ffce620 0x4010b31d:0x3ffce6a0 0x400f9f55:0x3ffce6e0 0x400fa05d:0x3ffce770 0x400e8fc5:0x3ffce7a0 0x400df961:0x3ffce7c0 0x400ed06d:0x3ffce7e0 0x400e3aac:0x3ffce880 0x400df961:0x3ffce8b0 0x400df98a:0x3ffce8d0 0x40101863:0x3ffce8f0 0x40101a6d:0x3ffce980 0x400f5b8c:0x3ffce9c0 0x4009a79a:0x3ffce9f0

Rebooting... ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_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:5164 load:0x40078000,len:10600 load:0x40080400,len:5684 entry 0x400806bc I (534) cpu_start: Pro cpu up. I (534) cpu_start: Application information: I (534) cpu_start: Compile time: May 13 2020 08:19:17 I (537) cpu_start: ELF file SHA256: 0000000000000000... I (543) cpu_start: ESP-IDF: v3.3.2 I (548) cpu_start: Starting app cpu, entry point is 0x40083e94 I (540) cpu_start: App cpu up. I (559) heap_init: Initializing. RAM available for dynamic allocation: I (566) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM I (572) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM I (578) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM I (584) heap_init: At 3FFBDB5C len 00000004 (0 KiB): DRAM I (590) heap_init: At 3FFCAA58 len 000155A8 (85 KiB): DRAM I (596) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM I (603) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (609) heap_init: At 4009DFB0 len 00002050 (8 KiB): IRAM I (615) cpu_start: Pro cpu start user code I (298) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (120) wifi:wifi driver task: 3ffd10c8, prio:23, stack:3584, core=0 I (541) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (541) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (581) wifi:wifi firmware version: 44aa95c I (581) wifi:config NVS flash: enabled I (581) wifi:config nano formating: disabled I (581) wifi:Init dynamic tx buffer num: 32 I (581) wifi:Init data frame dynamic rx buffer num: 32 I (591) wifi:Init management frame dynamic rx buffer num: 32 I (591) wifi:Init management short buffer num: 32 I (601) wifi:Init static rx buffer size: 1600 I (601) wifi:Init static rx buffer num: 10 I (601) wifi:Init dynamic rx buffer num: 32 I (711) phy: phy_version: 4180, cb3948e, Sep 12 2019, 16:39:13, 0, 0 I (711) wifi:mode : sta (fc:f5:c4:2f:94:14) I (711) wifi: STA_START connecting to: maotouying I (1691) wifi:new:<8,0>, old:<1,0>, ap:<255,255>, sta:<8,0>, prof:1 I (2531) wifi:state: init -> auth (b0) I (2561) wifi:state: auth -> assoc (0) I (2591) wifi:state: assoc -> run (10) I (8691) wifi:state: run -> init (fc0) I (8691) wifi:new:<8,0>, old:<8,0>, ap:<255,255>, sta:<8,0>, prof:1 I (8691) wifi:new:<8,0>, old:<8,0>, ap:<255,255>, sta:<8,0>, prof:1 I (8701) wifi: STA_DISCONNECTED, reason:15 I (10751) wifi: STA_DISCONNECTED, reason:205 I (10871) wifi:new:<8,0>, old:<8,0>, ap:<255,255>, sta:<8,0>, prof:1 I (10881) wifi:state: init -> auth (b0) I (10911) wifi:state: auth -> assoc (0) I (10941) wifi:state: assoc -> run (10) I (11061) wifi:connected with maotouying, aid = 3, channel 8, BW20, bssid = 78:11:dc:05:45:ee I (11061) wifi:security type: 4, phy: bgn, rssi: -46 I (11061) wifi:pm start, type: 1

I (11071) network: CONNECTED I (11141) wifi:AP's beacon interval = 102400 us, DTIM period = 1 I (13041) event: sta ip: 192.168.31.233, mask: 255.255.255.0, gw: 192.168.31.1 I (13041) network: GOT_IP network config: ('192.168.31.233', '255.255.255.0', '192.168.31.1', '192.168.31.1') MicroPython v1.12-452-g4ff57acfb-dirty on 2020-05-13; ESP32 module with ESP32