Fix to SPIFI addressing during hackrf_spiflash read operation. This fixes mismatches between programmed and read-back data.
This commit is contained in:
@ -463,7 +463,7 @@ usb_request_status_t usb_vendor_request_read_spiflash(
|
|||||||
return USB_REQUEST_STATUS_STALL;
|
return USB_REQUEST_STATUS_STALL;
|
||||||
} else {
|
} else {
|
||||||
/* TODO flush SPIFI "cache" before to read the SPIFI memory */
|
/* 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++)
|
for(i=0; i<len; i++)
|
||||||
{
|
{
|
||||||
spiflash_buffer[i] = u8_addr_pt[i];
|
spiflash_buffer[i] = u8_addr_pt[i];
|
||||||
|
Submodule firmware/libopencm3 updated: 0b14b17fc5...0f435b51f6
Reference in New Issue
Block a user