试试看我的,103ZET6,SD驱动是5.1.0,库函数3.6.1,FATFS 0.09B,我自己没做过测试写入,但是读是正常的。 加入了SD卡供电开关和插入监测,根据你自己的硬件在选择引脚或是屏蔽。 --- 你好,你这个初始化都过不了 卡死在SD_Error SD_WaitReadOperation(void) { SD_Error errorstatus = SD_OK; uint32_...
HAL_UART_Transmit(&huart1, (uint8_t *)"ERROR\n", 6, 500);break;} for(int i = 0;i ...
移植ST官方demo,做了部分修改#include "STM32f10x.h"#include "sdio_sd.h"/* RCC时钟配置 */void RCC_config(void){ ErrorStatus HSEStartUpStatus; /* RCC寄存器设置为默认配置 */ RCC_DeInit(); /* 打开外部高速时钟 */ RCC_HSEConf... 0 STM32之SDIO例程.pdf 155 Bytes , 下载次数: 5 ...
6 hisi-sfc: probe of hisi_spi_nor.0 failed with error -2 7 SPI Nand ID Table Version 2.7 8 Cannot found a valid SPI Nand Device 9 hisi_spi_nand_probe(175): Error: driver probe, result: -19 10 libphy: hisi_gemac_mii_bus: probed 11 libphy: Fixed MDIO Bus: probed 12 hi_gmac...
Init.BusWide) != HAL_OK) { sd_state = HAL_ERROR; } else { sd_state = HAL_OK; } } return sd_state; } 该函数的部分执行流程如下: (1) 配置SD外设参数,初始化SD外设。 (2) 执行BSP_SD_MspInit函数,其功能是对底层SDMMC引脚进行初始化以及开启相关时钟,该函数在之前已经讲解。 (3) HAL_...
("Error creating main thread.\n");51gotoerr_ndev;52}5354priv->work_thread = create_singlethread_workqueue("lbs_worker");55INIT_WORK(&priv->mcast_work, lbs_set_mcast_worker);5657priv->wol_criteria =EHS_REMOVE_WAKEUP;58priv->wol_gpio =0xff;59priv->wol_gap =20;60priv->ehs_remove_...
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 SD_Error mySD_Identify(void) { __IO SD_Error errorstatus = SD_OK; uint32_t response = 0, count = 0, validvoltage = 0; uint32_t SDType = SD_STD_CAPACITY; ...
// SD_Error Status; if (count > 1) { SD_ReadMultiBlocks(buff, sector*BLOCK_SIZE, BLOCK_SIZE, count);//扇区地址*512就是实际地址 默认一个扇区就是512个字节 } else { SD_ReadBlock(buff, sector*BLOCK_SIZE, BLOCK_SIZE); } return RES_OK; ...
Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Ca...
47、DMID8127:120OEM/Application IDOID16119:104Product namePNM40|103:64Product revisionPRV63:56Product serial numberPSN32|55:24reserved423:20Manufacturing dateMDT1219:8CRC7 checksumCRC了7:1not used, always 1-10:0表1.5.5卡CID寄存器位定义SD卡在收到CMD2后,将返回R2长响应(136位),其中包含128位...