First must ensure firmware data sent OK. Find wiced debug code to read saved data and enable it.
Where can I find wiced debug code to read saved data and enable it?
1 of 1 people found this helpful
It in same place, where writing. Sorry currently I cant tell you this place, not have wiced sdk.
Try find in forum with similar problem.
Use SPI interface.
I wrote a test function that writes about 10000 times to registers 0x18-0x1B (write uint32_t value with +=0x11111111 increment) and reads the value back. It works correctly, no faults.
if actual, this function
static wwd_result_t download_resource( wwd_resource_t resource, uint32_t address )
This test code from older sdk
/* TODO: THIS VERIFY CODE IS CURRENTLY BROKEN - ONLY CHECKS 64 BYTES, NOT 16KB */
/* Verify download of image data */
memset(tmpbuff, 0, WWD_BUS_MAX_TRANSFER_SIZE);
if ( WWD_SUCCESS != ( result = wwd_bus_transfer_bytes( BUS_READ, BACKPLANE_FUNCTION, address & BACKPLANE_ADDRESS_MASK, transfer_size, (wwd_transfer_bytes_packet_t*)tmpbuff ) ) )
if ( 0 != memcmp( tmpbuff, ram_buff, (size_t) transfer_size ) )
/* Verify failed */
WPRINT_WWD_ERROR(("Verify of firmware/NVRAM image failed"));
#endif /* if 0 */