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: CRC Fail problem with CC2530 OTA

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

Hello, I want to add OTA functionality to our Home Automation system that is based on Z-Stack 3.0.2 on CC2530 and an SPI flash as secondary storage (W25Q80). I have used SampleSwitch application in the "Router- OTA client" mode and create image file for OTA. But the problem is that after the image file is downloaded completely in the router side, it sends an OTA Update End Request with status : "Invalid Image" at the end of upgrade process. I tried OTA upgrade with both OtaServer tool and Z-Stack Linux Gateway application, but the same result was achieved. When I debugged OTA client code I found that the problem occurs with CRC checking of OTA image. What can be the problem?

  • This is usually caused by incorrect writing external flash. During OTA process, I would suggest you to read out each packet after you write it into external flash and compare if it's the same as what you write into external flash.

  • Hello Ahmad.

    YK is correct, please compare the M25PE20 (from the SmartRF05EB) against your W25Q80 off-chip SPI flash memory device and refer to the OTA client project's hal_ota.c/h and hal_board_cfg.h files to determine any implementation details which might be present.  The command linker file is ota.xcl from the Z-Stack 3.0.2\Projects\zstack\Tools\CC2530DB directory.

    Regards,
    Ryan