How it move some of code to IRAM?WiFive wrote:There is only 2 solution: use less ram or add more external ram (wrover). Maybe can move some things to iram if you are close to the limit.
Please explain with example code.
How it move some of code to IRAM?WiFive wrote:There is only 2 solution: use less ram or add more external ram (wrover). Maybe can move some things to iram if you are close to the limit.
http://esp-idf.readthedocs.io/en/latest ... alloc.htmlIf a certain memory structure is only addressed in 32-bit units, for example an array of ints or pointers, it can be useful to allocate it with the MALLOC_CAP_32BIT flag. This also allows the allocator to give out IRAM memory; something which it can’t do for a normal malloc() call. This can help to use all the available memory in the ESP32.
Thanks for quick response.WiFive wrote:http://esp-idf.readthedocs.io/en/latest ... alloc.htmlIf a certain memory structure is only addressed in 32-bit units, for example an array of ints or pointers, it can be useful to allocate it with the MALLOC_CAP_32BIT flag. This also allows the allocator to give out IRAM memory; something which it can’t do for a normal malloc() call. This can help to use all the available memory in the ESP32.
Users browsing this forum: No registered users and 84 guests