Closed Peemouse closed 4 years ago
Hi, I think I fixed it. See my new commits. It was asking for 'syscalls.c' but it is not needed. So that could simply be deleted. However, the SW4STM32 project settings were a bit messed up too. Although it is my doing, I now have a love-hate relationship with SW4STM32. It simply is difficult to change build paths, if not impossible. But I am happy that I have a DieBieMS firmware that I can compile. Hope it will work for you, and other too.
You don't need to follow my previous actions that I wrote here anymore. Now I simply clone it, open SW4STM32, go to "File -- Open Projects From File System" and select the correct directory. It will automatically find the nested project, and hopefully all settings are correctly imported too. Simply build it. Let me know if this works for you.
Good to know if you will change hardware too:
What doesn't help is that the .ioc-file is based on CubeMX version 1.5.0. That version makes complete new (undesired) folders when generating code. And it is not possible to change those project settings in CubeMX when opening the ioc-file. At least on my machine.
I had more luck when using the CubeMX v1.11.0 firmware, but that gave other side effects. See for instance all defines
I had to add under my story-log item 8. By the way; I made those steps for the efoildevelopment branch, but that - judging from the ioc-file - has a somewhat different pin settings if I recall correctly.
Hi @BluePygmyOwl, So I deleted the project from SW4STM32 and also all the directory. Then I downloaded the zip file from your repo and opened it with SW4STM32.
Debug configuration compiles fine but with some warnings (seem to be more related to the application itself). Examples :
../Modules/Src/modPowerState.c:18:11: warning: unused variable 'startupDelay' [-Wunused-variable]
../Drivers/HWDrivers/Src/driverHWUART2.c:46:29: warning: unused variable 'temp' [-Wunused-variable]
However, in Release configuration, I get this :
15:01:48 Clean-only build of configuration Release for project DieBieMS-firmware-gcc make clean rm -rf * 15:01:48 Build Finished (took 72ms) 15:01:49 Incremental Build of configuration Release for project DieBieMS-firmware-gcc make all Building file: ../Src/system_stm32f3xx.c Invoking: MCU GCC Compiler /Users/clement/Documents/Projet eBoard/DieBieMS/DieBieMS-Firmware-GCC/Release arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 '-Dweak=attribute((weak))' '-Dpacked=attribute((packed))' -DUSE_HAL_DRIVER -DSTM32F303xC -I../../../../Inc -I../../../../Drivers/STM32F3xx_HAL_Driver/Inc -I../../../../Drivers/STM32F3xx_HAL_Driver/Inc/Legacy -I../../../../Drivers/CMSIS/Device/ST/STM32F3xx/Include -I../../../../Drivers/CMSIS/Include -O2 -g3 -Wall -fmessage-length=0 -ffunction-sections -c -fmessage-length=0 -MMD -MP -MF"Src/system_stm32f3xx.d" -MT"Src/system_stm32f3xx.o" -o "Src/system_stm32f3xx.o" "../Src/system_stm32f3xx.c" ../Src/system_stm32f3xx.c:88:10: fatal error: stm32f3xx.h: No such file or directory
include "stm32f3xx.h"
^
~~~~ compilation terminated. make: *** [Src/system_stm32f3xx.o] Error 1 15:01:49 Build Finished (took 124ms)
@Peemouse : paths for release mode fixed. Thanks for your tests!
The warnings due to application coding is out of my scope. Perhaps they will disappear when @DieBieEngineering merged their latest firmware- & tool-version to something awesome again.
Hi,
First, thank you for you work ! I followed your steps there to set my IDE correctly. But no luck to compile it.
Here is the console output while compiling Release configuration
And Debug configuration :
The IDE also often crashes, whatever the configuration compiled. Could you guide me through the configuration process ?
This is not my field and I learn by myself. Sorry if some questions seem trivial. 🙂