I have some xmem buffers I’d like to make as large as possible. I was using xavail() to figure out how much memory could be allocated, and I ran into something that seemed off.
Regardless of whether I compile to flash or ram when debugging, xavail returns the same amount of free memory.
Is this an artifact of debugging, or is the amount of xmem used the same regardless of where I’m compiling to?
If it is possible to use more of the extended memory when compiling to flash, what needs to be done to allow it?
Compiling to Flash does not mean executing from FLASH… The code is copied into RAM at startup as the execution speed from RAM is much faster. This is why there is no difference between the available XMEM in either mode.
Compiling to RAM when debugging is quicker to load and does not contribute to wear on the FLASH.
That’s what I’d figured. Thank you for confirming. Just wish the wireless libraries didn’t add in 400KB of code. Seems like it’s all coming from the WPA implementation.