File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,10 @@ IF(NOT EXISTS "${PLATFORM_TOOLCHAIN_PATH}/${STM32_TOOLCHAIN_PREFIX}gcc")
31
31
FATAL_BANNER ( "!! PLATFORM_TOOLCHAIN_PATH does not point to a valid toolchain (arm-none-eabi-gcc....)!! (${PLATFORM_TOOLCHAIN_PATH} )" )
32
32
ENDIF ()
33
33
#
34
- IF (EXISTS "${PLATFORM_PATH} /STM32F1" )
35
- MESSAGE (STATUS "Looks like RogerClark flavor..." )
34
+ IF (EXISTS "${PLATFORM_PATH} /boards.txt" )
36
35
SET (STM32_FLAVOR "RGCLARCK" CACHE INTERNAL "" )
37
- ELSEIF ( EXISTS "${PLATFORM_PATH} /system/STM32F1xx" )
38
- MESSAGE (STATUS "Looks like vanilla stm32duino" )
39
- SET (STM32_FLAVOR "VANILLA" CACHE INTERNAL "" )
40
- ELSE ()
36
+ ELSE (EXISTS "${PLATFORM_PATH} /boards.txt" )
37
+ #SET(STM32_FLAVOR "VANILLA" CACHE INTERNAL "")
41
38
FATAL_BANNER ( "!! PLATFORM_PATH does not point to valid STM32 arduino files!! (${PLATFORM_PATH} )" )
42
39
ENDIF ()
43
40
#
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ cmake_minimum_required(VERSION 3.0)
9
9
SET (PLATFORM_ARCHITECTURE "STM32F1" )
10
10
# and installation for extra arduino files AND toolchain (compiler...)
11
11
# Path to the toolchain, must contain arm-none-eabi-gcc,-g++ and friends
12
- SET (PLATFORM_TOOLCHAIN_PATH "/home/fx/.arduino15/./packages/arduino/tools/ arm-none-eabi-gcc/4.8.3-2014q1 /bin" )
12
+ SET (PLATFORM_TOOLCHAIN_PATH "/home/fx/Arduino_stm32/ arm-none-eabi-gcc/download/gcc-arm-none-eabi-8.2.1-1.7 /bin" )
13
13
# Path to the platform folder
14
14
# You can download it from https://github.com/rogerclarkmelbourne/Arduino_STM32.git
15
- # The last folder MUST BE arduino
16
- SET (PLATFORM_PATH "/home/fx/Arduino/hardware/arduino " )
15
+ # Go the STM32F1 path
16
+ SET (PLATFORM_PATH "/home/fx/Arduino/hardware/stm32/STM32F1 " )
17
17
# and here we go
18
18
SET (CMAKE_TOOLCHAIN_FILE cmake/ArduinoToolchain.cmake )
19
19
MESSAGE (STATUS "Starting hello-stm32" )
You can’t perform that action at this time.
0 commit comments