Tool/software: TI-RTOS
I have been modify BIM to implements support 512KB flash,I have do test with LED_DEBUG and green LED blink indicate spi flash work well.
Why read the "header" from newest spi flash chip first perform OTA? the spi flash is empty with new chips.
It looks like first need write full firmware to external spi flash?
if(flash_open() != 0) { //Search for a metadata header to fit the Zigbee image ExtImageInfo_t oad_imgHdrFactoryNew; //OAD binary pages required to store the binary uint8 binaryPagesLen = 0; // Read the factory new metadata page readFlash(EFL_ADDR_META_FACT_IMG, (uint8_t *)&oad_imgHdrFactoryNew, EFL_METADATA_LEN); //is a valid header if(memcmp(&oad_imgHdrFactoryNew.fixedHdr.imgID, oad_externalFLashID, sizeof(oad_externalFLashID)) != 0) { flash_close();
//this section return ABORT if perform OTA procedure //This release does not support not having the Factory New image return ZCL_STATUS_ABORT; }