Fix to SPIFI addressing during hackrf_spiflash read operation. This fixes mismatches between programmed and read-back data.

This commit is contained in:
Jared Boone
2013-09-17 12:18:33 -07:00
parent 0a46aae5b9
commit 4984a8b681
2 changed files with 2 additions and 2 deletions

View File

@ -463,7 +463,7 @@ usb_request_status_t usb_vendor_request_read_spiflash(
return USB_REQUEST_STATUS_STALL;
} else {
/* TODO flush SPIFI "cache" before to read the SPIFI memory */
u8_addr_pt = (uint8_t*)addr;
u8_addr_pt = (uint8_t*)(addr + SPIFI_DATA_UNCACHED_BASE);
for(i=0; i<len; i++)
{
spiflash_buffer[i] = u8_addr_pt[i];