Skip to content

Commit 346943f

Browse files
committed
bump reactor and update CmakeGen
1 parent 61d84a6 commit 346943f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,13 +560,13 @@ private static String setUpMainTargetStm32(
560560
}
561561

562562
code.pr("set(CPU_PARAMETERS -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp)");
563-
code.pr("enable_language(C CXX ASM");
563+
code.pr("enable_language(C CXX ASM)");
564564
code.newLine();
565565

566566
// Define linker and startup scropts
567567
if (boardProperties.length < 1 || boardProperties[0].equals("")) {
568568
// By default, we set it to STM32f446RE
569-
code.pr("set(STARTUP_SCRIPT ${STM_DIR}/startup_stm32f446xx.s)");
569+
code.pr("set(STARTUP_SCRIPT ${STM_DIR}/"+ boardProperties[0].substring(0, 4) + "xx.s)");
570570
code.pr("set(MCU_LINKER_SCRIPT ${STM_DIR}/STM32F446RETx_FLASH.ld)");
571571
} else {
572572
code.pr("set(STARTUP_SCRIPT ${STM_DIR}/startup_stm32f" + boardProperties[0].substring(1, 4) + "xx.s)");

0 commit comments

Comments
 (0)