0

enter image description here

I modified _write function. When I use, printf("Hello \n"); in debug mode SWV Console, I get random 1 character like @.

I tried combinations of SWV frequency in debug configuration section.

0ndu
  • 1
  • Which MCU you are using? what have you modified on _write()? It varies between MCU... Also small-factor Nucleo boards or MCU generally do not support SWO/SWV... – hcheung Nov 14 '22 at 08:13
  • MCU: stm32f407zet6; int _write(int file, char *ptr, int len) { /* Implement your write code here, this is used by puts and printf for example */ int i=0; for(i=0 ; i – 0ndu Nov 14 '22 at 15:17

1 Answers1

0

select HSI in PLL Source MUX. it worked for me.

0ndu
  • 1