September 30, 2009 - 6:40pm
Guest |
After installing a new version of the IDE I now have a problem with the build.
I get the following errors.
Building C:\TESTSPI\main.c
Running: GCC
\"C:\Program Files\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-gcc.exe" -MD -D_STM32F103VET6_ -D_STM3x_ -D_STM32x_ -mthumb -mcpu=cortex-m3 "C:\TESTSPI\main.c" -o "C:\TESTSPI\main.o" -I "." -I "C:\Program Files\Raisonance\Ride\Lib\ARM\include" -c -fsigned-char -D OLD_STM32LIB_USED -g -O1 -ffunction-sections -mlittle-endian
In file included from C:\TESTSPI\main.c:15:
C:\TESTSPI\/SPI.c: In function 'SPI_SendDataAddr':
C:\TESTSPI\/SPI.c:28: error: 'SPI_FLAG_TXE' undeclared (first use in this function)
C:\TESTSPI\/SPI.c:28: error: (Each undeclared identifier is reported only once
C:\TESTSPI\/SPI.c:28: error: for each function it appears in.)
C:\TESTSPI\/SPI.c: In function 'SPI_ReadDataAddr':
C:\TESTSPI\/SPI.c:45: error: 'SPI_FLAG_TXE' undeclared (first use in this function)
C:\TESTSPI\/SPI.c:54: error: 'SPI_FLAG_RXNE' undeclared (first use in this function)
C:\TESTSPI\main.c: In function 'SPI_Configuration':
C:\TESTSPI\main.c:563: error: 'SPI_IT_TXE' undeclared (first use in this function)
C:\TESTSPI\main.c: In function 'USART_Configuration':
C:\TESTSPI\main.c:679: error: 'USART_InitTypeDef' has no member named 'USART_Clock'
C:\TESTSPI\main.c:680: error: 'USART_InitTypeDef' has no member named 'USART_CPOL'
C:\TESTSPI\main.c:681: error: 'USART_InitTypeDef' has no member named 'USART_CPHA'
C:\TESTSPI\main.c:682: error: 'USART_InitTypeDef' has no member named 'USART_LastBit'
Build failed
I have removed some errors on TIM1 by copying the header file to the local folder but when I try this on the SPI and UART I still get errors.
Anyone had the same problem?
|
Hi
From which library version did you started.
It seems to me the name of these variable should be
SPI_I2S_FLAG_TXE instead of SPI_FLAG_TXE
Regards,
Matloub
On the USART it look like you now have to add USART_ClockInitTypeDef USART_ClockInitStructure;
So that the structure is visible to the complier.
I'm still having issues with the SPI.
If I define the SPI_FLAG_TXE etc then the complier seems to accept this, so it look like the complier carn't see the library.
I tried the SPI_I2S and it seems to have cleared the problem still working on the TIM1.
Why did the original examples use SPI_ and not SPI_I2S?
Thanks for that one.
Script Errors
I found another problem after reinstall my XP.
When I tried to run Ride there was a script error.
I had to install the WindowsXP-Windows2000-Script56-KB917344-x86-enu.exe this removed the script errors.
Hello
About the library:
As I said we are not responsible for the name changing.
If you have difficulties to update library you can also not use precompiled library.
Do not use default library option, do not use default start up neither default script link.
This way you can search files from the library version you were working on and add them
to your project, adding also the start up and point to your own link script file.
About WindowsXP-Windows2000-Script56-KB917344-x86-enu.exe I still do not were the problem
comes from and how it occured.
regards,
Matloub