cancel
Showing results for 
Search instead for 
Did you mean: 

STM8S clock and serial port initialization problems

SNorm.1
Associate III

I am using an IAR compilation environment, the microcontroller is STM8S105C4T6, but in the clock initialization, CLK__CKDIVR=0x00; the CLK__CKDIVR in this sentence keeps prompting that this function cannot be found.

And it is the same when initializing the serial port UART1. The header files used are stm8s.h and stm8s_uart1.h

May I ask what is the reason for this?

1 REPLY 1
Peter BENSCH
ST Employee

This looks like a typo: please replace CLK__CKDIVR by CLK_CKDIVR, i.e. with one underscore only.

Does it work then?

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.