SAMA5D27-SOM1-EK1 Boot From SDMMC1

Moderator: nferre

blue_z
Location: USA
Posts: 1784
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAMA5D27-SOM1-EK1 Boot From SDMMC1

Thu Nov 29, 2018 3:45 am

Trilok wrote: We crossed checked hardware data lines(D0 - D3) it seems to be everything okay.
"Everything okay" seems too broad/optimistic for what sounds like just a DC test.

Trilok wrote: 1. I booted AT-91Bootstarp and U-boot from QSPI, in U-boot i can able to access the SD card. I'm still in confusion why AT91Bootstrap is not able to load the files from SD card.
What does "access" mean?
Does it mean read and write operations with 100% data integrity?
Maybe you're "in confusion" because you haven't grasped that there's more than one configuration of the sdmmc interface for reading from the SDcard?
Besides the numerous sdmmc configurations (for data width, voltages, and speeds), there are the various SoC configurations to also consider (e.g. clock sources).
Nor have you provided any evidence that your hardware is reliable.
In fact your own tests indicate that your confusion seems to be based on a denial that your HW could be faulty.

Trilok wrote: 2. I loaded bare metal example code from IAR embedded studio.
"Bare metal example code" is a vague description of what you're using.

Trilok wrote: In the that some times SD is detecting some times SD is not detecting(Init failing). Here is the log :

I. When SD detected
...
II. When SD not detected
...
Are those "errors" during the "When SD detected" sequence significant or not?
Do you have proven known-functional hardware to perform this same test with your "bare metal example code" for comparison?

Does this "bare metal example code" work consistently and reliably on known-functional hardware?
If so, then this "sometimes works, sometimes doesn't" results on your HW essentially defines flaky hardware and contradicts your "everything okay" assessment.

Regards
Trilok
Posts: 9
Joined: Mon Jul 23, 2018 7:59 am

Re: SAMA5D27-SOM1-EK1 Boot From SDMMC1

Thu Nov 29, 2018 7:13 am

Hi blue_z,

1.With U-boot I'm able to read and write the file into SD card. I booted U-boot from QSPI flash. I placed AT91Bootstrap in SD and copied U-boot from QSPI to ram and executed. Here is the log:

-------------------------------------------------------------------------------------------------------------------------------------------------
AT91Bootstrap 3.8.11-00004-g6a09dc4 (Mon Nov 26 17:25:32 IST 2018)

All interrupts redirected to AIC
SF: Got Manufacturer and Device ID: bf2643
SF: Copy 0xa0000 bytes from 0x40000 to 0x23f00000
SF: Done to load image
<debug_uart>

U-Boot 2018.07-linux4sam_6.0-dirty (Nov 28 2018 - 13:00:34 +0530)

CPU: SAMA5D27 1G bits DDR2 SDRAM
Crystal frequency: 24 MHz
CPU clock : 492 MHz
Master clock : 164 MHz
Model: Atmel SAMA5D27 SOM1 EK
DRAM: 128 MiB
MMC: sdio-host@a0000000: 0, sdio-host@b0000000: 1
Loading Environment from FAT... ** Bad device mmc 0 **
Failed (-5)
In: serial@f8020000
Out: serial@f8020000
Err: serial@f8020000
Model: Atmel SAMA5D27 SOM1 EK
Net: eth0: ethernet@f8008000
Hit any key to stop autoboot: 0
=>
=>
=>
=> fatinfo mmc 1
Interface: MMC
Device 1: Vendor: Man 000041 Snr 7d213c01 Rev: 5.0 Prod: SD16G0
Type: Removable Hard Disk
Capacity: 14832.0 MB = 14.4 GB (30375936 x 512)
Filesystem: FAT32 "BOOT "
=> fatls mmc 1
443399 u-boot.bin
16384 uboot.env
3901236 sama5d27_som1_ek.itb
System Volume Information/
.Trash-1000/
14293 BOOT_SD_U.bin
9580 BOOT.bin

5 file(s), 2 dir(s)

=> <INTERRUPT>
=>
=>
=> fatload mmc 1 0x22000000 BOOT.bin
9580 bytes read in 20 ms (467.8 KiB/s)
-------------------------------------------------------------------------------------------------------------------------------------------------
2. With proven hardware(SAMA5D2_Xplained) I tested bare metal code its working fine. Here is the log :

-------------------------------------------------------------------------------------------------------------------------------------------------
-I- Device clk 400 kHz
-W- CMD52 ended with error flags 0001, cmd status ERR_NO_RESPONSE
-E- Cmd52 ERR_NO_RESPONSE
-W- CMD5 ended with error flags 0001, cmd status ERR_NO_RESPONSE
-E- Cmd5 ERR_NO_RESPONSE
-I- Device supports 3.0V:[XXXXXX] 3.3V:[XXXXXX]
-I- SDHC MEM
-I- Device max current: 50 mA
-I- Device clk 49800 kHz
-I- SD/MMC device initialization successful
High-capacity SD card v3.0x, 4-bit data, in HS mode at 49800 kHz
Device memory size: 14832 MiB, 30375936 * 512B
=== Card IDentification ================
.MID 0x41
.OID 42
.PNM SD16G
.PRV 3.0
.PSN 0x507D213C
.MDT 2018/08
.CRC 0x7F
=== SD Card Configuration ==============
.SCR_STRUCT 0x0
.SD_SPEC 0x2
.SD_SPEC3 1
.SD_SPEC4 0
.DATA_ST_AFTER_ER 1
.SD_SEC 0x3
.EX_SEC 0x0
.SD_BUS_WIDTHS 0x5
.CMD20 0
.CMD23 1
.CMD48/49 0
.CMD58/59 0
=== SD Status ==========================
.DAT_BUS_WIDTH 0x2
.SEC_MODE 0
.SD_CARD_TYPE 0x0000
.PAREA_SIZE 67108864
.SPD_CLASS 0x04
.UHS_SPD_GRADE 0x1
.PE_MOVE 4 MB/sec
.AU_SIZE 0x9
.UHS_AU_SIZE 0x9
.ER_SIZE 8 AU
.ER_TIMEOUT 2 sec
.ER_OFFS 2 sec
=== Card-Specific Data =================
.CSD_STRUCT 0x1
.TAAC 0xE
.NSAC 0x0
.TRAN_SPD 0x5A
.CCC 0x5B5
.RD_BL_LEN 0x9
.RD_BL_PART 0
.WR_BL_MALIGN 0
.RD_BL_MALIGN 0
.DSR_IMP 0
.C_SIZE 0x73DF
.ER_BL_EN 1
.SECT_SIZE 0x7F
.WP_GRP_SIZE 0x0
.WP_GRP_EN 0
.R2W_FACT 0x2
.WR_BL_LEN 0x9
.WR_BL_PART 0
.FILE_FMT_GRP 0
.COPY 0
.PERM_WP 0
.TMP_WP 0
.FILE_FMT 0x0
.CRC 0x7F
-------------------------------------------------------------------------------------------------------------------------------------------------
With our hardware, Log:

-------------------------------------------------------------------------------------------------------------------------------------------------
-I- Device clk 400 kHz
-W- CMD52 ended with error flags 0001, cmd status ERR_NO_RESPONSE
-E- Cmd52 ERR_NO_RESPONSE
-W- CMD5 ended with error flags 0001, cmd status ERR_NO_RESPONSE
-E- Cmd5 ERR_NO_RESPONSE
-I- Device supports 3.0V:[XXXXXX] 3.3V:[XXXXXX]
-I- SDHC MEM
-I- Device max current: 50 mA
-W- CMD51 ended with error flags 0020, cmd status ERR_IO
-E- Cmd51 ERR_IO
-E- Acmd51 ERR_IO
-W- CMD13 ended with error flags 0020, cmd status ERR_IO
-E- Cmd13 ERR_IO
-E- Acmd13 ERR_IO
-I- Device clk 49200 kHz
-W- CMD13 ended with error flags 0020, cmd status ERR_IO
-E- Cmd13 ERR_IO
-E- Init ERR_IO
-E- SD/MMC device initialization failed: 6
-I- Device clk 400 kHz
-W- CMD52 ended with error flags 0001, cmd status ERR_NO_RESPONSE
-E- Cmd52 ERR_NO_RESPONSE
-W- CMD5 ended with error flags 0001, cmd status ERR_NO_RESPONSE
-E- Cmd5 ERR_NO_RESPONSE
-I- Device supports 3.0V:[XXXXXX] 3.3V:[XXXXXX]
-I- SDHC MEM
-I- Device max current: 50 mA
-W- CMD51 ended with error flags 0020, cmd status ERR_IO
-E- Cmd51 ERR_IO
-E- Acmd51 ERR_IO
-W- CMD13 ended with error flags 0020, cmd status ERR_IO
-E- Cmd13 ERR_IO
-E- Acmd13 ERR_IO
-I- Device clk 49200 kHz
-W- CMD13 ended with error flags 0020, cmd status ERR_IO
-E- Cmd13 ERR_IO
-E- Init ERR_IO
-E- SD/MMC device initialization failed: 6
-I- Device clk 400 kHz
-W- CMD52 ended with error flags 0001, cmd status ERR_NO_RESPONSE
-E- Cmd52 ERR_NO_RESPONSE
-W- CMD5 ended with error flags 0001, cmd status ERR_NO_RESPONSE
-E- Cmd5 ERR_NO_RESPONSE
-I- Device supports 3.0V:[XXXXXX] 3.3V:[XXXXXX]
-I- SDHC MEM
-I- Device max current: 50 mA
-W- CMD51 ended with error flags 0020, cmd status ERR_IO
-E- Cmd51 ERR_IO
-E- Acmd51 ERR_IO
-W- CMD13 ended with error flags 0020, cmd status ERR_IO
-E- Cmd13 ERR_IO
-E- Acmd13 ERR_IO
-I- Device clk 49200 kHz
-W- CMD13 ended with error flags 0020, cmd status ERR_IO
-E- Cmd13 ERR_IO
-E- Init ERR_IO
-E- SD/MMC device initialization failed: 6
-I- Device clk 400 kHz
-W- CMD52 ended with error flags 0001, cmd status ERR_NO_RESPONSE
-E- Cmd52 ERR_NO_RESPONSE
-W- CMD5 ended with error flags 0001, cmd status ERR_NO_RESPONSE
-E- Cmd5 ERR_NO_RESPONSE
-I- Device supports 3.0V:[XXXXXX] 3.3V:[XXXXXX]
-I- SDHC MEM
-I- Device max current: 50 mA
-W- CMD51 ended with error flags 0020, cmd status ERR_IO
-E- Cmd51 ERR_IO
-E- Acmd51 ERR_IO
-W- CMD13 ended with error flags 0020, cmd status ERR_IO
-E- Cmd13 ERR_IO
-E- Acmd13 ERR_IO
-I- Device clk 49200 kHz
-W- CMD13 ended with error flags 0020, cmd status ERR_IO
-E- Cmd13 ERR_IO
-E- Init ERR_IO
-E- SD/MMC device initialization failed: 6
-I- Device clk 400 kHz
-W- CMD52 ended with error flags 0001, cmd status ERR_NO_RESPONSE
-E- Cmd52 ERR_NO_RESPONSE
-W- CMD5 ended with error flags 0001, cmd status ERR_NO_RESPONSE
-E- Cmd5 ERR_NO_RESPONSE
-I- Device supports 3.0V:[XXXXXX] 3.3V:[XXXXXX]
-I- SDHC MEM
-I- Device max current: 50 mA
-W- CMD51 ended with error flags 0020, cmd status ERR_IO
-E- Cmd51 ERR_IO
-E- Acmd51 ERR_IO
-W- CMD13 ended with error flags 0020, cmd status ERR_IO
-E- Cmd13 ERR_IO
-E- Acmd13 ERR_IO
-I- Device clk 49200 kHz
-W- CMD13 ended with error flags 0020, cmd status ERR_IO
-W- st 34003
-I- SD/MMC device initialization successful
High-capacity SD card, 4-bit data, in HS mode at 49200 kHz
Device memory size: 14832 MiB, 30375936 * 512B
=== Card IDentification ================
.MID 0x41
.OID 42
.PNM SD16G
.PRV 3.0
.PSN 0x507D213C
.MDT 2018/08
.CRC 0x7F
=== SD Card Configuration ==============
.SCR_STRUCT 0x2
.SD_SPEC 0xB
.SD_SPEC3 0
.SD_SPEC4 0
.DATA_ST_AFTER_ER 0
.SD_SEC 0x5
.EX_SEC 0x0
.SD_BUS_WIDTHS 0x8
.CMD20 0
.CMD23 0
.CMD48/49 0
.CMD58/59 0
=== SD Status ==========================
.DAT_BUS_WIDTH 0x0
.SEC_MODE 0
.SD_CARD_TYPE 0x0004
.PAREA_SIZE 4
.SPD_CLASS 0x04
.UHS_SPD_GRADE 0x0
.PE_MOVE 144 MB/sec
.AU_SIZE 0x0
.UHS_AU_SIZE 0xA
.ER_SIZE 2058 AU
.ER_TIMEOUT 6 sec
.ER_OFFS 1 sec
=== Card-Specific Data =================
.CSD_STRUCT 0x1
.TAAC 0xE
.NSAC 0x0
.TRAN_SPD 0x5A
.CCC 0x5B5
.RD_BL_LEN 0x9
.RD_BL_PART 0
.WR_BL_MALIGN 0
.RD_BL_MALIGN 0
.DSR_IMP 0
.C_SIZE 0x73DF
.ER_BL_EN 1
.SECT_SIZE 0x7F
.WP_GRP_SIZE 0x0
.WP_GRP_EN 0
.R2W_FACT 0x2
.WR_BL_LEN 0x9
.WR_BL_PART 0
.FILE_FMT_GRP 0
.COPY 0
.PERM_WP 0
.TMP_WP 0
.FILE_FMT 0x0
.CRC 0x7F
----------------------------------------------------------------------------------------------------------------------------------------------

