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.

OTA upgrade problem

Other Parts Discussed in Thread: Z-STACK

Hi Friends, 

I am adding the client functionality to sampleapp application.

I have followed the steps included in the Z-Stack OTA upgrade User's Guide.pdf. 

But I have got following  errors. 

Error[e46]: Undefined external "zcl_registerPlugin" referred in zcl_ota ( F:\Working Area\OTA\
StarterProject - Sampleapp OTA\Projects\zstack\Samples\SampleApp\EXP5438\EndDevice\Obj\zcl_ota.r43
)
Error[e46]: Undefined external "zcl_registerAttrList" referred in zcl_ota ( F:Working Area\OTA\
StarterProject - Sampleapp OTA\Projects\zstack\Samples\SampleApp\EXP5438\EndDevice\Obj\zcl_ota.r43
)
Error[e46]: Undefined external "zcl_registerClusterOptionList" referred in zcl_ota ( F:\Working Area\
OTA\StarterProject - Sampleapp OTA\Projects\zstack\Samples\SampleApp\EXP5438\EndDevice\Obj\
zcl_ota.r43 )
Error[e46]: Undefined external "HalOTAWrite" referred in zcl_ota ( F:Working Area\OTA\
StarterProject - Sampleapp OTA\Projects\zstack\Samples\SampleApp\EXP5438\EndDevice\Obj\zcl_ota.r43
)
Error[e46]: Undefined external "HalOTAChkDL" referred in zcl_ota ( F:\Working Area\OTA\
StarterProject - Sampleapp OTA\Projects\zstack\Samples\SampleApp\EXP5438\EndDevice\Obj\zcl_ota.r43
)
Error[e46]: Undefined external "zcl_SendCommand" referred in zcl_ota ( F:\Working Area\OTA\
StarterProject - Sampleapp OTA\Projects\zstack\Samples\SampleApp\EXP5438\EndDevice\Obj\zcl_ota.r43
)
Error[e46]: Undefined external "zcl_TaskID" referred in zcl_ota ( F:\Working Area\OTA\StarterProject
- Sampleapp OTA\Projects\zstack\Samples\SampleApp\EXP5438\EndDevice\Obj\zcl_ota.r43 )
Error while running Linker

Please help me to resolve this errors.

Regards,

Keerthi G.

  • Hi Keerthi,

    You need add hal_ota.c, hal_ota.h, zcl.c, and zcl.h to your project to make it compiled without problem.

    - Cetri
  • Hi Cetri,
    Thanks for the information.
    If I added hal_ota.c, hal_ota.h, zcl.c and zcl.h, it would shows the below error.

    Error[e46]: Undefined external "HalXNVRead" referred in hal_ota ( F:\IDSWork\Working Area\OTA\
    StarterProject - Sampleapp OTA\Projects\zstack\Samples\SampleApp\EXP5438\EndDevice\Obj\hal_ota.r43
    )
    Error[e46]: Undefined external "HalXNVWrite" referred in hal_ota ( F:\IDSWork\Working Area\OTA\
    StarterProject - Sampleapp OTA\Projects\zstack\Samples\SampleApp\EXP5438\EndDevice\Obj\hal_ota.r43
    )

    But If I follow the below procedure, it would build without error. But It doesn't respond for the image notify command sent from OTA server application.

    1) Added the hal_ota.c, hal_ota.h, zcl.c , zcl.h, hal_xnv.h, hal_xnv.c and hal_ivec.s43
    2) Added zcl_Init( taskID++ ) and zcl_event_loop in OSAL_SamplaApp.c
    3) Preprocessor option : HAL_OTA_BOOT_CODE=TRUE

    I don't know whether the above steps are correct or not but it builds without error.

    I have done the process with below configuration using EXP-MSP430F5438 experimenter board.

    OTA dongle Application - Coordinator - OTA Server
    SampleApp Application - End Device - OTA client

    The match descriptor rsp sent shown in end device LCD.
    But If I sent "Image Notify" command using server application, It wouldn't started the download process.


    In End device, void SampleApp_MessageMSGCB( afIncomingMSGPacket_t *pkt ) function executed continuously with some interval of time. ( In that function SAMPLEAPP_PERIODIC_CLUSTERID case is processed).

    Please help me to resolve the OTA problems.



    Regards,
    Keerthi G.
  • Hi Friends,
    Please help me to resolve this issue.


    Regards,
    Keerthi G.