cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
200 Views
Registered: ‎05-17-2010

Max blkcnt limit of sdps_v3_5 on ZYNQ 7000

Hi, All

I am using ZYNQ 7020, and try to read something from my SD card. I use the SDK from Vivado, and my code as below. It works fine when the size is 0x2000 or less.

But when I try 0x4000, it return status with 1, which is XST_FAILURE. Is there any blkcnt limit here? Or I missed anything?

int sd_copy(void *dst, uint32_t src_lba, uint32_t size)
{
    int status = XSdPs_ReadPolled(&Ps7_sd_0, src_lba, size, dst);
    if(status != XST_SUCCESS){
        printf("SD0 Read failed, status: %d\n", status);
        return -1;
    }
    return 0;
}
0 Kudos
0 Replies