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
message(TRACE "FindCMSIS: full device name match for COMP ${COMP}, DEVICES is ${DEVICES}")
57
62
else()
58
63
set(FAMILY ${CMAKE_MATCH_1})
59
-
stm32_get_devices_by_family(DEVICES FAMILY ${FAMILY} CORE ${CORE})
64
+
stm32_get_devices_by_family(DEVICES FAMILY ${FAMILY})
65
+
message(TRACE "FindCMSIS: family only match for COMP ${COMP}, DEVICES is ${DEVICES}")
60
66
endif()
61
67
62
68
if(CMAKE_MATCH_3)
63
69
set(CORE ${CMAKE_MATCH_3})
64
70
set(CORE_C "::${CORE}")
65
71
set(CORE_U "_${CORE}")
72
+
set(CORE_Ucm "_c${CORE}")
73
+
string(TOLOWER ${CORE_Ucm} CORE_Ucm)
74
+
message(TRACE "FindCMSIS: core match in component name for COMP ${COMP}. CORE is ${CORE}")
66
75
else()
67
76
unset(CORE)
68
77
unset(CORE_C)
69
78
unset(CORE_U)
79
+
unset(CORE_Ucm)
70
80
endif()
71
81
72
82
string(TOLOWER ${FAMILY} FAMILY_L)
73
83
74
84
if((NOT STM32_CMSIS_${FAMILY}_PATH) AND (NOT STM32_CUBE_${FAMILY}_PATH))
85
+
# try to set path from environment variable. Note it could be ...-NOT-FOUND and it's fine
75
86
set(STM32_CUBE_${FAMILY}_PATH $ENV{STM32_CUBE_${FAMILY}_PATH} CACHEPATH"Path to STM32Cube${FAMILY}")
76
87
endif()
77
88
78
89
if((NOT STM32_CMSIS_${FAMILY}_PATH) AND (NOT STM32_CUBE_${FAMILY}_PATH))
79
90
set(STM32_CUBE_${FAMILY}_PATH /opt/STM32Cube${FAMILY}CACHEPATH"Path to STM32Cube${FAMILY}")
80
91
message(STATUS"Neither STM32_CUBE_${FAMILY}_PATH nor STM32_CMSIS_${FAMILY}_PATH specified using default STM32_CUBE_${FAMILY}_PATH: ${STM32_CUBE_${FAMILY}_PATH}")
0 commit comments