ledieuaeris
Newbie level 1
Error in simple code for a Cortex M3 (stm32F103)
Hi,
I just started to program an ARM with Keil. To understand how to do that, I have written that:
#include <stm32f10x_lib.h>
int main(void){
GPIO_InitTypeDef GPIO_InitStructure;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_15;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_Init( GPIOD, &GPIO_InitStructure);
}
Keil said me:
arm.axf: Error: L6218E: Undefined symbol GPIO_Init (referred from main.o).
Can you say me what's wrong and how to make this code working.
Thanks,
Michel
PS: Sorry for my bad english
Hi,
I just started to program an ARM with Keil. To understand how to do that, I have written that:
#include <stm32f10x_lib.h>
int main(void){
GPIO_InitTypeDef GPIO_InitStructure;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_15;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_Init( GPIOD, &GPIO_InitStructure);
}
Keil said me:
arm.axf: Error: L6218E: Undefined symbol GPIO_Init (referred from main.o).
Can you say me what's wrong and how to make this code working.
Thanks,
Michel
PS: Sorry for my bad english
Last edited: