Page 1 of 1
tfp_printf with rx/tx already used
Posted: Tue Sep 01, 2015 9:21 pm
by arnaudw
Hello,
Is there a solution to use tfp_printf when rx/tx are already used ?
I have a tiny gecko and a ftdi cable, but I didn't find how to do. Maybe I should only use the debugger but it will be nice to have the terminal with verbose while program is running.
Thanks.
Arnaud.
Re: tfp_printf with rx/tx already used
Posted: Wed Sep 02, 2015 7:35 am
by lcheminade
Hi,
On a TD1202/8 USART1 is on PC0 (TX) and PC1 (RX). You should be able to redirect the tfp_printf stream to USART1 by hacking into the libs. Nevertheless keep in mind you will not be low power anymore and will need to force the chip to stay in EM1.
To me the easiest solution is to use radio printf:
viewtopic.php?f=13&t=37Loïc
Re: tfp_printf with rx/tx already used
Posted: Wed Sep 02, 2015 10:13 am
by arnaudw
Hello,
Thanks for the answer.
Where are PC0 and PC1 ? Can't find it in the documentation :/
I think i can do the following (because peripheral no need rx in fine) :
tx peripheral ==> rx TD1208
tx TD1208 ==> rx FTdi cable
Best regards,
Arnaud.
Re: tfp_printf with rx/tx already used
Posted: Wed Sep 02, 2015 10:23 am
by lcheminade
On a TD1208 :
TX = PC0 = USR2
RX = PC1 = USR3
On a TD1202 :
TX = PC0 = ADC0
RX = PC1 = ADC1
Please consider RF debugging which is much easier and efficient.
Re: tfp_printf with rx/tx already used
Posted: Wed Sep 02, 2015 12:01 pm
by arnaudw
Thanks again, your help is greatly appreciated
