Lines Matching refs:MSD_DEBUG
22 #define MSD_DEBUG(...) rt_kprintf("[MSD] %d ", rt_tick_get()); rt_kprintf(__VA_ARGS__); macro
24 #define MSD_DEBUG(...) macro
298 MSD_DEBUG("[err] wait data start token timeout!\r\n"); in _wait_token()
331 MSD_DEBUG("[err] wait ready timeout!\r\n"); in _wait_ready()
428 MSD_DEBUG("[err] write block fail! data response : 0x%02X\r\n", response); in _write_block()
470 MSD_DEBUG("[err] the SPI SD device has no SPI!\r\n"); in rt_msd_init()
530 MSD_DEBUG("[err] SD card goto IDLE mode timeout!\r\n"); in rt_msd_init()
536 MSD_DEBUG("[info] SD card goto IDLE mode OK!\r\n"); in rt_msd_init()
551 MSD_DEBUG("[info] CMD8 response : 0x%02X 0x%02X 0x%02X 0x%02X 0x%02X\r\n", in rt_msd_init()
557 MSD_DEBUG("[info] CMD8 is illegal command.\r\n"); in rt_msd_init()
558 MSD_DEBUG("[info] maybe Ver1.X SD Memory Card or MMC card!\r\n"); in rt_msd_init()
565 MSD_DEBUG("[info] Ver2.00 or later or SDHC or SDXC memory card!\r\n"); in rt_msd_init()
572 … MSD_DEBUG("[err] VCA = 0, SD2.0 not surpport current operation voltage range\r\n"); in rt_msd_init()
581 MSD_DEBUG("[err] CMD8 SEND_IF_COND timeout!\r\n"); in rt_msd_init()
605 MSD_DEBUG("[info] It maybe SD1.x or MMC But it is Not response to CMD58!\r\n"); in rt_msd_init()
612 MSD_DEBUG("[info] It look CMD58 as illegal command so it is not SD card!\r\n"); in rt_msd_init()
621 MSD_DEBUG("[info] OCR is 0x%08X\r\n", OCR); in rt_msd_init()
625 MSD_DEBUG(("[err] SD 1.x But not surpport current voltage\r\n")); in rt_msd_init()
639 MSD_DEBUG("[info] try CMD55 + ACMD41 timeout! mabey MMC card!\r\n"); in rt_msd_init()
656 MSD_DEBUG("[info] Not SD card2 , may be MMC\r\n"); in rt_msd_init()
671 MSD_DEBUG("[info] Not SD card4 , may be MMC\r\n"); in rt_msd_init()
679 MSD_DEBUG("[info] It is Ver1.X SD Memory Card!!!\r\n"); in rt_msd_init()
692 MSD_DEBUG("[info] try MMC card!\r\n"); in rt_msd_init()
728 MSD_DEBUG("[err] SD card goto IDLE mode timeout!\r\n"); in rt_msd_init()
744 MSD_DEBUG("[info] It is MMC card!!!\r\n"); in rt_msd_init()
751 MSD_DEBUG("[err] SD card goto IDLE mode timeout!\r\n"); in rt_msd_init()
766 MSD_DEBUG("[err] It maybe SD2.0 But it is Not response to CMD58!\r\n"); in rt_msd_init()
773 MSD_DEBUG("[err] It look CMD58 as illegal command so it is not SD card!\r\n"); in rt_msd_init()
784 MSD_DEBUG("[info] OCR is 0x%08X\r\n", OCR); in rt_msd_init()
788 MSD_DEBUG(("[err] SD 1.x But not surpport current voltage\r\n")); in rt_msd_init()
803 MSD_DEBUG("[err] SD Ver2.x or later try CMD55 + ACMD41 timeout!\r\n"); in rt_msd_init()
820 MSD_DEBUG("[err] Not SD ready!\r\n"); in rt_msd_init()
830 MSD_DEBUG("[err] ACMD41 fail!\r\n"); in rt_msd_init()
838 MSD_DEBUG("[info] Not SD card4 , response : 0x%02X\r\n", response[0]); in rt_msd_init()
852 MSD_DEBUG("[err] It maybe SD2.0 But it is Not response to 2nd CMD58!\r\n"); in rt_msd_init()
859 MSD_DEBUG("[err] It look 2nd CMD58 as illegal command so it is not SD card!\r\n"); in rt_msd_init()
869 MSD_DEBUG("[info] OCR 2nd read is 0x%08X\r\n", OCR); in rt_msd_init()
873 MSD_DEBUG("[info] It is SD2.0 SDHC Card!!!\r\n"); in rt_msd_init()
878 MSD_DEBUG("[info] It is SD2.0 standard capacity Card!!!\r\n"); in rt_msd_init()
883 MSD_DEBUG("[err] SD card type unkonw!\r\n"); in rt_msd_init()
920 MSD_DEBUG("[err] CMD59 CRC_ON_OFF fail! response : 0x%02X\r\n", response[0]); in rt_msd_init()
934 MSD_DEBUG("[err] CMD16 SET_BLOCKLEN fail! response : 0x%02X\r\n", response[0]); in rt_msd_init()
953 MSD_DEBUG("[err] CMD9 SEND_CSD timeout!\r\n"); in rt_msd_init()
960 MSD_DEBUG("[err] CMD9 SEND_CSD fail! response : 0x%02X\r\n", response[0]); in rt_msd_init()
969 MSD_DEBUG("[err] read CSD fail!\r\n"); in rt_msd_init()
995 MSD_DEBUG("[err] bad CSD Version : %d\r\n", CSD_STRUCTURE); in rt_msd_init()
1002 MSD_DEBUG("[info] CSD version No. 1.0\r\n"); in rt_msd_init()
1006 MSD_DEBUG("[info] CSD version No. 1.1\r\n"); in rt_msd_init()
1010 MSD_DEBUG("[info] CSD version No. 1.2\r\n"); in rt_msd_init()
1034 … MSD_DEBUG("[info] TRAN_SPEED: 0x%02X, %dkbit/s.\r\n", tmp8, msd->max_clock / 1000); in rt_msd_init()
1038 … MSD_DEBUG("[info] TRAN_SPEED: 0x%02X, %dMbit/s.\r\n", tmp8, msd->max_clock / 1000 / 1000); in rt_msd_init()
1044 … MSD_DEBUG("[info] CSD : READ_BL_LEN : %d %dbyte\r\n", READ_BL_LEN, (1 << READ_BL_LEN)); in rt_msd_init()
1055 MSD_DEBUG("[info] CSD : C_SIZE : %d\r\n", C_SIZE); in rt_msd_init()
1062 MSD_DEBUG("[info] CSD : C_SIZE_MULT : %d\r\n", C_SIZE_MULT); in rt_msd_init()
1070 MSD_DEBUG("[info] card capacity : %d Mbyte\r\n", card_capacity / (1024 * 1024)); in rt_msd_init()
1079 MSD_DEBUG("[info] CSD Version 1.0\r\n"); in rt_msd_init()
1095 … MSD_DEBUG("[info] TRAN_SPEED: 0x%02X, %dMbit/s.\r\n", tmp8, msd->max_clock / 1000 / 1000); in rt_msd_init()
1100 … MSD_DEBUG("[info] CSD : READ_BL_LEN : %d %dbyte\r\n", READ_BL_LEN, (1 << READ_BL_LEN)); in rt_msd_init()
1111 MSD_DEBUG("[info] CSD : C_SIZE : %d\r\n", C_SIZE); in rt_msd_init()
1118 MSD_DEBUG("[info] CSD : C_SIZE_MULT : %d\r\n", C_SIZE_MULT); in rt_msd_init()
1126 MSD_DEBUG("[info] card capacity : %d Mbyte\r\n", card_capacity / (1024 * 1024)); in rt_msd_init()
1130 MSD_DEBUG("[info] CSD Version 2.0\r\n"); in rt_msd_init()
1157 … MSD_DEBUG("[info] TRAN_SPEED: 0x%02X, %dMbit/s.\r\n", tmp8, msd->max_clock / 1000 / 1000); in rt_msd_init()
1166 MSD_DEBUG("[info] CSD : C_SIZE : %d\r\n", C_SIZE); in rt_msd_init()
1171 …MSD_DEBUG("[info] card capacity : %d.%d Gbyte\r\n", card_capacity / 1024, (card_capacity % 1024) *… in rt_msd_init()
1172 MSD_DEBUG("[info] sector_count : %d\r\n", msd->geometry.sector_count); in rt_msd_init()
1176 MSD_DEBUG("[err] bad CSD Version : %d\r\n", CSD_STRUCTURE); in rt_msd_init()
1233 MSD_DEBUG("[err] read SINGLE_BLOCK #%d fail!\r\n", pos); in rt_msd_read()
1241 MSD_DEBUG("[err] read SINGLE_BLOCK #%d fail!\r\n", pos); in rt_msd_read()
1254 MSD_DEBUG("[err] read READ_MULTIPLE_BLOCK #%d fail!\r\n", pos); in rt_msd_read()
1266 MSD_DEBUG("[err] read READ_MULTIPLE_BLOCK #%d fail!\r\n", pos); in rt_msd_read()
1276 MSD_DEBUG("[err] read READ_MULTIPLE_BLOCK, send stop token fail!\r\n"); in rt_msd_read()
1309 MSD_DEBUG("[err] read SINGLE_BLOCK #%d fail!\r\n", pos); in rt_msd_sdhc_read()
1317 MSD_DEBUG("[err] read SINGLE_BLOCK #%d fail!\r\n", pos); in rt_msd_sdhc_read()
1330 MSD_DEBUG("[err] read READ_MULTIPLE_BLOCK #%d fail!\r\n", pos); in rt_msd_sdhc_read()
1342 MSD_DEBUG("[err] read READ_MULTIPLE_BLOCK #%d fail!\r\n", pos); in rt_msd_sdhc_read()
1352 MSD_DEBUG("[err] read READ_MULTIPLE_BLOCK, send stop token fail!\r\n"); in rt_msd_sdhc_read()
1374 MSD_DEBUG("[err] get SPI owner fail!\r\n"); in rt_msd_write()
1386 MSD_DEBUG("[err] CMD WRITE_BLOCK fail!\r\n"); in rt_msd_write()
1394 MSD_DEBUG("[err] write SINGLE_BLOCK #%d fail!\r\n", pos); in rt_msd_write()
1412 MSD_DEBUG("[err] CMD55 APP_CMD fail!\r\n"); in rt_msd_write()
1421 MSD_DEBUG("[err] ACMD23 SET_BLOCK_COUNT fail!\r\n"); in rt_msd_write()
1431 MSD_DEBUG("[err] CMD WRITE_MULTIPLE_BLOCK fail!\r\n"); in rt_msd_write()
1445 MSD_DEBUG("[err] write SINGLE_BLOCK #%d fail!\r\n", pos); in rt_msd_write()
1472 MSD_DEBUG("[warning] wait WRITE_MULTIPLE_BLOCK stop token ready timeout!\r\n"); in rt_msd_write()
1504 MSD_DEBUG("[err] CMD WRITE_BLOCK fail!\r\n"); in rt_msd_sdhc_write()
1512 MSD_DEBUG("[err] write SINGLE_BLOCK #%d fail!\r\n", pos); in rt_msd_sdhc_write()
1528 MSD_DEBUG("[err] CMD55 APP_CMD fail!\r\n"); in rt_msd_sdhc_write()
1537 MSD_DEBUG("[err] ACMD23 SET_BLOCK_COUNT fail!\r\n"); in rt_msd_sdhc_write()
1546 MSD_DEBUG("[err] CMD WRITE_MULTIPLE_BLOCK fail!\r\n"); in rt_msd_sdhc_write()
1560 MSD_DEBUG("[err] write MULTIPLE_BLOCK #%d fail!\r\n", pos); in rt_msd_sdhc_write()
1586 MSD_DEBUG("[warning] wait WRITE_MULTIPLE_BLOCK stop token ready timeout!\r\n"); in rt_msd_sdhc_write()
1627 MSD_DEBUG("spi device %s not found!\r\n", spi_device_name); in msd_init()