[libmaple] Black F407VET6

Limited support for STM32F4 Discovery, Nucleo and custom F4 boards
Nutsy
Posts: 260
Joined: Sun Jul 24, 2016 4:26 pm

Re: [libmaple] Black F407VET6

Post by Nutsy » Tue Jan 16, 2018 3:15 pm

I have the black board not the stm discovery... Can i use the discovery 407 core then?

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

Re: [libmaple] Black F407VET6

Post by stevestrong » Tue Jan 16, 2018 3:28 pm

You can try the "Generic F407VE series" but as the name says, it is the VET version, not the ZGT, means different flash/ram size and board pinning.
But you could generate a new board variant, if you want.

michael_l
Posts: 364
Joined: Mon Aug 24, 2015 6:11 pm

Re: [libmaple] Black F407VET6

Post by michael_l » Tue Jan 16, 2018 3:47 pm

I'd like to try this core with "Blue F407VET6" that has 25Mhz resonator. Steve, I wonder if you know what changes are needed for getting the 25Mhz resonator working ?

Image

Image

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

Re: [libmaple] Black F407VET6

Post by stevestrong » Tue Jan 16, 2018 3:50 pm

That is the generic F407 mini, see here: http://stm32duino.com/viewtopic.php?f=39&t=2804.

Select "Generic STM32F407V mini series" in the Arduino IDE menu board selector. :)

It only works with my repo: https://github.com/stevstrong/Arduino_STM32

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

Re: [libmaple] Black F407VET6

Post by Manny » Sun Jan 21, 2018 11:09 am

Downloaded your repo Steve and cant get serial USB to work or get recognised, using a STM32F407 mini.

Wolfie
Posts: 14
Joined: Wed Jan 24, 2018 8:57 am

Re: [libmaple] Black F407VET6

Post by Wolfie » Wed Jan 24, 2018 9:54 am

Hi all,

Thanks for all the work you've done for this board. I've been using the STMF103CBT6 for some time now and was looking to "trade-up" to something with more ram, found this board on ebay... and now I'm here.

I noticed that there was a post for the W5500 being ported, so this morning I freshly downloaded Arduino_STM32 and Ethernet_STM32 and then tried this sketch:

Code: Select all

#include <Ethernet_STM32.h>

SPIClass mSpi(1);

void setup() {
  Serial.begin(115200);
  delay(500);
  Serial.print("initialising ethernet... ");
  Ethernet.init(mSpi, PA4);
  Serial.println("done");
  uint8_t mac[6] = {0x00,0x01,0x02,0x03,0x04,0x05};
  Serial.print("initialising ethernet with DHCP... ");
  if (Ethernet.begin(mac) == 0) {
    Serial.println("failed");
  } else {
    Serial.println("  DHCP assigned IP ");
    Serial.println(Ethernet.localIP());
  }

}
...and I get this error...

Code: Select all

Arduino: 1.8.3 (Windows 10), Board: "Generic STM32F407V series, USB inactive, STLink, Smallest (default)"

In file included from D:\Arduino\libraries\Ethernet_STM32\src/socket.h:10:0,

                 from D:\Arduino\libraries\Ethernet_STM32\src/EthernetClient.h:7,

                 from D:\Arduino\libraries\Ethernet_STM32\src/Ethernet_STM32.h:10,

                 from D:\Arduino_F407_Libraries\STMF407VE_W5500_test_01a\STMF407VE_W5500_test_01a.ino:1:

D:\Arduino\libraries\Ethernet_STM32\src/w5500.h: In member function 'void W5500Class::initSS(uint8_t)':

D:\Arduino\libraries\Ethernet_STM32\src/w5500.h:304:39: error: 'digitalPinToBitMask' was not declared in this scope

     ssBitMask = digitalPinToBitMask(SS);

                                       ^

exit status 1
Error compiling for board Generic STM32F407V series.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I don't think I've done anything stupid, but of course, that's always a distinct possibility :lol:

Thanks again...

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

Re: [libmaple] Black F407VET6

Post by stevestrong » Wed Jan 24, 2018 10:21 am

Thanks for pointing to this issue, I just added that macro to /cores/maple/libmaple/gpio.h.
Please check it out again.

dannyf
Posts: 228
Joined: Wed May 11, 2016 4:29 pm

Re: [libmaple] Black F407VET6

Post by dannyf » Wed Jan 24, 2018 2:18 pm


what changes are needed for getting the 25Mhz resonator working ?
Go through the code and search for HSE_Value. It can be changed in the code or via the ide preprocessor - st isn't consistent on that.

You may also look through PLL settings to make sure that you don't exceeded it's max frequency.

Btw, did they really use a resonator and not a crystal? Shame on them if so.

Wolfie
Posts: 14
Joined: Wed Jan 24, 2018 8:57 am

Re: [libmaple] Black F407VET6

Post by Wolfie » Wed Jan 24, 2018 3:07 pm

Thanks for pointing to this issue, I just added that macro to /cores/maple/libmaple/gpio.h.
Please check it out again.
Thanks for the fast response, I've just done a fresh download and it now compiles.

Of course it doesn't do anything else, ha ha, but I'm new to the W5500, so I'll make sure I've got everything set up correctly.

Regards.

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

Re: [libmaple] Black F407VET6

Post by stevestrong » Wed Jan 24, 2018 3:23 pm

You could start with the WebClient example of my W5500 lib, using your own SPI instance.
Make sure that your router supports DHCP and allows new connections.
Also, be aware that not any MAC addresses are valid, so the router could refuse the connection based on that being invalid.

Post Reply