Sticky for this ?

Discussions about the STM32generic core
User avatar
RogerClark
Posts: 7481
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Sticky for this ?

Post by 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
Posts: 308
Joined: Fri Mar 24, 2017 4:51 pm
Location: Germany

Re: Sticky for this ?

Post by 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

User avatar
zoomx
Posts: 541
Joined: Mon Apr 27, 2015 2:28 pm
Location: Mt.Etna, Italy

Re: Sticky for this ?

Post by 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
Posts: 308
Joined: Fri Mar 24, 2017 4:51 pm
Location: Germany

Re: Sticky for this ?

Post by 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
Posts: 1829
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: Sticky for this ?

Post by 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
Posts: 336
Joined: Thu Sep 01, 2016 8:52 pm
Location: Hungary
Contact:

Re: Sticky for this ?

Post by 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.

User avatar
RogerClark
Posts: 7481
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Sticky for this ?

Post by 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
Posts: 336
Joined: Thu Sep 01, 2016 8:52 pm
Location: Hungary
Contact:

Re: Sticky for this ?

Post by danieleff » Wed Jul 05, 2017 1:10 pm

RogerClark wrote:
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
Posts: 308
Joined: Fri Mar 24, 2017 4:51 pm
Location: Germany

Re: Sticky for this ?

Post by ChrisMicro » Wed Jul 05, 2017 5:11 pm

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
Posts: 336
Joined: Thu Sep 01, 2016 8:52 pm
Location: Hungary
Contact:

Re: Sticky for this ?

Post by 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...

Post Reply