h2zero / NimBLE-Arduino

A fork of the NimBLE library structured for compilation with Arduino, for use with ESP32, nRF5x.
https://h2zero.github.io/NimBLE-Arduino/
Apache License 2.0
700 stars 146 forks source link

IRAM configuration question #533

Closed pabloandresm closed 4 months ago

pabloandresm commented 1 year ago

Hi,

Would it be possible to configure the use of IRAM code?

Currently the NimBLE is using a lot of IRAM functions, and it would be nice to be able to configure not to use that much. Maybe a FULL/MEDIUM/MINIMUM thingy.

I can see configuration for PSRAM usage if present, but nothing regarding IRAM, and very soon I end up with "ld.exe: IRAM0 segment data does not fit."

Maybe there is and I've missed it.

h2zero commented 1 year ago

This library does not use IRAM unless you have enabled using memory pools. The functions that use this are from the upstream esp-nimble repo.