Memory allocation problem WroverB ADF

profDev
Posts: 3
Joined: Thu Sep 19, 2019 10:33 am

Memory allocation problem WroverB ADF

Postby profDev » Fri Apr 17, 2020 5:37 am

Hello,

I'm writing an application in ESP-ADF.
My board is TTGO Wrover B connected via ESP Prog.

All works well till yesterday, and i am not able to getting it working again.

In Initialisation there seems to be a memory Problem. audio_pipeline_init runs in the "memory exhaust" error:

Code: Select all

player->pipeline = audio_pipeline_init(&pipeline_cfg);
	if (player->pipeline == NULL)
	{
		ESP_LOGE(TAG, "Error creating audio Pipeline");
		return NULL ;
	}
Debugger says that it should allocate the Memory with this code in audio_mem.c, nmemb=1 and size = 32

Code: Select all

 data = heap_caps_malloc(nmemb * size, MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT);
I do not know, if it has something to do with:
Programming without Jtag over serial with make Flash has also error, also with ALL devices DISCONNECTED

Code: Select all

App "play_and_save" version: 1
Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000)...
esptool.py v2.8
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: b4:e6:2d:de:90:19
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...

A fatal error occurred: Timed out waiting for packet header
make size shows:

Code: Select all

Total sizes:
 DRAM .data size:   14016 bytes
 DRAM .bss  size:   25680 bytes
Used static DRAM:   39696 bytes ( 141040 available, 22.0% used)
Used static IRAM:   98025 bytes (  33047 available, 74.8% used)
      Flash code:  630501 bytes
    Flash rodata:  164904 bytes
Total image size:~ 907446 bytes (.bin may be padded larger)

Pleas help me finding a solution for this Problem.
Thanks

Who is online

Users browsing this forum: No registered users and 24 guests