This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2530: CC2530 ZNP (Z-Stack 3.0.2) cannot get Z-Tool to work

Part Number: CC2530
Other Parts Discussed in Thread: Z-STACK

Hello,

I'm trying to get Z-Tool to work with a CC2530 board.

I'm using Z-Stack 3.0.2.

I tried to flash the Projects\zstack\ZNP\CC253x\dev\CC2530ZNP-with-SBL.hex firmware binary to the board, hooking up a FTDI USB-to-serial converter to it and running Z-Tool (configuring handshaking to RTS/CTS and baudrate to 115200). However Z-Tool doesn't detect the board. Hooking up a logic analyzer to the TX/RX lines confirms that Z-Tool sends some data to the CC2530, but the CC2530 doesn't respond.

I am set up with IAR Embedded Workbench 10 and can recompile the software if necessary.

  • (I also connected CFG1 to GND to enable UART)

  • Update: I tried recompiling the firmware using the Alternative pin configuration (by defining the ZNP_ALT constant in znp.cfg) and it works with the alternate configuration.

    I suspect this has something to do with hardware flow control, which is disabled in the Alternative configuration. Note that this is not documented! But you can see this in znp_app.c in function npInit().

    Also note that pin P2_0 (CFG1) should be connected to GND for the serial interface to work. This is not documented in the Z-Stack ZNP Interface Specification document - it is probably documented in the HAL documentation.

    For everything else, I used the constants that were already defined in the configuration files and in the project files. With Z-Stack 3.0.2 you don't need to change anything else apparently. This is different from previous versions of Z-Stack, as I found many forum posts advising to add or change different constants.

  • Hello Riccardo,

    Thank you for responding to your post with the solution.

    Regards,
    Ryan