shufps / diy-projector-clock

DIY Projector Clock
118 stars 8 forks source link

Transfer STM32 program #5

Closed AmbroAnalog closed 3 years ago

AmbroAnalog commented 3 years ago

First of all many thanks for your great project! I have assembled the boards so far.

Now I am at the point where I want to transfer your software via my ST-Link V2 to the STM32.

Which files from the src folder do I need and which program would you recommend?

shufps commented 3 years ago

Hi, you could try it with openocd like

openocd -f myboard.cfg -c "program ./Release/beamer1.bin exit 0x08000000"

I added the binary file to the repository. The myboard.cfg is in the src-directory, the binary is in src/Release.

If this doesn't work, you could use other tools like st-flash (I think if I remember correctly). There should be plenty of tools to write a .hex or .bin to a stm32f103 with a STLinkV2.

Good luck :)