[libmaple] Generic F407VE mini (vcc-gnd version)

Limited support for STM32F4 Discovery, Nucleo and custom F4 boards
Post Reply
stevestrong
Posts: 1735
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

[libmaple] Generic F407VE mini (vcc-gnd version)

Post by stevestrong » Tue Nov 07, 2017 10:55 pm

A really small and powerful board, with some extra hardware and lots of pins.
http://wiki.stm32duino.com/index.php?ti ... 7VET6_Mini
The main difference compared to the generic black F4 board is that the mini board has a 25MHz crystal.
And the LED is on PB9 instead of PA6/7.

Important:
In order to get the board run, value 25 (instead of 8) must be entered here: https://github.com/stevstrong/Arduino_S ... cF4.c#L370
In Arduino IDE the Generic F407 series menu has to be selected.
Maybe we should add an additional selection item in Arduino menu the crystal frequency?

I just quickly tested LED blink (PB9), SPI 1 and 3 and all work.

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

Re: [libmaple] Generic F407VE mini (vcc-gnd version) is working

Post by RogerClark » Tue Nov 07, 2017 11:44 pm

Steve

I think we'd be better off with a new variant for this, or perhaps setup the build to allow this to be switched by a define from boards.txt

I think having to select the crystal freq each time, would be a pain. (though the IDE does remember the last setting)

stevestrong
Posts: 1735
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: [libmaple] Generic F407VE mini (vcc-gnd version)

Post by stevestrong » Wed Nov 08, 2017 1:28 pm

Ok, I will make a new entry in boards.txt for this, and define a new extra flag for the crystal frequency.

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

Re: [libmaple] Generic F407VE mini (vcc-gnd version)

Post by RogerClark » Wed Nov 08, 2017 8:44 pm

thanks

User avatar
Manny
Posts: 41
Joined: Wed Dec 09, 2015 3:15 pm

Re: [libmaple] Generic F407VE mini (vcc-gnd version)

Post by Manny » Wed Nov 08, 2017 11:24 pm

No wonder I was having trouble running this board.

stevestrong
Posts: 1735
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: [libmaple] Generic F407VE mini (vcc-gnd version)

Post by stevestrong » Sun Nov 12, 2017 2:34 pm

I finally managed to adapt boards.txt and platform.txt, included a new define CRYSTAL_FREQ.

With the same occasion I have reworked both txt files, moved the common parts from boards to platform.
This changes requested to change some of the F4 files, so I did that and some cleanup, too.
https://github.com/stevstrong/Arduino_S ... db35b57fd2
https://github.com/stevstrong/Arduino_S ... 888095d986
https://github.com/stevstrong/Arduino_S ... 5a94811edf
https://github.com/stevstrong/Arduino_S ... f84c4bb5cc

I have built all F4 targets, error-free.
Only the generic F4 series (black and mini) boards were tested, both work as expected.

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

Re: [libmaple] Generic F407VE mini (vcc-gnd version)

Post by RogerClark » Sun Nov 12, 2017 6:59 pm

can you make a PR

Nutsy
Posts: 241
Joined: Sun Jul 24, 2016 4:26 pm

Re: [libmaple] Generic F407VE mini (vcc-gnd version)

Post by Nutsy » Mon Nov 13, 2017 11:36 pm

Ohh thanks for this :D ive been looking at these boards lately... Now i know theres some support going towards it. might be able to get them working :D

Post Reply