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

Question: Flashable image for STM32? #4

Open
retsifp opened this issue Jun 29, 2016 · 3 comments
Open

Question: Flashable image for STM32? #4

retsifp opened this issue Jun 29, 2016 · 3 comments

Comments

@retsifp
Copy link

retsifp commented Jun 29, 2016

Hello!
I really love your project, in fact I already bought one of these displays and as soon as I have some time, I will build one myself.

But I have one question: Is there a chance, that you provide a compiled image for the STM32? 😄
As far as I can see, I only need to modify the ESP8266 code for my needs, so this would save me a lot of time 😉

@davidgfnet
Copy link
Owner

Well yeah, but it should be straightforward for you to build the firmware yourself.
You just need a baremetal gcc arm toolchain and do a "make" command. No weird dependencies.

@retsifp
Copy link
Author

retsifp commented Jul 28, 2016

Just FTR, I only had to install gcc-arm-none-eabi on my Debian system and run a make inside the stm32_application folder.

There were some errors, I could fix them by adding -std=c99 to the CFLAGS inside Makefile and adding #define asm __asm to main.c and gde043a2.c (I know, it's a dirty hack, but it works 😉).

Now I have a firmware.bin, I hope flashing works... 😉

@davidgfnet
Copy link
Owner

Yes you are absolutely right, c99 is missing in the Makefile, the reason it works for me is cause I use gcc5 probably (and c11 seems to be the default mode). About the __asm bit I have no idea, I guess has something to do with the compiler version too :) Thanks!

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