2018-02-07 07:19 PM
Chip:STM8S001J3
The UART Of Alternate function after remap
RX is in PIN1?TX is in PIN5
The program has never been interrupted, RXNE has been 0.
What is the reason why you want to ask?
My configuration is as follows:
OPTION BYTES?
AFR0?Alternate Active
AFR1?Alternate Active
AFR2?Alternate Active
Code?
UART1_Init((uint32_t)9600, UART1_WORDLENGTH_8D,UART1_STOPBITS_1, UART1_PARITY_NO,
UART1_SYNCMODE_CLOCK_DISABLE, UART1_MODE_TXRX_ENABLE);
UART1_ITConfig(UART1_IT_RXNE_OR, ENABLE);
UART1_Cmd(ENABLE);
#the-program-has-never-been-interrupted #the-uart-of-alternate-function-after-remap #stm8s001j32018-04-13 12:24 AM
Look here:
. The question is the same and the answer is: no answer. Not a valid solution has been presented. I made many attempts with interrupt, polling and various tricks, but nothing happened. Without the remapping, all works fine. It would be nice if some technician from ST would clarify the question. The STM8S001 component is good and cheap, but the 'swim' pin common to the UART TX is a strange / dangerous mapping arrangement.2018-06-29 01:15 AM
I confirm this mistake in documentation - it will be corrected in new datasheet (very soon). See the answer here
:
https://community.st.com/0D50X00009XkX5uSAF
.