Skip to content

Commit a1df473

Browse files
Update m0 compiler version (#490) (#491)
* Update m0 compiler version * Update mcpu flag * Update libmicroros for test * Revert "Update libmicroros for test" This reverts commit a6c53d8. (cherry picked from commit 21feb5b) Co-authored-by: Antonio Cuadros <[email protected]>
1 parent 70d758a commit a1df473

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extras/library_generation/cortex_m0_toolchain.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set(CMAKE_CXX_COMPILER $ENV{TOOLCHAIN_PREFIX}g++)
88
SET(CMAKE_C_COMPILER_WORKS 1 CACHE INTERNAL "")
99
SET(CMAKE_CXX_COMPILER_WORKS 1 CACHE INTERNAL "")
1010

11-
set(FLAGS "-O2 -fsingle-precision-constant -ffunction-sections -fdata-sections -fno-exceptions -mcpu=cortex-m0 -nostdlib -mthumb -D'RCUTILS_LOG_MIN_SEVERITY=RCUTILS_LOG_MIN_SEVERITY_NONE'" CACHE STRING "" FORCE)
11+
set(FLAGS "-O2 -fsingle-precision-constant -ffunction-sections -fdata-sections -fno-exceptions -mcpu=cortex-m0plus -nostdlib -mthumb -D'RCUTILS_LOG_MIN_SEVERITY=RCUTILS_LOG_MIN_SEVERITY_NONE'" CACHE STRING "" FORCE)
1212

1313
set(CMAKE_C_FLAGS_INIT "-std=c11 ${FLAGS} -DCLOCK_MONOTONIC=0 -D'__attribute__(x)='" CACHE STRING "" FORCE)
1414
set(CMAKE_CXX_FLAGS_INIT "-std=c++14 ${FLAGS} -fno-rtti -DCLOCK_MONOTONIC=0 -D'__attribute__(x)='" CACHE STRING "" FORCE)

extras/library_generation/library_generation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fi
7272
if [[ " ${PLATFORMS[@]} " =~ " cortex_m0 " ]]; then
7373
rm -rf firmware/build
7474

75-
export TOOLCHAIN_PREFIX=/uros_ws/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-
75+
export TOOLCHAIN_PREFIX=/uros_ws/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-
7676
ros2 run micro_ros_setup build_firmware.sh /project/extras/library_generation/cortex_m0_toolchain.cmake /project/extras/library_generation/colcon_verylowmem.meta
7777

7878
find firmware/build/include/ -name "*.c" -delete

0 commit comments

Comments
 (0)