Questions and discussions about the hardware aspects of the TD RF modules, boards and accessories.
arnaudw
 
Posts: 17
Joined: Fri Jun 12, 2015 8:18 pm

tfp_printf with rx/tx already used

by arnaudw Tue Sep 01, 2015 9:21 pm

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.
User avatar
lcheminade
 
Posts: 146
Joined: Mon May 11, 2015 7:47 am

Re: tfp_printf with rx/tx already used

by lcheminade Wed Sep 02, 2015 7:35 am

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=37

Loïc
arnaudw
 
Posts: 17
Joined: Fri Jun 12, 2015 8:18 pm

Re: tfp_printf with rx/tx already used

by arnaudw Wed Sep 02, 2015 10:13 am

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.
User avatar
lcheminade
 
Posts: 146
Joined: Mon May 11, 2015 7:47 am

Re: tfp_printf with rx/tx already used

by lcheminade Wed Sep 02, 2015 10:23 am

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.
arnaudw
 
Posts: 17
Joined: Fri Jun 12, 2015 8:18 pm

Re: tfp_printf with rx/tx already used

by arnaudw Wed Sep 02, 2015 12:01 pm

Thanks again, your help is greatly appreciated :)
Return to Hardware

Who is online

Users browsing this forum: No registered users and 20 guests