File tree Expand file tree Collapse file tree 5 files changed +9
-5
lines changed
stm32g0/boards/stm32g0b1nucleo Expand file tree Collapse file tree 5 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ function(add_board_target BOARD_TARGET)
59
59
target_compile_options (${BOARD_TARGET} PUBLIC
60
60
)
61
61
target_compile_definitions (${BOARD_TARGET} PUBLIC
62
+ CFG_EXAMPLE_MSC_READONLY
62
63
)
63
64
64
65
update_board (${BOARD_TARGET} )
Original file line number Diff line number Diff line change 1
- # set(MCU_VARIANT MIMXRT1011 )
2
- set (JLINK_DEVICE STM32G0B1RE )
1
+ set (MCU_VARIANT stm32g0b1xx )
2
+ set (JLINK_DEVICE stm32g0b1re )
3
3
4
4
set (LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR} /STM32G0B1RETx_FLASH.ld )
5
5
6
6
function (update_board TARGET )
7
7
target_compile_definitions (${TARGET} PUBLIC
8
8
STM32G0B1xx
9
- #HSE_VALUE=8000000U
10
9
)
11
10
endfunction ()
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ set(MCU_VARIANT stm32h745xx)
2
2
set (JLINK_DEVICE stm32h745xi_m7 )
3
3
4
4
set (LD_FILE_GNU ${ST_CMSIS} /Source/Templates/gcc/linker/${MCU_VARIANT}_flash_CM7.ld )
5
+ set (LD_FILE_IAR ${ST_CMSIS} /Source/Templates/iar/linker/${MCU_VARIANT}_flash_CM7.icf )
5
6
6
7
function (update_board TARGET )
7
8
target_compile_definitions (${TARGET} PUBLIC
Original file line number Diff line number Diff line change @@ -37,7 +37,10 @@ function(add_board_target BOARD_TARGET)
37
37
# Startup & Linker script
38
38
set (STARTUP_FILE_GNU ${ST_CMSIS} /Source/Templates/gcc/startup_${MCU_VARIANT}.s )
39
39
set (STARTUP_FILE_IAR ${ST_CMSIS} /Source/Templates/iar/startup_${MCU_VARIANT}.s )
40
- set (LD_FILE_IAR ${ST_CMSIS} /Source/Templates/iar/linker/${MCU_VARIANT}_flash.icf )
40
+
41
+ if (NOT DEFINED LD_FILE_IAR )
42
+ set (LD_FILE_IAR ${ST_CMSIS} /Source/Templates/iar/linker/${MCU_VARIANT}_flash.icf )
43
+ endif ()
41
44
42
45
add_library (${BOARD_TARGET} STATIC
43
46
${ST_CMSIS} /Source/Templates/system_${ST_PREFIX}.c
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ function(family_configure_example TARGET)
110
110
family_add_tinyusb (${TARGET} OPT_MCU_$ (FAMILY_MCUS ))
111
111
target_sources (${TARGET} -tinyusb PUBLIC
112
112
${TOP} /src/portable/synopsys/dwc2/dcd_dwc2.c
113
- ${TOP} /src/st/stm32_fsdev/dcd_stm32_fsdev.c
113
+ ${TOP} /src/portable/ st/stm32_fsdev/dcd_stm32_fsdev.c
114
114
)
115
115
target_link_libraries (${TARGET} -tinyusb PUBLIC board_${BOARD} )
116
116
You can’t perform that action at this time.
0 commit comments