-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add strip support to esp-lp-hal #2121
Comments
How did you measure this? iirc |
Huh, |
On which file are you running this command, on the ELF, i.e
I'm not sure I follow this bit, but maybe @bjoernQ knows what you mean? |
If you want to see the size of code/data in memory you could use something like This outputs e.g.
i.e. 1396 bytes ESP-IDF uses its own mechanism to build and include LP-core code - see https://github.com/espressif/esp-idf/blob/59e18382702b6986be3d3f55e9ac7763c1397cf7/components/ulp/cmake/IDFULPProject.cmake#L194-L198 - TL;DR it's using |
I'm running it on I got confused at this point, how do I get the bare memory which will be putted to rtc memory and executed? I think it's the file I wrote the path above? |
No - that's the elf - running |
Oh... Yea, now strip doesn't do anything... Nevermind
Thanks for clearing out my confusion 😄 |
When trying to:
The program that tries to load the binary complains that it's not a ULP program. That's because strip removes the
__ULP_MAGIC_
symbol. I was not able to keep it via linker script magic. The work around I was able to do is removing argument support:main...Szybet:esp-hal:esp-lp-hal-strip
I don't know if it's possible to remain the symbol with strip, but it's worth it. For a simple blinky program it saves 1-2 Kb. Also everything seems to work fine, I just need to:
I don't know the perfect solution for this, maybe a feature but I have no idea if they would work with those macros.
Any thoughts?
The text was updated successfully, but these errors were encountered: