Add custom esp32 libs to save some iram space#4324
Conversation
|
I'd not overwrite the files but host the modified tool chain on a GitHub and just link it instead of the stock one. Pretty much like we use the rp2040 of earlphilower |
|
@caveman99 I totally agree, and spent several hours trying to do exactly that, and failed to find the magic incantation to make it work. I'm sure it's possible, but this approach is what actually compiled and worked. I'll take another shot at including it as a framework-package, and see if I can find how to do it. Edit: Yeah, once again I hit the same problem, rooted in the frustrating lack of documentation on how to do this. I can specify my compiled libs using |
|
@jp-bennett You may want to grab a platformio package zip from https://github.com/mskvortsov/meshtastic-esp32-arduino-libs, I've put your sdkconfig options into there. And I'm ok if you want to import that repo into the meshtastic github organization. |
This adds the results from a build of https://github.com/espressif/esp32-arduino-lib-builder v4.4 with the extra sdkconfig options of:
Which reduces iram usage from
Used static IRAM: 130970 bytes ( 102 remain, 99.9% used)toUsed static IRAM: 113762 bytes ( 17310 remain, 86.8% used)This pr turns it on for just the tbeam target, since that's all I've tested it on.