cancel
Showing results for 
Search instead for 
Did you mean: 

Dallas IBUTTON and UART

SGian.1
Senior

Hi there!

i start to work with Dallas Ibutton and for my project i use STM32G031K8 nucleo. Because i need to read only one ibutton i use the UART peripheral and no ic dedicate for 1Wire. My problem is when i try to  use the rx callback function for know when i receive all data (and i start wit  receive one bit at the time) never shoot, If i put a simple delay of 1ms everythingh wor very well i can see all my data on my logic analyzer .Question because the nucleo use the second uart2 for debug is possible that give me the problem ? and if yes how can i resolve ?

Thank you soo much 

Sergio

2 REPLIES 2
TDK
Guru

> Question because the nucleo use the second uart2 for debug is possible that give me the problem ?

No, if you're not using USART2 in your code, it won't affect your program. Doesn't matter that it's hooked up to the ST-Link chip.

 

If you feel a post has answered your question, please click "Accept as Solution".
SofLit
ST Employee

Hello,

Not everyone here knows what is "Dallas Ibutton". So, when you formulate a request please think about others that need the have a clear a picture of your issue/request.

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

 

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.