Forums - CSR1010 UART and SPI interface

8 posts / 0 new
Last post
CSR1010 UART and SPI interface
rohinparkar
Join Date: 19 Nov 16
Posts: 5
Posted: Sat, 2016-11-19 23:43

Hi,

I just bought a CSR uEnery starter development kit with a CSR1010 module attached to MOD1.

How can I make sure I can download the compiled image to the flash on the CSR1010 module. The SPI Interface of CSR1010 is brought out onto the header J100. Do we need to connect jumper wires fron the SPI lines on J100 to the SPI lines coming out of U12 ?

Next I want to access the UART interface on CSR1010 for debugging purpose. Do we need to pick-up the UART lines from J100 and make a connector so we can use it with a USB-UART adapter ?

Thanks

Rohin

  • Up0
  • Down0
Dr. Nissim Zur
Profile picture
Join Date: 6 Jun 16
Location: Skype: nissim.test CSR1010 External design house
Posts: 235
Posted: Sun, 2016-11-20 05:52

 believe you need to connect USB UART 

 

 

https://goo.gl/2jQSBF

  • Up0
  • Down0
rohinparkar
Join Date: 19 Nov 16
Posts: 5
Posted: Sun, 2016-11-20 10:35

Thanks Dr. Nissim,

 

I believe that should provide us a UART interface.

How do we get the SPI interface working ? On the schematic I see that the SPI lines from CSR1010 are only brought to the header J100.

Thanks

Rohin

  • Up0
  • Down0
Dr. Nissim Zur
Profile picture
Join Date: 6 Jun 16
Location: Skype: nissim.test CSR1010 External design house
Posts: 235
Posted: Sun, 2016-11-20 12:02

I believe this will be imposable. Since the lines are used for other peripheral. 

Look for SPI flash documentation. 

Why not use the normal I2C flash on the PCB ? 

You can call my Skype nissim.test

  • Up0
  • Down0
rohinparkar
Join Date: 19 Nov 16
Posts: 5
Posted: Tue, 2016-11-22 12:04

Hi Dr. Nissim,

I was able to run a UART program and dump contents on the UART.

However I just got garbage. Probably something wrong with the baud rate. I tried different baud rates but no success.

Hopefully I will be able to fix this.

Thanks a lot for your help. I will update this thread with what I find.

 

  • Up0
  • Down0
Dr. Nissim Zur
Profile picture
Join Date: 6 Jun 16
Location: Skype: nissim.test CSR1010 External design house
Posts: 235
Posted: Tue, 2016-11-22 23:17

Did you share GND on all parts ? GND USB UART, GND CSr1010, GND PC ? 

If yes...

You can play with PC UART  terminal with different baud rate to see meaningful text

  • Up0
  • Down0
rohinparkar
Join Date: 19 Nov 16
Posts: 5
Posted: Fri, 2016-11-25 19:05

Hi Dr. Nissim,

Thanks a lot for your quick responses. Unfortunately I am still seeing Garbage on the UART. I tried all possible Baud rate settings. 

The default Baudrate in the csConfig is 2400. I use the same on the PC and also tried changing the Csconfig to 9600. 

Yes all the GNDs are connected. I am using Pin-20 on J100 as the gnd connection to the USB to UART converter. 

I have now ordered  http://www.dx.com/s/usb+uart  to see if that would work. 

You had mentioned "Use plug with 3v3, not 5V." - What does that mean ? The USB to UART I am using does not have any specifications regarding voltage.

Thanks

  • Up0
  • Down0
Dr. Nissim Zur
Profile picture
Join Date: 6 Jun 16
Location: Skype: nissim.test CSR1010 External design house
Posts: 235
Posted: Sat, 2016-11-26 07:41

Call me on Skype nissim.test I will guide you. 
 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.