We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Good day, in order to become familiar with the MCBSTR9 I first modified the Blinky program. That wasn't too difficult. But stage two was to write the same program using my own syntax and referring to the ST Software Library (www.st.com/.../12238.pdf). Done this, I yet only tried to set up the GPIO7:
#include<91x_map.h> #include<91x_GPIO.h> int main(void){ GPIO_InitTypeDef GPIO_Initialiser; GPIO_Initialiser.GPIO_Pin = GPIO_Pin_7; GPIO_Initialiser.GPIO_Direction = GPIO_PinOutput; GPIO_Initialiser.GPIO_Type = GPIO_Type_PushPull; GPIO_Initialiser.GPIO_IPConnected = GPIO_IPConnected_Disable; GPIO_Initialiser.GPIO_Alternate = GPIO_InputAlt1; GPIO_Init(GPIO7, &GPIO_Initialiser); }
Compiling states: Blinky2.axf: Error: L6218E: Undefined symbol GPIO_Init (referred from blinky2.o).
As you might guess, my experience in both uCs and C is approaching nil.
Helpful input appreciated.
Cheers Nik
"Compiling states: Blinky2.axf: Error: L6218E: Undefined symbol GPIO_Init (referred from blinky2.o)."
Actually, that would be "Linking states" as indicated by the error code's 'L' prefix, so did you include 91x_gpio.c for separate compilation to an object file to link to or add the ST library to link to?
There is probably a setting that you are missing that you might search for looking at the working Blinky example's settings.
You were absolutely right about the linking. I did now include all the *.c files for the uC. Now compiling, linking etc. works. Thanks.