LIBPATHS = -L$(BASEDIR)/lib/STM32F4xx_StdPeriph_Driver INCLUDE_PATHS += -I$(BASEDIR)/lib/STM32F4xx_StdPeriph_Driver/include INCLUDE_PATHS = -I$(BASEDIR)/lib/cmsis/stm32f4xx -I$(BASEDIR)/lib/cmsis/include -I$(BASEDIR) # Default to STM32F411圎 if no device is passed LDFLAGS = $(CPU) -mlittle-endian -mthumb-interwork -Wl,-gc-sections,-Map=$(OUTPATH)/$(PROJ_NAME).map,-cref -specs=nano.specsĬFLAGS += -fsingle-precision-constant -Wdouble-promotionĬFLAGS += -mfpu=fpv4-sp-d16 -mfloat-abi=hard # changing these as hardfloat and softfloat are notĬFLAGS = $(CPU) -c -std=gnu99 -g -O2 -Wall ![]() # NOTE that you have to run make clean after # Add assembly source files here or use $(wildcard *.s) for all. I have a feeling its related to the Makefile or linker script so I will include them below. I don't have the knowledge to know what the problem is, especially as there is no error message, so it is hard for me to debug. However, none of the LEDs are blinking every second. I then run make flash, which also completes successfully. ![]() When I build my project using the Makefile, with the make command, everything works successfully. GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL GPIO_InitStructure.GPIO_OType = GPIO_OType_PP GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT ![]() GPIO_InitStructure.GPIO_Pin = GPIO_Pin_13 RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOD, ENABLE) The main.c source file should contain the code to blink an LED on the board every second. I am using the STD_Periph library to handle interfacing with the actual hardware and CMSIS for hardware abstraction of the actual processor core and peripherals (I think). I am not using any IDEs as I want to do everything from scratch. I want to make sure I have set up my first embedded software project up correctly and therefore am trying to blink an LED on my NUCLEO-F411RE board (STM32F411RE micro controller).
0 Comments
Leave a Reply. |