Skip to main content
enmirc
Associate III
May 20, 2017
Question

STM8S : SWIM pin as GPIO

  • May 20, 2017
  • 0 replies
  • 827 views
Posted on May 20, 2017 at 06:50

STM8S : SWIM pin as GPIO does not work for me, please explain how to make it work .. 

Situation: vcc,  10k,  swim, button, gnd

main() { 

CFG->GCR = 0x01;

GPIO_Init(GPIOD, D1, GPIO_MODE_IN_PU_NO_IT); 

..

}

software does not works well on this swim pin .. why ? 

    This topic has been closed for replies.