Forum : ARM
Original Post
Post Information | Post |
---|---|
August 21, 2019 - 6:01pm
|
Ride7 v7.36.11 and Rkit-ARM v1.36.11 don't support STM32F3x serials. So I installed the newest Ride7 v7.70.19 and R-kite-Arm v1.70.19. After installation, my old project compilation has a lot of warnings and 1 error. For exmple: D:\delete\Cricket Crystal STM32F103ZET6_uC PA Final v1.2 +HV no stop\main.c:258:3: warning: implicit declaration of function 'I2C1and2_Configuration' [-Wimplicit-function-declaration] D:\delete\Cricket Crystal STM32F103ZET6_uC PA Final v1.2 +HV no stop\main.c:271:3: warning: implicit declaration of function 'Timer6_Configuration' [-Wimplicit-function-declaration] collect2.exe: error: ld returned 1 exit status Could you please help me solve this problem? Thanks!
|
Hello,
About the warning messages:
A missing predeclaration of a function are not really considered as an error and the legacy C used to assume that an undeclared function returns an "int" by default. Today, a warning is considered as a 'minimal' message when such a situation is encountered. It is recommended to add the missing declarations. If you prefer to keep untouched your source files and to discard the warning messages, you can disable these warning by adding in the 'more options' field the command:
-Wno-implicit
Regarding the linker message: this 'error' follow the real error that does not appear for unknown reasons. I suggest you look at the map file (listing from the linker) to check whether the real error is better presented..
Francis
magnet_stm32f103zet6_uc.txt
I found the map file,but I don't understand the meaning. I changed it to .txt file and uploaded here. Also.more link info as following:
Running: LD Linker
"C:\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-gcc.exe" -u _start -u _Minimum_Stack_Size -mcpu=cortex-m3 -mthumb -specs=nano.specs -specs=nosys.specs -Wl,-T -Xlinker "D:\delete\Cricket Crystal STM32F103ZET6_uC PA Final v1.2 +HV no stop\Magnet STM32F103ZET6_uC.elf.ld" -Wl,-static -Wl,--gc-sections -g3 -Wl,-Map -Xlinker "D:\delete\Cricket Crystal STM32F103ZET6_uC PA Final v1.2 +HV no stop\Magnet STM32F103ZET6_uC.map" -N -nostartfiles
C:\Raisonance\Ride\Lib\ARM\startup\startup_stm32f103xe.o: In function `LoopFillZerobss':
(.text.Reset_Handler+0x26): undefined reference to `SystemInit'
D:\delete\Cricket Crystal STM32F103ZET6_uC PA Final v1.2 +HV no stop\main.o: In function `main':
D:\delete\Cricket Crystal STM32F103ZET6_uC PA Final v1.2 +HV no stop/main.c:258: undefined reference to `I2C1and2_Configuration'
collect2.exe: error: ld returned 1 exit status
Error Code: 0x1
Build failed
Could you please take a look?
Thanks!
Maggie