Is float type capable for MALLOC_CAP_32BIT ?
I used simple the code :
Code: Select all
float *test=(float *) heap_caps_malloc(sizeof(float)*10,MALLOC_CAP_32BIT);
for(i=0;i<10;i++)test[i]=i;
Code: Select all
float *test=(float *) heap_caps_malloc(sizeof(float)*10,MALLOC_CAP_32BIT);
for(i=0;i<10;i++)test[i]=i;
I think it is possible, in theory. However given the fact that this workaround is only necessary for the ESP32 chip, I don't think it's likely that we will implement it. In newer chips, the memory layout is more linear and there is no need to allocate memory from IRAM.kindaTall wrote: Is it in anyway possible to implement something like this on the backend, so that write/reads to Instruction RAM are never floating-point operations, but instead take this detour?
Users browsing this forum: Baidu [Spider] and 109 guests