We probably need a Sticky thread for this, otherwise its hard to find the information about how to start using this core.
Please can someone post to this thread with a howto and I will make that into a Sticky
At the moment the “howto” works as follows:
1. install the Arduino framework from STM as described here
2. copy ( or clone ) the STM32GENERIC framework from GitHub into the hardware folder
on win10 e.g. if your Arduino IDE folder is
C:\Tools\Arduino\Arduino1_8\
than copy STM32GENERIC to this location
C:\Tools\Arduino\Arduino1_8\hardware\STM32GENERIC
If you want to use an STM32F7 board like the STM32F746 discovery eventually the following error may occur:
error: unrecognized argument in option ‘-mcpu=cortex-m7’
The F7 boards need newer compilers and if an old compiler is installed in parallel you have to delete it.
There are various example sketches for different STM32 boards. You can load them in your Arduino IDE.
File=>examples=>STM32 board examples for users
At the moment I have two more advanced example directories
One for the STM32F4 discovery
One for hte STM32F746 discovery
1 Install Arduino IDE with the installer or the zip
2 In board manager install SAM Board Cortex M3 (but someone use the SAMD board Cortex M0?)
3 Get the package and copy in the hardware folder. This should be in C:\users\yourusername\Documents\Arduino if you used the installer otherwise is in the arduino\portable\sketchbook folder if you used the zip package and created the portable folder to have the… portable version of the IDE.
I’m not sure about this point.
SAM Board Cortex M3 will install
arm-none-eabi-gcc/4.8.3 -2014q1/
This compiler does not support the M7 CPUs and will cause a conflict when you want to use the STM32F746 discovery.
There is this JSON File form STM
https://raw.githubusercontent.com/stm32 … index.json
which you can copy into the board manager to install the M7 gcc.
But I’m not sure if it is still necessary to install the SAM support before.
The project owner should actually know how it goes.
STM32GENERIC: Arduino implementation on top of STM32 HAL, for all STM32 boards.
Code on GitHub: https://github.com/danieleff/STM32GENERIC
Documentation: https://danieleff.github.io/STM32GENERIC/
Installation instructions: https://danieleff.github.io/STM32GENERIC/
For submitting problems, please use GitHub Issues: https://github.com/danieleff/STM32GENERIC/issues
For some usage examples, check in the Arduino IDE, menu File=>examples=>STM32 board examples for users
This is an alternative to the official implementation: https://github.com/stm32duino/Arduino_Core_STM32, it should be very similar in Arduino API, and STM32 HAL API.
I can’t see the option to make a specific post into a new topic
Can you create a new topic (thread) and I’ll make it sticky.
[RogerClark – Wed Jul 05, 2017 11:32 am] –
Daniel,
I can’t see the option to make a specific post into a new topicCan you create a new topic (thread) and I’ll make it sticky.
Created: viewtopic.php?f=51&t=2296
I doubt, if it is that easy.
Here is a forum discussion in German about bringing up the STM32F746 disco generic:
The problems are not to small ….
Well then I added an addendum for that.
Maybe next thing will be a boards manager package that will fix this, but I’m on vacation so…
next is my early Xmas present
stephen
Almost, you forgot me.
And another point is: the things get only attention when there are good examples and use-cases and a little bit advertisement.
By the way: It would be good to place the touch-driver in the libraries folder and not in every example.
Even if the driver is probably a little bit “preliminary” but it works perfect.
Maybe next thing will be a boards manager package that will fix this, but I’m on vacation so…
That would be really good for acceptance
did i mention my early birthday present, STM32F746 disco 1M version.
next is my early Xmas present ![]()
Santa Claus is arriving when?
long enough and it might be an i8 or i9 laptop
anyone want to start a [STM32generic] F4 FSMC thread ?
maybe slanted towards an ILI9341 LCD display ?
stephen


