AnsweredAssumed Answered

Help to put together gcc-arm-none-eabi and STM32Cube

Question asked by valente.renan.001 on Oct 9, 2014
Latest reply on Oct 16, 2014 by valente.renan.001
Hello,

I'm very new to STM32, I recently switched from Microchip platform and I'm working on a Mac (which seems to make everything harder).

I followed this very nice tutorial STM32F3DISCOVERY on Mac OS X using Eclipse, GCC ARM and OpenOCD which got me up and running with the blink example with the STM32FDiscovery.

Them I download the STM32CubeF3 and I'm trying to build the "GPIO_IOToggle"example.

There is no Eclipse example and neither I know how to import (or if its possible), them I started a blank project with my toolchain, which just gave me a blank main file.

Them I add/replaced the .c and .h in the folders, when built I got a bunch of errors, because wrong paths I believe...

After adding paths, this is my actual config:

I've add 

#include <stdint.h>

#include <stdio.h>

To main.c

Now I'm getting this weird error: 

/Users/valente/WorkSpace/STM32Resources/STM32Cube_FW_F3_V1.0.0/Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_tim.h:1325:24: error: unknown type name 'TIM_TypeDef'
 void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config);

But the files are all included...

Any help is appreciated.

Greetings.

Renan




Outcomes