Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling STM32F103C8 booter from Makefile #93

Closed
maxgerhardt opened this issue Apr 8, 2022 · 5 comments
Closed

Compiling STM32F103C8 booter from Makefile #93

maxgerhardt opened this issue Apr 8, 2022 · 5 comments

Comments

@maxgerhardt
Copy link
Contributor

maxgerhardt commented Apr 8, 2022

The repo says

https://github.com/pikasTech/pikascript/blob/5d5d4974d56f1b6482d7d521d054768f8cd06279/bsp/stm32f103c8/Makefile#L61-L65

but the folder https://github.com/pikasTech/pikascript/tree/5d5d4974d56f1b6482d7d521d054768f8cd06279/bsp/stm32f103c8 doesn't have a Core/src folder, only Boot. How can this compile?

@pikasTech
Copy link
Owner

pikasTech commented Apr 8, 2022

The keil-mdk project is mainly maintained.
I will fix the makefile of STM32F103C8 bsp.
But for other bsps, the makefile is to be removed.

@pikasTech
Copy link
Owner

arm-none-eabi-size build/stm32f103c8.elf
   text    data     bss     dec     hex filename
  59932     488   19320   79740   1377c build/stm32f103c8.elf
arm-none-eabi-objcopy -O ihex build/stm32f103c8.elf build/stm32f103c8.hex
arm-none-eabi-objcopy -O binary -S build/stm32f103c8.elf build/stm32f103c8.bin

fixed

@pikasTech
Copy link
Owner

@maxgerhardt

Now the community edition of MDK-ARM is released. If there is no commercial requirement, it is free like GCC!

https://www2.keil.com/mdk5/editions/community

And the flash size can be reduced by 50% with MDK-ARM(AC6)!

There is also an MDK-ARM template for Raspberry Pi Pico, it's amazing.

https://github.com/GorgonMeducer/Pico_Template

@maxgerhardt
Copy link
Contributor Author

I had an idea to add a platformio.ini and a small builder script so that all embedded firmwares can be built + flashed with PlatformIO, which would then use GCC. Still working on that / figuring out the best way. Just so that people have an option, especially since Keil is a Windows-only software (https://developer.arm.com/documentation/ka002387/latest) and Linux and Mac people would have to use a virtual machine + Windows to run this software :(

Of course it would then be interesting to see what code sizes and ram usage GCC can do vs the Keil compiler.

@pikasTech
Copy link
Owner

Haha, Linux is amazing too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants