Skip to content

Adding support for windows #20

@asafsirin

Description

@asafsirin

Hi there

perhaps this project could be extended with windows support. adjusted makefiles a bit to get f1 template compiled as below:
template makefile changes:
#include ./STM32-base/make/common.mk
include C:/software/stm32/STM32-base/make/common.mk

common.mk changes:

windows mod (added). changed to bash find

FIND_EXEC ?= C:/software/bshell/find.exe
PROJECT_DIR ?= C:/software/stm32/templates/STM32-base-F1-template

windows mod (replace)

#STM32_BASE_PATH   ?= ./STM32-base
#STM32_CUBE_PATH   ?= ./STM32-base-STM32Cube
STM32_BASE_PATH   ?= c:/software/stm32/STM32-base
STM32_CUBE_PATH   ?= c:/software/stm32/STM32-base-STM32Cube

windows mod (replace)

#BIN_FOLDER ?= ./bin
#OBJ_FOLDER ?= ./obj
#SRC_FOLDER ?= ./src
#INC_FOLDER ?= ./inc
BIN_FOLDER ?= $(PROJECT_DIR)/bin
OBJ_FOLDER ?= $(PROJECT_DIR)/obj
SRC_FOLDER ?= $(PROJECT_DIR)/src
INC_FOLDER ?= $(PROJECT_DIR)/inc

windows mod (replace)

#TOOLCHAIN_PATH      ?= ../../tools/bin/
TOOLCHAIN_PATH      ?= C:/software/gcc-arm/gcc-arm-none-eabi-10-2020-q4-major/bin

windows mod (replace)

#TOOLCHAIN_SEPARATOR ?=
TOOLCHAIN_SEPARATOR ?= /

output:

C:\software\stm32\templates\STM32-base-F1-template>make
C:/software/gcc-arm/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-g++ -c -specs=nosys.specs -Wall -Wextra -g -ffunction-sections -fdata-sections -D STM32F103xB -Wl,-Lc:/software/stm32/STM32-bas
e/linker,-Tc:/software/stm32/STM32-base/linker/STM32F1xx/STM32F103x8.ld -I./inc -Ic:/software/stm32/STM32-base/startup -mcpu=cortex-m3 -march=armv7-m -mlittle-endian -mthumb -masm-syntax-unified -D CA
LL_ARM_SYSTEM_INIT -Ic:/software/stm32/STM32-base-STM32Cube/CMSIS/ARM/inc -Ic:/software/stm32/STM32-base-STM32Cube/CMSIS/STM32F1xx/inc -fno-threadsafe-statics -fno-rtti -fno-exceptions -fno-unwind-tab
les c:/software/stm32/STM32-base/startup/STM32F1xx/STM32F103xB.s -o C:/software/stm32/templates/STM32-base-F1-template/obj/startup_STM32F103xB.o
C:/software/gcc-arm/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-g++ -specs=nosys.specs -Wall -Wextra -g -ffunction-sections -fdata-sections -D STM32F103xB -Wl,-Lc:/software/stm32/STM32-base/l
inker,-Tc:/software/stm32/STM32-base/linker/STM32F1xx/STM32F103x8.ld -I./inc -Ic:/software/stm32/STM32-base/startup -mcpu=cortex-m3 -march=armv7-m -mlittle-endian -mthumb -masm-syntax-unified -D CALL_
ARM_SYSTEM_INIT -Ic:/software/stm32/STM32-base-STM32Cube/CMSIS/ARM/inc -Ic:/software/stm32/STM32-base-STM32Cube/CMSIS/STM32F1xx/inc -fno-threadsafe-statics -fno-rtti -fno-exceptions -fno-unwind-tables
 C:/software/stm32/templates/STM32-base-F1-template/src/main.c c:/software/stm32/STM32-base-STM32Cube/CMSIS/STM32F1xx/src/system_stm32f1xx.c C:/software/stm32/templates/STM32-base-F1-template/obj/star
tup_STM32F103xB.o -o C:/software/stm32/templates/STM32-base-F1-template/bin/stm32_executable.elf
C:/software/gcc-arm/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-objcopy -O binary C:/software/stm32/templates/STM32-base-F1-template/bin/stm32_executable.elf C:/software/stm32/templates/STM32
-base-F1-template/bin/stm32_bin_image.bin

C:\software\stm32\templates\STM32-base-F1-template>

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions