SD card CMD17 occur CRC error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SD card CMD17 occur CRC error

673 Views
aiweixin
Contributor IV

Hi,

    When s32 evb start from SD, CMD17 occur CRC error in BL2.

    As an almost universal rule, it don't check CRC in spi mode.

    Why? and how to make it ok?

Tags (2)
0 Kudos
4 Replies

652 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Could you help us elaborate on which BSP version are you using? Have you modified the source? How are you flashing the image?

Also, which company are you working with?

Please, let us know.

 

0 Kudos

605 Views
aiweixin
Contributor IV

Hi,

    This is the registers and memory map after send CMD17, it occur CRC error.

aiweixin_0-1683187241036.png

 

0 Kudos

637 Views
aiweixin
Contributor IV

Hi

    According to the RM of S32R45, the calculation and verification of CRC values are completed by the uSDHC module, the software ATF don't calculate CRC values and check them, it only gets CRC verification results through registers.

    So, why does it occur CRC error? Is it related to hardware design?  is the design flawed?

Best Regards.

0 Kudos

644 Views
aiweixin
Contributor IV

Hi,

    BSP version: GitHub - nxp-auto-linux/arm-trusted-firmware at release/bsp33.0-2.5

    The project use LinFlex0 to as a console, but I need to use LinFlex1, so all modifications are made to adapt to this feature.

    I use "dd if=fip.s32 of=/dev/sdc skip=512 seek=512 iflag=skip_bytes oflag=seek_bytes conv=fsync,notrunc" to flash the image.

    After send CMD17, the register INT_STATUS (402F_0000h + 30h) is 28000h, occur Command CRC error.

    Additionally, i find the sd card of 32G can work normally, but 16G and 64G can't. I don't understand what's the difference between them

aiweixin_0-1683085811980.png

aiweixin_1-1683086734405.png

 

 

0 Kudos