STM8S clock and serial port initialization problems
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-08-11 12:35 AM
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?
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-08-11 12:46 AM
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.
