Now it works on USB-OTG#1. I added your SystemClock_Config()
in my project and it works. Some things remain though:
- I don’t know the syntax of the
extern "C"
stuff so I did not use it and it works like that. - I put the function directly in a
.h
file without.c
file as I didn’t find a way to make it work. - The serial connection is completely dropped when the board is reseted i.e. I need to relaunch the terminal each time I reset the board. This is not the case with Serial 3 and 6.
I pushed the code to my depot on GitHub if you want to have a look.