Skip to content

Commit b42d3e4

Browse files
committed
board test running with cmake
1 parent fab48e5 commit b42d3e4

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

.idea/runConfigurations/rt1010.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/device/board_test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/../../../hw/bsp/family_support.cmake)
1111
# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)
1212
family_get_project_name(PROJECT ${CMAKE_CURRENT_LIST_DIR})
1313

14-
project(${PROJECT})
14+
project(${PROJECT} C CXX ASM)
1515

1616
# Checks this example is valid for the family and initializes the project
1717
family_initialize_project(${PROJECT} ${CMAKE_CURRENT_LIST_DIR})

hw/bsp/imxrt/family.cmake

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,8 @@ else ()
2626
target_link_options(${PROJECT} PUBLIC
2727
--specs=nosys.specs
2828
--specs=nano.specs
29-
#-lgcc -lm -lnosys
3029
)
3130

32-
# target_link_libraries(${PROJECT} PUBLIC
33-
# -lgcc -lm -lnosys
34-
# )
35-
3631
target_sources(${PROJECT} PUBLIC
3732
# TinyUSB
3833
${TOP}/src/portable/chipidea/ci_hs/dcd_ci_hs.c
@@ -53,6 +48,10 @@ else ()
5348
target_sources(${PROJECT} PUBLIC
5449
${SDK_DIR}/devices/${MCU_VARIANT}/gcc/startup_${MCU_VARIANT}.S
5550
)
51+
52+
target_link_options(${PROJECT} PUBLIC
53+
"LINKER:--script=${SDK_DIR}/devices/${MCU_VARIANT}/gcc/${MCU_VARIANT}xxxxx_flexspi_nor.ld"
54+
)
5655
endif ()
5756

5857
target_include_directories(${PROJECT} PUBLIC

0 commit comments

Comments
 (0)