stm32-rs / stm32-usbd-examples

stm32-usbd examples for different microcontrollers
48 stars 19 forks source link

Provide missing OpenOCD configuration for STM32F3DISCOVERY #11

Closed sirhcel closed 4 years ago

sirhcel commented 4 years ago

The OpenOCD configuration board/stm32f3discovery.cfg mentioned in README.md is not present in the repository. I copied openocd.cfg from the Blue Pill example and was surprised to see Sample OpenOCD configuration for the STM32F3DISCOVERY development board in it. So it should do the trick, I guessed and it did.

Thank you for this awesome example! I got it up and running within minues.

Disasm commented 4 years ago

Strange, probably you have an old openocd. I use the one from git and it contains /usr/share/openocd/scripts/board/stm32f3discovery.cfg. Anyway, thank you for the PR :)

sirhcel commented 4 years ago

Thank you for merging!

Strange, probably you have an old openocd. I use the one from git and it contains /usr/share/openocd/scripts/board/stm32f3discovery.cfg. Anyway, thank you for the PR :)

Now I see. As all the other examples use a configuration from the repository I did not consider that board/stm32f3discovery.cfg refers to the configuration provided by OpenOCD. I'm using 0.10.0 which ships this file. And on top of that even board/stm32f103c8_blue_pill.cfg for the Blue Pill board. I'm sorry for the confusion.

In case you want to switch (back) to the OpenOCD configurations one day, I would be happy to help.