Skip to content

Commit e302e2e

Browse files
author
mean
committed
[stm32/esp32] update examples
1 parent aad6cb4 commit e302e2e

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

ArduinoToolchainStm32.cmake

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,10 @@ IF(NOT EXISTS "${PLATFORM_TOOLCHAIN_PATH}/${STM32_TOOLCHAIN_PREFIX}gcc")
3131
FATAL_BANNER( "!! PLATFORM_TOOLCHAIN_PATH does not point to a valid toolchain (arm-none-eabi-gcc....)!! (${PLATFORM_TOOLCHAIN_PATH})")
3232
ENDIF()
3333
#
34-
IF(EXISTS "${PLATFORM_PATH}/STM32F1")
35-
MESSAGE(STATUS "Looks like RogerClark flavor...")
34+
IF(EXISTS "${PLATFORM_PATH}/boards.txt")
3635
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 "")
4138
FATAL_BANNER( "!! PLATFORM_PATH does not point to valid STM32 arduino files!! (${PLATFORM_PATH})")
4239
ENDIF()
4340
#

example/stm32/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ cmake_minimum_required(VERSION 3.0)
99
SET(PLATFORM_ARCHITECTURE "STM32F1")
1010
# and installation for extra arduino files AND toolchain (compiler...)
1111
# 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")
1313
# Path to the platform folder
1414
# 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")
1717
# and here we go
1818
SET(CMAKE_TOOLCHAIN_FILE cmake/ArduinoToolchain.cmake)
1919
MESSAGE(STATUS "Starting hello-stm32")

0 commit comments

Comments
 (0)