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.

CC2531: ZStack 1.2 - Compile end device for CC2531

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

Hi guys,

I have implemented a simple zigbee end device for CC2530 based on Z-Stack 1.2 HA. It is a really basic implementation. Just sends report periodically.

It works very well when I flash the firmware to CC2530. But when I try to use CC2531 USB dongle, the same firmware doesn't even join the network.

I just changed the processor type from 2530F256 to 2531F256. Is there anything else I have to do? Any preprocessor directive? Is it even possible? I tried to put CC2531ZNP directive, but with no success, I guess it does not make sense, since I have a simple end device with no ZNP functionality..

Thanks a lot.

  • Hi Peter,

    It is definitely feasible to operate a Z-Stack HA 1.2.2a project using the CC2531 but not first without making some changes.  I recommend that you change HAL_MCU_CC2530 in hal_mcu.h to HAL_MCU_CC2531, you will also want to make changes to OnBoard.c/h and hal_board_cfg.h in accordance with your CC2531EMK hardware.  You may also want to add the USB interface and should be able to reference the CC2531 ZNP project in this regard.  You can further debug the project inside IAR to figure out where the project is failing or use a sniffer log to determine whether the device is sending any over-the-air messages.

    Regards,
    Ryan

  • Hi Ryan,

    Thanks a lot for your hints. I will try it and get back with my findings.

    I thought it should work right away, since AFAIK only difference is USB on cc2531 but obviously I was wrong. The reason why I want to port my solution from cc2530 to cc2531 is that I have few USB EMKs with cc2531 laying around and I want to use them as testing end devices easily powered by USB charger. Since I migrated my coordinator to more capable ZZH! I dont need them anymore...

    Thanks again

  • Hi Ryan,

    Thanks for hints but I found more general approach.

    Indeed HAL was guilty.

    To fix the issue I had to change the path to inludes from:

    ...components/hal/target/2530EB

    to

    ...components/hal/target/2530USB

    Also add all subdirectories to Compiler->Preprocessor->Additional include directories

    and also to project structure.

    After correct hal target folder was set it work fine also on 2531 EMK.