rogerclarkmelbourne / Arduino_STM32

Arduino STM32. Hardware files to support STM32 boards, on Arduino IDE 1.8.x including LeafLabs Maple and other generic STM32F103 boards
Other
2.52k stars 1.26k forks source link

Layout and implementation #36

Closed xxxajk closed 7 years ago

xxxajk commented 9 years ago

The layout you suggest for installation is incorrect. It WAS correct for the older versions of Arduino. 1.6 and beyond lays things out in a much better way. Here is how I did the installation: under the hardware dir, made an 'ST' dir, and copied the STM* dirs under that. Made an 'ST' dir under the root examples directory, and copied the examples there. copied the Linux maple tools where they belong, under hardware/tools Adjustments still need to be made to the recipes for uploading in order to work still, but this is a start. If you like I can fork and re-arrange everything where it aught to go, and I also can include support for the STM32f429-discovery board as well. https://github.com/texane/stlink should be used on Linux for uploading via the stlink interface.

While I realize you are basing this off of the work done on maples, I'm a bit disappointed that you didn't just use CMSIS headers in order to define everything. Arduino does exactly this for the Atmel ARM chips. It would have made everything so much easier.