Skip to content

Commit 9bc5591

Browse files
ValentiWorkLearningVKorniienko
andauthored
Updated GCC ARM toolchain to 10.3 none-eabi (#32)
* Added extra optimization flags for build [CMAKE][BUILD] * Update README.md * Updated toolchain to GCC10.3 [TOOLCHAIN] * Updated toolchain to GCC10.3 [TOOLCHAIN] Co-authored-by: VKorniienko <VKorniienko@VKORNIIENKO>
1 parent 041e2b0 commit 9bc5591

4 files changed

Lines changed: 12 additions & 8 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,21 @@ jobs:
7676
id: cache-gcc-toolchain
7777
uses: actions/cache@v2
7878
with:
79-
path: ${{ github.workspace }}/gcc_toolchain_10_2_q4
80-
key: ${{runner.os}}-toolchain-v10_2_q4
79+
path: ${{ github.workspace }}/gcc_toolchain_10_3
80+
key: ${{runner.os}}-toolchain-v10_3
8181

8282
- name: Get the latest arm-gcc-none-eabi-gcc
8383
uses: wei/wget@v1
8484
if: steps.cache-gcc-toolchain.outputs.cache-hit != 'true'
8585
id: download-arm-gcc
8686
with:
87-
args: 'https://developer.arm.com/-/media/Files/downloads/gnu-rm/10-2020q4/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2'
87+
args: 'https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.07/gcc-arm-none-eabi-10.3-2021.07-x86_64-linux.tar.bz2'
8888

8989
- name: Unpack arm-gcc-compiler
9090
if: steps.cache-gcc-toolchain.outputs.cache-hit != 'true'
9191
run: |
92-
mkdir gcc_toolchain_10_2_q4
93-
tar -xjf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 --directory ${{ github.workspace }}/gcc_toolchain_10_2_q4
92+
mkdir gcc_toolchain_10_3
93+
tar -xjf gcc-arm-none-eabi-10.3-2021.07-x86_64-linux.tar.bz2 --directory ${{ github.workspace }}/gcc_toolchain_10_3
9494
9595
- name: Cache NordicSDK
9696
id: cache-nordic-sdk
@@ -120,7 +120,7 @@ jobs:
120120
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
121121
cmakeListsTxtPath: ${{ github.workspace }}/Firmware/CMakeLists.txt
122122
cmakeBuildType: Debug
123-
cmakeAppendedArgs : '-DTARGET_PLATFORM:STRING="ARM_CORTEX" -DEXECUTE_MCU_FLASHING=OFF -DCMAKE_BUILD_TYPE:STRING=Debug -DREDUCE_LVGL_BINARY_SIZE=ON -DPACKAGE_TESTS=OFF -DNRF5_SDK_PATH=${{ github.workspace }}/Nrf52SDKv16_0 -DARM_NONE_EABI_TOOLCHAIN_PATH:PATH=${{ github.workspace }}/gcc_toolchain_10_2_q4/gcc-arm-none-eabi-10-2020-q4-major'
123+
cmakeAppendedArgs : '-DTARGET_PLATFORM:STRING="ARM_CORTEX" -DEXECUTE_MCU_FLASHING=OFF -DCMAKE_BUILD_TYPE:STRING=Debug -DREDUCE_LVGL_BINARY_SIZE=ON -DPACKAGE_TESTS=OFF -DNRF5_SDK_PATH=${{ github.workspace }}/Nrf52SDKv16_0 -DARM_NONE_EABI_TOOLCHAIN_PATH:PATH=${{ github.workspace }}/gcc_toolchain_10_3/gcc-arm-none-eabi-10.3-2021.07'
124124
buildWithCMake: true
125125

126126
# # Runs a set of commands using the runners shell

‎Firmware/CMakeLists.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
cmake_minimum_required(VERSION 3.14)
22

3+
set (CMAKE_EXPORT_COMPILE_COMMANDS ON)
4+
35
set( CONAN_DISABLE_CHECK_COMPILER TRUE )
46
set( TARGET_PLATFORM "FIRMWARE_SIMULATOR" CACHE STRING "Target platform for application building")
57
message( "Current building platform is ${TARGET_PLATFORM}")
@@ -113,6 +115,8 @@ if( ${TARGET_PLATFORM} STREQUAL "ARM_CORTEX" )
113115
PRIVATE
114116
-O0
115117
-fcoroutines
118+
-fnothrow-opt
119+
-fno-threadsafe-statics
116120
)
117121
endif()
118122

‎Firmware/cmake/base.cmake‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
if( NOT ARM_NONE_EABI_TOOLCHAIN_PATH )
22
#set(ARM_NONE_EABI_TOOLCHAIN_PATH "C:/gcc_none_eabi_9_2_1")
3-
set(ARM_NONE_EABI_TOOLCHAIN_PATH "C:/gcc_arm_none_eabi_10_2_q4")
3+
set(ARM_NONE_EABI_TOOLCHAIN_PATH "C:/gcc_arm_none_eabi_10_3")
44
message(STATUS "No ARM_NONE_EABI_TOOLCHAIN_PATH specified, using default: " ${ARM_NONE_EABI_TOOLCHAIN_PATH})
55
else()
66
message(STATUS " ARM_NONE_EABI_TOOLCHAIN_PATH specified using: " ${ARM_NONE_EABI_TOOLCHAIN_PATH})

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# GradWork
22
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/08c0d7971b704b748f2d73a1324b52d2)](https://www.codacy.com/manual/kornienko-vr/GradWork?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=ValentiWorkLearning/GradWork&amp;utm_campaign=Badge_Grade)![CI](https://github.com/ValentiWorkLearning/GradWork/workflows/CI/badge.svg?branch=dev%2Fdevelop)
33

4-
Development board for smart-handwatch based on NRF52832 E73 module with C++17/CMake/VSCode based development flow
4+
Development board for smart-handwatch based on NRF52832 E73 module with C++20/CMake/VSCode based development flow
55

66
* Uses the C++20 features as wide as possible
77
* Uses С++20 coroutines for non-blocking interactions

0 commit comments

Comments
 (0)