Regards
blue_z
Location: USA
Posts: 1784
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAMA5D27-SOM1-EK1 Boot From SDMMC1

Fri Nov 30, 2018 2:59 am

Trilok wrote: 1.With U-boot I'm able to read and write the file into SD card. ... Here is the log:
I only see a simple read. No verify. No write.
You ask for help and answers. But you respond to my questions with incomplete responses.
Trilok wrote: I booted U-boot from QSPI flash. I placed AT91Bootstrap in SD and copied U-boot from QSPI to ram and executed.
What you wrote is incomprehensible. Fortunately the log explains it.

Trilok wrote: 2. With proven hardware(SAMA5D2_Xplained) I tested bare metal code its working fine. Here is the log :
...
With our hardware, Log:
...
This is not a sufficient response to my questions.
Does this "working fine" mean that this output from SAMA5D2-XULT is consistent and repeatable, unlike your hardware?
Apparently you're just going to dump the data without any analysis?

Has your "bare metal code" changed since your previous post?
Why are there more error messages this time around than the previous post?
Or is this part of the variable results of "sometimes works, sometimes doesn't" behavior of your hardware?

Code: Select all

$ sdiff pass_old.txt pass_new.txt
							      >	-I- Device clk 400 kHz
-W- CMD52 ended with error flags 0001, cmd status ERR_NO_RESP	-W- CMD52 ended with error flags 0001, cmd status ERR_NO_RESP
-E- Cmd52 ERR_NO_RESPONSE					-E- Cmd52 ERR_NO_RESPONSE
-W- CMD5 ended with error flags 0001, cmd status ERR_NO_RESPO	-W- CMD5 ended with error flags 0001, cmd status ERR_NO_RESPO
-E- Cmd5 ERR_NO_RESPONSE					-E- Cmd5 ERR_NO_RESPONSE
-I- Device supports 3.0V:[XXXXXX] 3.3V:[XXXXXX]			-I- Device supports 3.0V:[XXXXXX] 3.3V:[XXXXXX]
-I- SDHC MEM							-I- SDHC MEM
-I- Device max current: 50 mA					-I- Device max current: 50 mA
-W- CMD51 ended with error flags 0020, cmd status ERR_IO	-W- CMD51 ended with error flags 0020, cmd status ERR_IO
-E- Cmd51 ERR_IO						-E- Cmd51 ERR_IO
-E- Acmd51 ERR_IO						-E- Acmd51 ERR_IO
-W- CMD13 ended with error flags 0020, cmd status ERR_IO	-W- CMD13 ended with error flags 0020, cmd status ERR_IO
-E- Cmd13 ERR_IO						-E- Cmd13 ERR_IO
-E- Acmd13 ERR_IO						-E- Acmd13 ERR_IO
-I- Device clk 49200 kHz					-I- Device clk 49200 kHz
-W- CMD13 ended with error flags 0020, cmd status ERR_IO	-W- CMD13 ended with error flags 0020, cmd status ERR_IO
-W- st 2c00b						      |	-E- Cmd13 ERR_IO
							      >	-E- Init ERR_IO
							      >	-E- SD/MMC device initialization failed: 6
							      >	-I- Device clk 400 kHz
							      >	-W- CMD52 ended with error flags 0001, cmd status ERR_NO_RESP
							      >	-E- Cmd52 ERR_NO_RESPONSE
							      >	-W- CMD5 ended with error flags 0001, cmd status ERR_NO_RESPO
							      >	-E- Cmd5 ERR_NO_RESPONSE
							      >	-I- Device supports 3.0V:[XXXXXX] 3.3V:[XXXXXX]
							      >	-I- SDHC MEM
							      >	-I- Device max current: 50 mA
							      >	-W- CMD51 ended with error flags 0020, cmd status ERR_IO
							      >	-E- Cmd51 ERR_IO
							      >	-E- Acmd51 ERR_IO
							      >	-W- CMD13 ended with error flags 0020, cmd status ERR_IO
							      >	-E- Cmd13 ERR_IO
							      >	-E- Acmd13 ERR_IO
							      >	-I- Device clk 49200 kHz
							      >	-W- CMD13 ended with error flags 0020, cmd status ERR_IO
							      >	-E- Cmd13 ERR_IO
							      >	-E- Init ERR_IO
							      >	-E- SD/MMC device initialization failed: 6
							      >	-I- Device clk 400 kHz
							      >	-W- CMD52 ended with error flags 0001, cmd status ERR_NO_RESP
							      >	-E- Cmd52 ERR_NO_RESPONSE
							      >	-W- CMD5 ended with error flags 0001, cmd status ERR_NO_RESPO
							      >	-E- Cmd5 ERR_NO_RESPONSE
							      >	-I- Device supports 3.0V:[XXXXXX] 3.3V:[XXXXXX]
							      >	-I- SDHC MEM
							      >	-I- Device max current: 50 mA
							      >	-W- CMD51 ended with error flags 0020, cmd status ERR_IO
							      >	-E- Cmd51 ERR_IO
							      >	-E- Acmd51 ERR_IO
							      >	-W- CMD13 ended with error flags 0020, cmd status ERR_IO
							      >	-E- Cmd13 ERR_IO
							      >	-E- Acmd13 ERR_IO
							      >	-I- Device clk 49200 kHz
							      >	-W- CMD13 ended with error flags 0020, cmd status ERR_IO
							      >	-E- Cmd13 ERR_IO
							      >	-E- Init ERR_IO
							      >	-E- SD/MMC device initialization failed: 6
							      >	-I- Device clk 400 kHz
							      >	-W- CMD52 ended with error flags 0001, cmd status ERR_NO_RESP
							      >	-E- Cmd52 ERR_NO_RESPONSE
							      >	-W- CMD5 ended with error flags 0001, cmd status ERR_NO_RESPO
							      >	-E- Cmd5 ERR_NO_RESPONSE
							      >	-I- Device supports 3.0V:[XXXXXX] 3.3V:[XXXXXX]
							      >	-I- SDHC MEM
							      >	-I- Device max current: 50 mA
							      >	-W- CMD51 ended with error flags 0020, cmd status ERR_IO
							      >	-E- Cmd51 ERR_IO
							      >	-E- Acmd51 ERR_IO
							      >	-W- CMD13 ended with error flags 0020, cmd status ERR_IO
							      >	-E- Cmd13 ERR_IO
							      >	-E- Acmd13 ERR_IO
							      >	-I- Device clk 49200 kHz
							      >	-W- CMD13 ended with error flags 0020, cmd status ERR_IO
							      >	-E- Cmd13 ERR_IO
							      >	-E- Init ERR_IO
							      >	-E- SD/MMC device initialization failed: 6
							      >	-I- Device clk 400 kHz
							      >	-W- CMD52 ended with error flags 0001, cmd status ERR_NO_RESP
							      >	-E- Cmd52 ERR_NO_RESPONSE
							      >	-W- CMD5 ended with error flags 0001, cmd status ERR_NO_RESPO
							      >	-E- Cmd5 ERR_NO_RESPONSE
							      >	-I- Device supports 3.0V:[XXXXXX] 3.3V:[XXXXXX]
							      >	-I- SDHC MEM
							      >	-I- Device max current: 50 mA
							      >	-W- CMD51 ended with error flags 0020, cmd status ERR_IO
							      >	-E- Cmd51 ERR_IO
							      >	-E- Acmd51 ERR_IO
							      >	-W- CMD13 ended with error flags 0020, cmd status ERR_IO
							      >	-E- Cmd13 ERR_IO
							      >	-E- Acmd13 ERR_IO
							      >	-I- Device clk 49200 kHz
							      >	-W- CMD13 ended with error flags 0020, cmd status ERR_IO
							      >	-W- st 34003
