Skip to content

Commit

Permalink
Merge pull request #344 from xanthio/fix/multicore-tests
Browse files Browse the repository at this point in the history
Fix multicore CMSIS tests
  • Loading branch information
Hish15 authored Jul 7, 2024
2 parents 369b66d + aae8014 commit e89dfc5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/cmsis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ if(FETCH_ST_SOURCES)
stm32_fetch_cmsis(${TEST_FAMILIES})
endif()

find_package(CMSIS REQUIRED)
list(TRANSFORM TEST_FAMILIES PREPEND STM32 OUTPUT_VARIABLE TEST_FAMILIES_LONG_NAMES)
find_package(CMSIS COMPONENTS "${TEST_FAMILIES_LONG_NAMES}" REQUIRED)

set(SOURCES main.c)

Expand All @@ -34,7 +35,7 @@ foreach(FAMILY ${TEST_FAMILIES})
add_executable(cmsis-test-${DEVICE} ${SOURCES})
target_link_libraries(cmsis-test-${DEVICE} CMSIS::STM32::${DEVICE} STM32::NoSys)
else()
stm32_get_cores(CORES FAMILY ${FAMILY} DEVICE ${DEVICE})
stm32_get_cores(DEV_CORES FAMILY ${FAMILY} DEVICE ${DEVICE})
foreach(CORE ${DEV_CORES})
stm32_get_memory_info(FAMILY ${FAMILY} DEVICE ${DEVICE} CORE ${CORE} FLASH SIZE FLASH_SIZE)
stm32_get_memory_info(FAMILY ${FAMILY} DEVICE ${DEVICE} CORE ${CORE} RAM SIZE RAM_SIZE)
Expand Down

0 comments on commit e89dfc5

Please sign in to comment.