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
I'm trying to add in an external library into my project with debug symbols enabled. In order to do this, I do the normal CMake process of FetchContent_Declare followed by FetchContent_MakeAvailable. This successfully compiles, however it is currently crashing whenever I do a library call. I suspect the reason is due to the compiler flags not being the same.
I have setup my STM32CubeIDE for debugging(which works) according to this discussion, so I know debugging works in general.
What do I need to pass to the library through the FetchContent call in order for all of the compiler flags to be set appropriately? Ideally I don't want to have to modify the CMakeLists.txt for the external library to add any zephyr-specific functionality.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to add in an external library into my project with debug symbols enabled. In order to do this, I do the normal CMake process of
FetchContent_Declare
followed byFetchContent_MakeAvailable
. This successfully compiles, however it is currently crashing whenever I do a library call. I suspect the reason is due to the compiler flags not being the same.Example compile call for library:
Example compile call for the main.c file:
I have setup my STM32CubeIDE for debugging(which works) according to this discussion, so I know debugging works in general.
What do I need to pass to the library through the
FetchContent
call in order for all of the compiler flags to be set appropriately? Ideally I don't want to have to modify the CMakeLists.txt for the external library to add any zephyr-specific functionality.Beta Was this translation helpful? Give feedback.
All reactions