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

1 REPLY 1
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".