-I- SD/MMC device initialization successful			-I- SD/MMC device initialization successful
High-capacity SD card, 4-bit data, in HS mode at 49200 kHz	High-capacity SD card, 4-bit data, in HS mode at 49200 kHz
Device memory size: 14832 MiB, 30375936 * 512B			Device memory size: 14832 MiB, 30375936 * 512B
=== Card IDentification ================			=== Card IDentification ================
...  

 

So a comparison of (one version of) the SAMA5D2-XULT output to (the previous version of) your hardware's output indicates that a couple of error messages are expected.
But your hardware does generate additional error messages.

Even more significant, the two boards to not have the same output for what appears to be the same SDcard.
(Overall you are consistently negligent in providing details.)
Although the Card IDentification and Card-Specific Data values are identical, there are numerous difference in the SD Card Configuration and SD Status values.

Code: Select all

$ sdiff sam.txt pass_old.txt
-I- Device clk 400 kHz					      <
-W- CMD52 ended with error flags 0001, cmd status ERR_NO_RESP	-W- CMD52 ended with error flags 0001, cmd status ERR_NO_RESP
-E- Cmd52 ERR_NO_RESPONSE					-E- Cmd52 ERR_NO_RESPONSE
-W- CMD5 ended with error flags 0001, cmd status ERR_NO_RESPO	-W- CMD5 ended with error flags 0001, cmd status ERR_NO_RESPO
-E- Cmd5 ERR_NO_RESPONSE					-E- Cmd5 ERR_NO_RESPONSE
-I- Device supports 3.0V:[XXXXXX] 3.3V:[XXXXXX]			-I- Device supports 3.0V:[XXXXXX] 3.3V:[XXXXXX]
-I- SDHC MEM							-I- SDHC MEM
-I- Device max current: 50 mA					-I- Device max current: 50 mA
-I- Device clk 49800 kHz				      |	-W- CMD51 ended with error flags 0020, cmd status ERR_IO
							      >	-E- Cmd51 ERR_IO
							      >	-E- Acmd51 ERR_IO
							      >	-W- CMD13 ended with error flags 0020, cmd status ERR_IO
							      >	-E- Cmd13 ERR_IO
							      >	-E- Acmd13 ERR_IO
							      >	-I- Device clk 49200 kHz
							      >	-W- CMD13 ended with error flags 0020, cmd status ERR_IO
							      >	-W- st 2c00b
