Sticky for this ?

RogerClark
Sun Jun 25, 2017 12:42 am
Guys

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


ChrisMicro
Wed Jul 05, 2017 4:25 am
That would be very good.

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


zoomx
Wed Jul 05, 2017 7:48 am
I know the howto different.

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.


ChrisMicro
Wed Jul 05, 2017 8:23 am
2 In board manager install SAM Board Cortex M3 (but someone use the SAMD board Cortex M0?)
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.


stevestrong
Wed Jul 05, 2017 9:31 am
Alternatively, a wiki page on github would also be a first step for a “howto”.
The project owner should actually know how it goes.

danieleff
Wed Jul 05, 2017 10:01 am
Please sticky this (If you can sticky a post as a new thread). I will edit when I will have time, but should get anybody started.

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.


RogerClark
Wed Jul 05, 2017 11:32 am
Daniel,
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.


danieleff
Wed Jul 05, 2017 1:10 pm
[RogerClark – Wed Jul 05, 2017 11:32 am] –
Daniel,
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.

Created: viewtopic.php?f=51&t=2296


ChrisMicro
Wed Jul 05, 2017 5:11 pm
Installation instructions: https://danieleff.github.io/STM32GENERIC/

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 ….


danieleff
Wed Jul 05, 2017 5:45 pm
Wow I would have never thought that the F7 will be actually used by anybody else than me.
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…

zmemw16
Wed Jul 05, 2017 6:15 pm
did i mention my early birthday present, STM32F746 disco 1M version.
next is my early Xmas present :D

stephen


ChrisMicro
Thu Jul 06, 2017 7:00 am
Wow I would have never thought that the F7 will be actually used by anybody else than me.
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 :D

did i mention my early birthday present, STM32F746 disco 1M version.
next is my early Xmas present :D

Santa Claus is arriving when?


zmemw16
Thu Jul 06, 2017 2:35 pm
Xmas, depends how hard i resist, the longer the higher etc. February/March would also be good, no poll tax – adds £290 to the pot or that itself could be a late Xmas/NY present.
long enough and it might be an i8 or i9 laptop :D

anyone want to start a [STM32generic] F4 FSMC thread ?
maybe slanted towards an ILI9341 LCD display ?

stephen


Leave a Reply

Your email address will not be published. Required fields are marked *