Part Number:CC2538
Tool/software: WEBENCH® Design Tools
Hello E2E Community,
I am working on CC2538 Zigbee Z-stack Embedded firmware. I am trying to implement OTA Upgrade in upgrade the firmware over the air for SampleLight.
For that i am referring TI's "Z-stack OTA Upgrade User's Guide.pdf"
As per instructions given in chapter 2 & 4, I made the following changes in SampleLight Project.
1) Added the OTA source code to the application.
zcl_ota.c, zcl_ota.h,
ota_common.c, ota_common.h,
ota_signature.c, ota_signature.h
2) Added the OTA linker configuration file
Projects > Options > linker tab
$PROJ_DIR$\..\..\..\Tools\CC2538DB\CC2538-OTA-Image-A.icf
3) Added OTA include directory to the list of include directories.
Projects > Options > C/C++ Compiler
$PROJ_DIR$\..\..\..\OTA\Source
4) Added the configuration OTA compile flags
Projects > Options > C/C++ Compiler
OTA_CLIENT=TRUE
OTA_MMO_SIGN=TRUE
OTA_HA
OTA_INITIAL_IMAGE
HAL_IMG_AREA=0
5) Added the OSAL zclOTA_event_loop and zclOTA_Init task functions for the OTA Task
OSAL_SampleLight.c
#if (defined OTA_CLIENT) && (OTA_CLIENT == TRUE)
#include "zcl_ota.h"
#endif
const pTaskEventHandlerFn tasksArr[]
#if (defined OTA_CLIENT) && (OTA_CLIENT == TRUE)
zclOTA_event_loop
#endif
void osalInitTasks( void )
#if (defined OTA_CLIENT) && (OTA_CLIENT == TRUE)
zclOTA_Init( taskID );
#endif
After that i just cleaned the project & then Rebuild All.
Build Result was
Total number of errors: 0
Total number of warnings: 0
But When i try to flash the code to the CC2638 using SmartRF06 EB. I am getting some error like.....
Fatal error: Failed to do go: (Error -1268 @ 0x90001) Device is locked up in Hard Fault or in NMI.
Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK).
(Emulation package 8.0.27.9) Session aborted!
If i am trying to flash any other example code it will be flashed successfully....
So I would like to know that....
1. Why this error will generated while flashing the code?.. How To solve this error?...
2. Am I doing any thing wrong in configuration's?...
Please suggest if any other configurations needed to implement OTA on sample Light Example project...
Thanks & Regard's
Shiv Patil.