-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
target_linker_script with ULP firmware (IDFGH-14115) #14921
Comments
Hello @chrisruk , Which target are you using? ESP32-S3 or ESP32-C6? Also, which version of IDF are you working on? On the latest version of IDF, you can add your own linker scripts to the linking phase with plain CMake commands. For example, let's say you have a file
Assuming that Make sure to add is in the LP |
Hi @o-marshmallow, Thanks a lot for your reply, I'm using ESP32-C6 and esp-idf master, ce60853. I will try your suggestion, but I'm not quite sure where to put your text. For example, my repo is structured similar to this repo - https://github.com/espressif/esp-idf/tree/master/examples/system/ulp/lp_core/lp_uart/lp_uart_print But I assume you're saying your text doesn't go in - If so, where would I place it? Many thanks for the reply! |
Hello @chrisruk ! Thanks for the confirmation. I see what you mean, the function I was relying on the In such file, you can add the snippet I sent previously and you should be able to integrate your lienr script file to your linking. |
Hi @o-marshmallow, Thanks a lot for your help! I just tried the build system you pointed me to and added the text you gave It worked well, I was able to add sections that appeared in both: Will close this issue now, thanks again! |
@chrisruk Thanks for your feedback! |
Answers checklist.
General issue report
I'm able to make use of the following syntax in my
main/CMakeLists.txt
in order to add a custom linker script configuration to my main application.
However it doesn't appear to be possible to do the same for the ULP firmware I'm creating.
I tried something like:
But that doesn't appear to have any effect.
I've found I can apply my changes to IDF itself, by modifying
components/ulp/ld/lp_core_riscv.ld
and have them take effect, but I don't want to modify IDF itself.Just wondering if anyone could point me in the right direction.
Many thanks.
The text was updated successfully, but these errors were encountered: