Open zisi opened 3 years ago
@zisi Please have a look at readme and mutlicore examples. As H7 family contains dual core devices you need to specify the core.
This code is working:
stm32_fetch_cube(H7)
find_package(CMSIS COMPONENTS STM32H743VI_M7 REQUIRED)
set(PROJECT_SOURCES
main.c
)
add_executable(stm32-fetch-h7 ${PROJECT_SOURCES})
target_link_libraries(stm32-fetch-h7 CMSIS::STM32::H743VI::M7 STM32::NoSys)
stm32_print_size_of_target(stm32-fetch-h7)
@Hish15 We need to specify the core even on mono-core devices of the H7 family. Is this expected or should we handle it ?
If we handle it I suppose we should handle the _M7
variant also for mono-core devices? note it would be different of other pure mono-core families...
Thanks! Also i found a project, https://github.com/Hish15/DustSucker that helps me. Maybe in README could be added some projects that used stm32-cmake.
We don't really know projects using stm32-cmake but there are already some examples that should be enough to start with. I plan to add some more/better H7 example as your question comes regularly.
Describe the bug I try to run the fetch-cube example but instead of use F4, I use H7. I got this:
Sources to reproduce
Steps to reproduce
Expected behavior I expect to build by using make as step 4.
Screenshots
Environment (please complete the following information):
Additional context