fotherja / Grid_Tie_Inverter_V5

MIT License
31 stars 14 forks source link

I made a new board, but cannot compile the project #6

Open gigaj0ule opened 5 months ago

gigaj0ule commented 5 months ago

Hello hackers!

I just built an improved board for this inverter, with simpler layout, and fewer components, and just finished assembling it today!

signal-2024-02-23-161000_002

However, when I try to compile the stm32 project, I cannot do so in the stm32cubeIDE.

Since there is no .project file in the repository, I attempt to create my own from the .IOC file, but am encountering errors of all kinds.

Do we still have the .project file? Or, a makefile?


Edit: My friend and I did a bit of hacking and put together a makefile for arm-none-eabi-gcc

https://github.com/gigaj0ule/gti/blob/main/Makefile

However, I am not sure yet what compiler flags are appropriate to add. If someone is able to dump the makefile generated by stm32cubeIDE, then I can cross-reference these flags and add them to this standalone makefile

folny commented 5 months ago

Hi

I also modify this project according to myself and I do the programming in Windows in ARM Keil uVision 5.38 and I have no problem with the compilation. If you decide to use this option, write here and I will give a printscreen of how and what needs to be set in KEIL ARM.

folny commented 5 months ago

Here is the code set up and compiled in KEIL ARM, hex files can be found in STM32CubeIDE_Code\MDK-ARM\GTI_v5

STM32CubeIDE_Code.zip

folny commented 5 months ago

I use this program for debugging which is better than debugging in Keil

https://github.com/klonyyy/STMViewer

gigaj0ule commented 5 months ago

thank you :-)

by any chance, are you able to see the terminal output when compiling?

compiler flags should be included in the debug spew, and although the MDK flags aren’t all going to be the same as GCC ones, I may be able to cross reference them and add to the makefile.

i think the debug output of STM32CUBEIDE should be identical to arm-none-eabi, since it uses GCC internally

folny commented 5 months ago

I also tried to build the project in STM32CubeIDE and the compilation went without any problems. STM32CubeIDE