You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be able to "hand over" RTT from a bootloader to an app, I would like to specify the linker sections, so that I can place them on the same addresses in RAM. One can do that with SEGGER_RTT_SECTION and SEGGER_RTT_BUFFER_SECTION in the reference implementation.
I tried to pass it in as an env variable / cfg. But "attribute values must be literals" means that something like #[cfg_attr(section_cb, link_section = section_cb)] is not possible to write.
I guess another option is to have optional parameters to the init_rtt macro?
I don't have much experience with macros, but something like this?
Hi,
To be able to "hand over" RTT from a bootloader to an app, I would like to specify the linker sections, so that I can place them on the same addresses in RAM. One can do that with
SEGGER_RTT_SECTION
andSEGGER_RTT_BUFFER_SECTION
in the reference implementation.I tested it out here NickeZ@c5e92bd and it works fine.
I use it with this addition to my linker file (before any other RAM entries):
Perhaps we could read those values from the environment, so that the app can specify them in the
[env]
section in.cargo/config.toml
?What do you think?
The text was updated successfully, but these errors were encountered: