FreeJoy icon indicating copy to clipboard operation
FreeJoy copied to clipboard

How do I build from source

Open GregWoods opened this issue 5 years ago • 7 comments
trafficstars

I would like to experiment with the code myself, but I am not sure where to start. I have experience of Arduino, PlatoformIO and some Rust experience on STM32F1 and F4, but I need a little direction on where to start with this project. What IDE and compiler do you use, and how is it set up? I notice a makefile, MDK-ARM folder, but also armgcc folder.

Do I need the ARM MDK software? If so which version? Can I configure VS Code and gcc?

Any help would be greatly appreciated.

GregWoods avatar Aug 30 '20 06:08 GregWoods

Hi, MDK ARM suppose Keil uVision v5. Keil project is placed in MDK ARM folder. It should be possible to build with gcc and makefile placed in armgcc folder but it is broken now. Prerelease v1.6.3 we be ready very soon, gcc makefile will be fixed there

vostrenkov avatar Aug 30 '20 06:08 vostrenkov

Now that was a fast response! Thank you Would the free version if uVision work? It has a 32Kb limit. I assume the limit is compiled code size.

GregWoods avatar Aug 30 '20 06:08 GregWoods

With -O3 or -Os optimization it should fit 32Kb. Also notice there 2 targets: application and bootloader. Bootloader must be flashed first, otherwise application wont work

vostrenkov avatar Aug 30 '20 07:08 vostrenkov

In v1.6.2b4 makefile for building with GCC is fixed. Manual for building is placed in armcc folder of the project

vostrenkov avatar Oct 17 '20 09:10 vostrenkov

What are the steps to run makefile (windows) ?

delpitec avatar Aug 26 '23 04:08 delpitec

Would there be interest in migrating to CMake? I could help with that! This would allow the project to be compiled and debugged independently of the platform and IDE.

mupfdev avatar Aug 31 '23 19:08 mupfdev

Would there be interest in migrating to CMake? I could help with that! This would allow the project to be compiled and debugged independently of the platform and IDE.

I could do it using windows! I Just need to remove Unix commands from make files, download arm-gcc and call It directly by terminal command

delpitec avatar Sep 01 '23 11:09 delpitec