Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

System Workbench for STM32


How to make UART communication over STLINK

Hi to all,

I’m new to the STM32F7 DIscovery board and to the STM32F7 “eco-system”.
Looking for in the forum I did not find what I need: a way to create an UART communication channel
running on the STLINK-v2.1 that allows me to open a STLINK Virtual Com on the PC and allows me
to send and receive to/from the discovery board packets.
Could someone address me to some examples or tutorial that I am not be aware of?
Thanks in advance for every kind of help

Hi again,

After checking the STM32F746 Discovery board electrical schematics I discovered that STLINK v2.1
block gives out by means of a STM32F103 mcu present on the board two signals, VCP_RX and
VCP_TX that are respectively routed on the PB7 and PA9 pins of STM32F746NG.
Being PB7/PA9 pins also the alternate function of UART1 (PB7 is UART1_RX and PA9 is UART1_TX),
I think that I can simply use the example code of UART hal (suitably modified) to give to my discovery
board the chance to communicate over the STLINK via its Virtual Com to the PC host.

Am I right? What do you think about this solution?

Scrat


Hi,

some updates related to the solution of the problem..

I’m now able to receive characters from an uart connection over the STLINK, based on the assumption
I made in the previous post (I started a putty session using the STLINK Virtual Com and then send
characters to the STM32F746 Discovery board; the board receives them and sent back again to the PC).

I started from the Template project and added to it some piece of code found in the UART example
(those related to the initialization of the UART and those concerning to the UART interrupt callback).

Cheers,
Scrat75


Hi,

Nice to see that worked out for you! I’m using STM32F4 Discovery and had the same question some time ago regarding vcp and st-link but I never found out if it was possible. I think I have read some pdf which told that st-link’s vcp pins were not connected to any of the usarts of stm32f4... Is this true?

stm32f4 disco has stlink v2. This virtual serial over stlink usb is possible as far as i know only with stlink v2.1.

Hi HugoARA,

I think you should find a schematics of your STM32F4xx Discovery/EVAL board and check if its design
hardware has provided some kind of connection between tht ST-LINK hardware block and the STM32F4xxx
MCU. In the STM32F746NG Discovery board there is a STM32F103 MCU that (I think) implements the
ST-LINK block functionalities. From it two lines, VCP_RX and VCP_TX come out and are connected to the
PB7 (USART1_RX) and to the PA9 (USART1_TX) of the STM32F746NG MCU.
You have to loking for the same kind of information on your STM32F4xx board.

Scrat75

Hi Scrat75,

are you sure that stlink at his board support stlink vcp?
According to my tests it is not possible at that board becasue stlink fw does not support that.


Hi Brano,

I believe you when you said that STM32F4 Discovery board has a STLINK-V2 and that STLINK-V2 does not
support Virtual Com over STLINK. Before I answered to HugoARA telling to check if from the STLINK block
of him STM32F4 Discovery board there are some UART signals that come out and go into STM32F4 MCU,
but I do not pay attention to your previous post when you said that only STLIN-V2.1 support Virtual COM and
that STLINK-V2 does not.
So if there is not a way to upgrade the STLINK from V2 to V2.1 (I think this operation need to be done if
possible on both the side - those firmware on Discovery board and those software on PC for the Win USB
device driver part) no other way to run UART communication over ST-LINK will be possible (also if a hardware
link between the STLINK block and the MCU is presente on the Discovery board).

Scrat

v 2.1 need dfferent hw connection so this is definitelly not possible on the same hw without hw mod


i am not sure if this is the reason but latest cube does not work for me, i found the bug in rcc init and clock does not work ok. check what is your system clock if thi is ok