Hi guys,
I have cc2530 + cc2591 .
I compiled Project named CC2530-TestHex placed in C:\Texas Instruments\ZStack-CC2530-2.5.1a\Projects\zstack\ZNP by enabling macro HAL_PA_LNA to support
CC2591.
I have connected CC2530 UART_0 to PC via level translator. The pins which are connected are TX,RX and GND.
After reset of CC2530 , I am expecting SYS_RESET_IND message from CC2530 to PC. But I am getting junk value. SOP = 0xFE itself is not available.
The serial port setting which i used are,
Baudrate - 38400
Databits - 8
Parity - none
Stop bits - 1
Flow control - none (since only TX and RX is connected to PC)
My question is there any changes in zstack code needed,
1.To support UART_0 of CC2530?
2. To disable flow control of UART?
3.How to test Z-stack on CC2530 communicating to PC via UART properly?
Thanks in advance....
regards,
Vignesh
Hi,
Maybe your UART settings are not correct.
The following UART configuration is supported:• Baud rate: 115200• Hardware (RTS/CTS) flow control.• 8-N-1 byte format.
(from CC2530ZNP Interface Specification.pdf)
Regards.
Thanks Cheng Meng ...
Ya , You are right about UART setting.. I set baud rate as 115200.. I set No flow control... I modified Z_stack code for making no flow control...
The modified code,
In znp_app.c , npInit() function changed uartConfig.flowcontrol = TRUE to uartConfig.flowcontrol = FALSE..
Now I am communicating to CC2530 Z-stack via Z-TOOL using serial port pin only RX and TX..
Regard,