Jump to content
  • 0

Interfacing of BT2 Pmod with ZYBO


Abdul Qayyum

Question

Hi,

I am working on a project on ZYBO and i want to interface the Bluetooth Pmod with ZYBO so that i will be able to communicate with Serial Bluetooth Terminal(Android Application). I have attached the code and block design that i'm using for communication purpose. Is there any error in it because i can't achieve my goal with them. Secondly there is no issue while connecting Pmod with Serial Bluetooth Terminal but when i enter "$$$" in SDK Terminal it do not show anything.

 

Thanks

 

 

Design.png

BT2 Pmod c file.txt

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Hi @Abdul Qayyum,

You should be using the main.c file as a reference for your project. All of our IP Cores are designed to work with both Microblaze and Zynq processors as shown in this code taken from the main.c: 

 

// Required definitions for sending & receiving data over host board's UART port
#ifdef __MICROBLAZE__
#include "xuartlite.h"
typedef XUartLite SysUart;
#define SysUart_Send            XUartLite_Send
#define SysUart_Recv            XUartLite_Recv
#define SYS_UART_DEVICE_ID      XPAR_AXI_UARTLITE_0_DEVICE_ID
#define BT2_UART_AXI_CLOCK_FREQ XPAR_CPU_M_AXI_DP_FREQ_HZ
#else
#include "xuartps.h"
typedef XUartPs SysUart;
#define SysUart_Send            XUartPs_Send
#define SysUart_Recv            XUartPs_Recv
#define SYS_UART_DEVICE_ID      XPAR_PS7_UART_1_DEVICE_ID
#define BT2_UART_AXI_CLOCK_FREQ 100000000
#endif 

cheers,

 

Jon

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...