-I- SD/MMC device initialization successful			-I- SD/MMC device initialization successful
High-capacity SD card v3.0x, 4-bit data, in HS mode at 49800  |	High-capacity SD card, 4-bit data, in HS mode at 49200 kHz
Device memory size: 14832 MiB, 30375936 * 512B			Device memory size: 14832 MiB, 30375936 * 512B
=== Card IDentification ================			=== Card IDentification ================
.MID 0x41							.MID 0x41
.OID 42								.OID 42
.PNM SD16G							.PNM SD16G
.PRV 3.0							.PRV 3.0
.PSN 0x507D213C							.PSN 0x507D213C
.MDT 2018/08							.MDT 2018/08
.CRC 0x7F							.CRC 0x7F
=== SD Card Configuration ==============			=== SD Card Configuration ==============
.SCR_STRUCT 0x0						      |	.SCR_STRUCT 0x2
.SD_SPEC 0x2						      |	.SD_SPEC 0xB
.SD_SPEC3 1						      |	.SD_SPEC3 0
.SD_SPEC4 0							.SD_SPEC4 0
.DATA_ST_AFTER_ER 1					      |	.DATA_ST_AFTER_ER 0
.SD_SEC 0x3						      |	.SD_SEC 0x5
.EX_SEC 0x0							.EX_SEC 0x0
.SD_BUS_WIDTHS 0x5					      |	.SD_BUS_WIDTHS 0x8
.CMD20 0							.CMD20 0
.CMD23 1						      |	.CMD23 0
.CMD48/49 0							.CMD48/49 0
.CMD58/59 0							.CMD58/59 0
=== SD Status ==========================			=== SD Status ==========================
.DAT_BUS_WIDTH 0x2					      |	.DAT_BUS_WIDTH 0x0
.SEC_MODE 0							.SEC_MODE 0
.SD_CARD_TYPE 0x0000					      |	.SD_CARD_TYPE 0x0004
.PAREA_SIZE 67108864					      |	.PAREA_SIZE 4
.SPD_CLASS 0x04							.SPD_CLASS 0x04
.UHS_SPD_GRADE 0x1					      |	.UHS_SPD_GRADE 0x0
.PE_MOVE 4 MB/sec					      |	.PE_MOVE 144 MB/sec
.AU_SIZE 0x9						      |	.AU_SIZE 0x0
.UHS_AU_SIZE 0x9					      |	.UHS_AU_SIZE 0xA
.ER_SIZE 8 AU						      |	.ER_SIZE 2058 AU
.ER_TIMEOUT 2 sec					      |	.ER_TIMEOUT 6 sec
.ER_OFFS 2 sec						      |	.ER_OFFS 1 sec
=== Card-Specific Data =================			=== Card-Specific Data =================
.CSD_STRUCT 0x1							.CSD_STRUCT 0x1
.TAAC 0xE							.TAAC 0xE
.NSAC 0x0							.NSAC 0x0
.TRAN_SPD 0x5A							.TRAN_SPD 0x5A
.CCC 0x5B5							.CCC 0x5B5
.RD_BL_LEN 0x9							.RD_BL_LEN 0x9
.RD_BL_PART 0							.RD_BL_PART 0
.WR_BL_MALIGN 0							.WR_BL_MALIGN 0
.RD_BL_MALIGN 0							.RD_BL_MALIGN 0
.DSR_IMP 0							.DSR_IMP 0
.C_SIZE 0x73DF							.C_SIZE 0x73DF
.ER_BL_EN 1							.ER_BL_EN 1
.SECT_SIZE 0x7F							.SECT_SIZE 0x7F
.WP_GRP_SIZE 0x0						.WP_GRP_SIZE 0x0
.WP_GRP_EN 0							.WP_GRP_EN 0
.R2W_FACT 0x2							.R2W_FACT 0x2
.WR_BL_LEN 0x9							.WR_BL_LEN 0x9
.WR_BL_PART 0							.WR_BL_PART 0
.FILE_FMT_GRP 0							.FILE_FMT_GRP 0
.COPY 0								.COPY 0
.PERM_WP 0							.PERM_WP 0
.TMP_WP 0							.TMP_WP 0
.FILE_FMT 0x0							.FILE_FMT 0x0
.CRC 0x7F							.CRC 0x7F
$ 

Most of the SD Card Configuration and SD Status values are different.
For the same SDcard, I would expect them to be identical, but I'm not an SDcard expert, so I'm not sure.
I'll leave it to you determine the significance of these differences.
You can lookup all of these parameters in the SD Specifications, Part 1, Physical Layer, Simplified Specification document.


Regards

Return to “SAMA5-based”

Who is online

Users browsing this forum: No registered users and 2 guests