Print String with stm32f407 discovery

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
nami1216
Posts: 9
Joined: Wed Aug 21, 2019 5:05 pm
Has thanked: 2 times

Print String with stm32f407 discovery

Post by nami1216 »

Hi friends,
May you tell me how to write or make program to print String from stm32f407 to eclipse when we run or debug program?
As you know stlink of stm32f407 does not use UART port. Do you have any guide for that.
Thanks so much
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Print String with stm32f407 discovery

Post by Giovanni »

Hi,

You need to use a serial port and an serial/USB adapter I think.

Giovanni
nami1216
Posts: 9
Joined: Wed Aug 21, 2019 5:05 pm
Has thanked: 2 times

Re: Print String with stm32f407 discovery

Post by nami1216 »

Giovanni wrote:Hi,

You need to use a serial port and an serial/USB adapter I think.

Giovanni

Hi Giovanni,
May we use USB CDC for printing String?
if possible, do you have tutorial or how to setup USB CDC?
Thanks so much
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Print String with stm32f407 discovery

Post by Giovanni »

Hi,

All USB demos do exactly that, the example is there.

Giovanni
Post Reply