[libmaple] Black F407VET6

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

Re: [libmaple] Black F407VET6

Post by stevestrong » Wed Jul 19, 2017 8:44 am

Just comment out the line "//#include <SoftwareSerial.h>".
Use Serial1, 2 or 3 in the code.
You could insert:

Code: Select all

#define SoftwareSerial Serial1 // or Serial2, or Serial3
or

Code: Select all

Serial1 RFID;

acronis
Posts: 119
Joined: Thu Mar 02, 2017 12:32 pm

Re: [libmaple] Black F407VET6

Post by acronis » Wed Jul 19, 2017 9:04 am

Where to read which pins correspond to Serial1 ?

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

Re: [libmaple] Black F407VET6

Post by stevestrong » Wed Jul 19, 2017 9:07 am


acronis
Posts: 119
Joined: Thu Mar 02, 2017 12:32 pm

Re: [libmaple] Black F407VET6

Post by acronis » Wed Jul 19, 2017 9:12 am

PB7 - RX1
PB6 - TX1

Ok ?

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

Re: [libmaple] Black F407VET6

Post by stevestrong » Wed Jul 19, 2017 9:23 am


acronis
Posts: 119
Joined: Thu Mar 02, 2017 12:32 pm

Re: [libmaple] Black F407VET6

Post by acronis » Thu Jul 20, 2017 4:58 am

Serial1 - RX pin PA10

Thank you very much !
It worked through physical serial port (serial1) !

acronis
Posts: 119
Joined: Thu Mar 02, 2017 12:32 pm

Re: [libmaple] Black F407VET6

Post by acronis » Fri Jul 21, 2017 4:22 am

Hello stevestrong.

Tell me how your business integration W5500 library ?
As soon as you can try out ?

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

Re: [libmaple] Black F407VET6

Post by stevestrong » Sat Jul 29, 2017 9:34 am

Support for W5500-based Ethernet modules has been added (see http://www.stm32duino.com/viewtopic.php ... 063#p32063).

acronis
Posts: 119
Joined: Thu Mar 02, 2017 12:32 pm

Re: [libmaple] Black F407VET6

Post by acronis » Sat Oct 14, 2017 9:36 pm

Hello Steven.

Doing a project in which I need a fast ADC.
Took example code https://github.com/arpruss/stm32scope-e ... /scope.ino .

It is compiled on the Board STM32F1* great.

But the Board STM32F407VET6 error

Code: Select all

error: cannot convert 'const adc_dev' to 'const adc_dev*' for argument '1' to 'void adc_set_sample_rate(const adc_dev*, adc_smp_rate)'

adc_set_sample_rate(ADC1, ADC_SMPR_1_5); // ADC_SMPR_13_5, ADC_SMPR_1_5

What's the problem ?
How to solve this issue ?

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

Re: [libmaple] Black F407VET6

Post by stevestrong » Sun Oct 15, 2017 8:31 am

I think for F4 you have to use:

Code: Select all

adc_set_sample_rate(&ADC1, ADC_SMPR_1_5);
because ADC1 is not a pointer but the ADC1 device structure. So you have to pass its address, that is why &ADC.
For F1 is different because the F1 ADC structure includes ISR handlers which are not constant.

However, please note that the ADC for F4, as far as I know, was not tested!

Post Reply