Any hints for getting more task memory
Any hints for getting more task memory
I'm running out of MALLOC_CAP_8BIT bit memory. I've been going through my app and trying to free up as much as I can. Reducing stack size where I can. Getting rid of .bss declared arrays and doing a dynamically alloc/free instead. Even to the point of allocating 32 bit and breaking it into 8 or 16 bit pieces to work with. Just wondering if there is anything in the SDK components that can be told to use 32 bit?
Re: Any hints for getting more task memory
You can try to play with settings in menuconfig. WiFi buffers, mbedTLS buffer and some other settings. If you are using only bluetooh LE then you can free classic bluetooth stack or in case you are using just classic bluetooth you can free BLE stack. Logging also is taking some heap.
Re: Any hints for getting more task memory
Yep, did all that. We are going to get SPIRAM, like is on the WROVER. Is that 32bit only? I'm under the impression that it is. Although if it caches in 8bit, then it wouldn't be? So maybe I can do 16 bit access on it. But not tasks?
John
John
Re: Any hints for getting more task memory
Since BLE is only for configuring the device, I'm thinking that on boot if it's not configured then go into BLE mode. If is configured then go to normal mode. So I could avoid any BLE dynamic allocation in normal mode. But there might still be some static since it's linked.
John A
John A
Who is online
Users browsing this forum: Baidu [Spider] and 77 guests