cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F407G-DISC1 printf issue

Julien NGUYEN
ST Employee

Hi there,

I want to do a printf redirected to a Tera Term using the USART2 on the STM32F407G-Disc1, but it doesn't print while the same code works on the NUCLEO-F401RE. I found this instruction in the user manual UM1472. Does it mean that I have to use two flying wires to connect the U2 pins to the P1 connector pins to make it work ? Thanks for your help

0693W00000GZnzvQAD.png0693W00000GZnzlQAD.png0693W00000GZo0PQAT.png


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee
Please excuse me for not being clear enough: the recent STM32F407G-DISC1 is able to provide VCP if you connect the pins using e.g. flying wires. The solution is only applicable on this newest version, not to the older STM32F4DISCOVERY.
Regards
/Peter
In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

6 REPLIES 6
Peter BENSCH
ST Employee

The STM32F407G-DISC1, formerly knows as STM32F4DISCOVERY, still uses an ST-LINK/V2-A that does not yet offer the VCP functionality found in the newer DISCOVERY.

in order to still be able to work with a VCP, you can use the options mentioned in UM1472, section 6.1.3 with the newer STM32F407G-DISC1: either an external USB-UART converter, or the mentioned flying wires.

Good luck!

If the problem is resolved, please mark this topic as answered by selecting Select as best. This will help other users find that answer faster.

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Julien NGUYEN
ST Employee

Hi Peter, thanks for your quick reply ! I still do not understand your suggestion: actually you said I can apply the work around suggested in the UM1742 on the NEWER STM32F407G-DISC1 or on the OLDER ? Thanks, Julien


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Peter BENSCH
ST Employee

There was an older STM32F4DISCOVERY, and there is a more recent STM32F407G-DISC1, so it depends, what the datecode of your DISCOVERY is. The order designation can definitely be found at the very bottom of the card on the packaging. VCP only works with the newer version, i.e. with STM32F407G-DISC1 only.

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Julien NGUYEN
ST Employee

Peter, do you mean that with a recent STM32F407G-DISC1, VCP works without the need to connect the pins with the flying wires, it will work like you are using a Nucleo F401RE ? Or did you mean that the wiring solution is only applicable on the new STM32F407G-DISC1 ? Thanks


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Peter BENSCH
ST Employee
Please excuse me for not being clear enough: the recent STM32F407G-DISC1 is able to provide VCP if you connect the pins using e.g. flying wires. The solution is only applicable on this newest version, not to the older STM32F4DISCOVERY.
Regards
/Peter
In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Julien NGUYEN
ST Employee

Hi Peter. Everything is clear now, thanks for your time.

I was surprised that VCP is not working on the F4 Disco. For me this feature must be mandatory. Even a simple Arduino Uno 10 years dated supports it? Have a nice day. Julien


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.