2023-06-01 15:58:02 +07:00
|
|
|
#set(MCU_VARIANT MIMXRT1011)
|
|
|
|
set(JLINK_DEVICE STM32G0B1RE)
|
|
|
|
|
2023-06-02 15:26:16 +07:00
|
|
|
set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/STM32G0B1RETx_FLASH.ld)
|
2023-06-02 13:27:18 +07:00
|
|
|
set(LD_FILE_IAR ${ST_CMSIS}/Source/Templates/iar/linker/stm32g0b1xx_flash.icf)
|
2023-06-01 15:58:02 +07:00
|
|
|
|
2023-06-02 15:26:16 +07:00
|
|
|
set(STARTUP_FILE_GNU ${ST_CMSIS}/Source/Templates/gcc/startup_stm32g0b1xx.s)
|
2023-06-02 13:27:18 +07:00
|
|
|
set(STARTUP_FILE_IAR ${ST_CMSIS}/Source/Templates/iar/startup_stm32g0b1xx.s)
|
2023-06-01 15:58:02 +07:00
|
|
|
|
|
|
|
function(update_board TARGET)
|
|
|
|
target_compile_definitions(${TARGET} PUBLIC
|
|
|
|
STM32G0B1xx
|
|
|
|
#HSE_VALUE=8000000U
|
|
|
|
)
|
|
|
|
endfunction()
|