I decide to try PSRAM on ESP-WROVER-KIT-VB. I faced strange problem when use JTAG debuger and try simply to allocate memory from external SPI RAM.
Code: Select all
void app_main()
{
char *p = heap_caps_malloc(400000, MALLOC_CAP_SPIRAM);
if(p)
strcpy(p, "1234");
printf("Test %s\n", p);
free(p);
......
Code: Select all
MULTI_HEAP_ASSERT(is_free(b), b); // block should be free
Guru Meditation Error: Core 0 panic'ed (LoadProhibited) at pc=40091733. Setting bp and returning.
When just run application without debugger everything goes well without any problems.
What can be a reason? Is JTAG debug reflect some how for external SPI RAM access?
My be I miss something.
Thank you.