问答

汇集网友智慧,解决技术难题

21ic问答首页 - TAG - 读写
  • FatFS TF卡创建读写文件正常,插电脑上空白

    用的是HC32F4A0,目前做了: [list=1] [*]在电脑上对SD卡格式化为Fat32格式 [*]为了确定写入了SD卡,而不是读取缓存。写入文件后,将文件关闭,再以READ模式打开,进行读取,也是可以读的。 [/list][img]data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAaEAAABmCAIAAADtULktAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAEXRFWHRTb2Z0d2FyZQBTbmlwYXN0ZV0Xzt0AABGuSURBVHic7Z1/cBtlesefd+Pelfao1bn27kqcX7Ykbhxfb3BIASlzKQR1YofQ+K6Ya4/BOSBWJz2QSmNm6vExdze50KszvRUMbuVAL6bXg4gJ8k0iy60JSWAk8IWYXkbxtJYsLk3ggLlyCj4CWCtt/1hptZJ25dWPyPb6+xn9sfvs8z777sr79ftD+7xMFEUCAACDwi12BQAA4CoCjQMAGBloHADAyDScmoqVW+ZP283y9nDgXE3rAwAAtaSBMVZNea664gAAcFVpqFKkOA69XQDA0qXadlyVxQEA4KrSwDhu1aPuBf1S3+NV7RwHjQMALC2uH+qXt/W247Tc0FcFACxl9I7Habnl21/+1217Xtpx6McPf0U2vXv06383RPc889z21VVVtDzeGvnuvbO7Tnzvy3U8JwDg6nHPtuuVuz8+8T86CzYwxuSXuW72+4nota4ueUP202rHsby+KiMiCrx4bt/WrLhc+K/TbxDdwDjG6tTguzD+Lce/0Q0WsjJM+gJgIP795AwRfeNWKxUqjyY3+/0NjONkjZPUrVjgiIhp9Enz+6qMUfu2ndHRFy7e8BfriIgmn568bWDb+THGSY6nn9p6/wki2vn0s/u2Ep1+auuTtJNOHJuyPnii6xfbfnBMPqRwpvZ7f+LrWE05/zet2+g5ujf2wE1EkwN/+Yz5h0/u/kKmDhs6h2KddPqprRMMHWkADITygdb5cL/W1cUVtHUkaSsQOCLiGJM/WnaOESNq+qu/WXvy1HuMcYyde2XmFtsGRsSk3YP3s8HZ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yZy4tljdqURY643gWmkteIE71EhfJn33QOTBTdF6P3W73ZMd6PPuHF3pmanV/tJ4LLTviVBZHk1rOq4pilM+035WTmJKldyzXupeOFrb1s/NTip5o3jyaql2rPyuKohiN8r2Zo7besWh2gqbAu2CuTj6usOfFyb8BknsZ03Vak3vlTfpFxzI1yl2Y5v0sK06p+1lmfSq5rgL/XG0K/mQWnmBVO6/ye9Q391yj+1P8XJS2I05lcVRViyUSiaLvTJO5ubmmpialJRAIbNmyheqVthgAALRQXcwA7zkAAIwMNA4AYGSgcQAAI5PTOLfbXXCs2AIAAMuLvHacUtQgcAAAA1DYV5WkDQIHADAGOY3jeV7akAVOtgAAwDIlrx2nFLXKBG55549bIL9YcV65sllq+bYQB3GMFEed4p8F7969e4Xmjyv1k3yVvHJls9TybSEO4hgpjv78cRV3UQ2QP07z0rTyypXzvupSy7eFOIhjpDhaIH9cLn9c3gFFH1Yrr1y1LLV8W4iDOEaKkwX543L547Tyi2nmlSOqLH8cAKBuIH9cLn9cvj2XX0wrr1z5LLV8W4iDOEaKow7yx+Xyx5WbX0wqr388bqnl20IcxDFSHE2QP04jT1zhXK9G6rLy8scttXxbiIM4RoqD/HEAACOD/HEAgBUHNA4AYGSgcQAAIwONAwAYGWgcAMDIQOMAAEYGGgcAMDI11rjlnT8uW8ZuL0yPUps8Vksv3xbiII6R4qhTy/cclnv+OFGM8r29/Fi06BWHSq6rmKWWbwtxEMdIcfTnj6uYZZ8/LuYZnN7ldXWY81+6L5nHCvnjEAdxlkQcLZA/TpE/LjodoRm5cxvUEuJK81jpjbPc83YhDuIshThZ/h9r7U9FwlK7hgAAAABJRU5ErkJggg==[/img] 但是把SD卡插到读卡器上,看到的就是空白。有没有大佬知道这是为什么 代码附上 #include "FileEdit.h" #include "ff.h" #include "stdio.h" #include "BSP_Timer_INT_Count.h" FATFS fsobject; FIL fp; BYTE work[FF_MAX_SS]; const char write_buf[] = "abcdefg"; char read_buf[FF_MAX_SS] = ""; UINT bw; UINT br; void FatFS_Test(void) { FRESULT res; /* 挂载文件系统 */ res = f_mount(&fsobject, "0:", 1); //挂载fsobject到文件系统、0: 存储器路径,也就是SD卡、1立即挂载 if(res != FR_OK) { res = f_mkfs("0:", 0, work, sizeof(work)); res = f_mount(NULL, "0:", 1); res = f_mount(&fsobject, "0:", 1); } /* 打开、创建文件 */ f_mkdir("0:/dir0"); res = f_open(&fp, "0:/dir0/qwerpoiu.txt", FA_CREATE_ALWAYS | FA_WRITE | FA_READ); if(res == LL_OK) { res = f_write(&fp, write_buf, sizeof(write_buf), &bw); f_close(&fp); res = f_open(&fp, "0:/dir0/qwerpoiu.txt", FA_READ); if(res==LL_OK) { f_lseek(&fp, 0); res = f_read(&fp, read_buf, f_size(&fp), &br); __nop(); } else f_close(&fp); } f_unmount("0:"); }[img]data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA1wAAAEDCAIAAACuwJKYAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAEXRFWHRTb2Z0d2FyZQBTbmlwYXN0ZV0Xzt0AABqmSURBVHic7d1/TNT34cfxl7XJxG1dMsXjEPpNGrWR1nMFU2naGnGKTT2sCWxO/eO8qiyaeDrqEpDGtESEZCm2H5OSOM15f2hHh0sjZ2evTo2NoRrBcWaYGdfE8uM4b6yJTvGfyfePz91xPzhAUFF5Pv5ojs997nOfw19P3u/359NJ/f39AgAAwMT2zHifAAAAAMYfUQgAAACiEAAAANKzV69eHe9zAAAASDRnzpxh9yFjHqBnR/IdBwAASHD16tWHVxEjrz1K5kFh+hgAAABEIQAAAIhCAAAAiCgEAACAiEIAAACIKAQAAICIQgAAACghCnt7excsWNDb25uwU29vb2Zm5qRJk372s5/5/X5zY11dXWZmZvLO4yLVmQMAAAwudPZofcTRs1dC430+4+2Z48ePT4qYPn16S0vL9OnTo1uOHz9u7ldQUNDb21tQUOD1es2n3nvvvUAgYO68ZMmSvr6+B3VOvb29c+fOjdanJL/fv2rVqkHfoq6uLvnMh6jVuro6p9PZ19e3ZMmS6Me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QUQgAAAARhQAAABBRCAAAABGFAAAAEFEIAAAAEYUAAAAQUQgAAAARhQAAABBRCAAAABGFAAAAEFEIAAAAEYUAAAAQUQgAAAARhQAAABBRCAAAABGFAAAAEFEIAAAAEYUAAAAQUQgAAAARhQAAABBRCAAAABGFAAAAEFEIAAAAEYUAAAAQUQgAAAARhQAAABBRCAAAABGFAAAAEFEIAAAAEYUAAAAQUQgAAAARhQAAABBRCAAAABGFAAAAEFEIAAAAEYUAAAAQUQgAAAARhQAAABBRCAAAABGFAAAAEFEIAAAAEYUAAAAQUQgAAAARhQAAABBRCAAAABGFAAAAEFEIAAAAEYUAAAAQUQgAAAARhQAAABBRCAAAABGFAAAAEFEIAAAAEYUAAAAQUQgAAAARhQAAABBRCAAAABGFAAAAEFEIAAAAEYUAAAAQUQgAAAARhQAAABBRCAAAABGFAAAAEFEIAAAAEYUAAAAQUQgAAAARhQAAABBRCAAAABGFAAAAEFEIAAAAEYUAAAAQUQgAAAARhQAAABBRCAAAABGFAAAAEFEIAAAAEYUAAAAQUQgAAAARhQAAABBRCAAAABGFAAAAEFEIAAAAEYUAAAAQUQgAAAARhQAAABBRCAAAABGFAAAAEFEIAAAAEYUAAAAQUQgAAAARhQAAABBRCAAAABGFAAAAEFEIAAAAEYUAAAAQUQgAAAARhQAAABBRCAAAABGFAAAAEFEIAAAAEYUAAAAQUQgAAAARhQAAABBRCAAAABGFAAAAEFEIAAAAEYUAAAAQUQgAAAARhQAAABBRCAAAABGFAAAAEFEIAAAAEYUAAAAQUQgAAAARhQAAABBRCAAAABGFAAAAkPT/xQR8E7ejNGUAAAAASUVORK5CYII=[/img]

    FATFS 电脑 读写 国产芯片 单片机 MUC

    2597浏览量 2回复量 关注量
  • 怎么进行软件程序读写保护,可配置特定密钥吗? sos

    根据外设demo可以看到有密钥,这个密钥可自己进行配置吗?有没有什么要求

    demo 读写保护 软件 读写

    1176浏览量 0回复量 关注量
  • 请教下GD32H7系列的外部SRAM读写 EXMC初始化问题 赏300家园币

    EXMC初始化之后,对外部SRAM的操作没有效果,以下是代码部分(nor_region传的是EXMC_BANK0_NORSRAM_REGION0)。 请大佬们看看是什么问题。 void exmc_norflash_init(uint32_t nor_region) { exmc_norsram_parameter_struct nor_init_struct; exmc_norsram_timing_parameter_struct nor_timing_init_struct; gpio_deinit(GPIOB); gpio_deinit(GPIOD); gpio_deinit(GPIOE); gpio_deinit(GPIOF); gpio_deinit(GPIOG); exmc_norsram_deinit(nor_region); /* EXMC clock enable */ rcu_periph_clock_enable(RCU_EXMC); /* GPIO clock enable */ rcu_periph_clock_enable(RCU_GPIOB); rcu_periph_clock_enable(RCU_GPIOD); rcu_periph_clock_enable(RCU_GPIOE); rcu_periph_clock_enable(RCU_GPIOF); rcu_periph_clock_enable(RCU_GPIOG); /* configure GPIO D[0-15] */ gpio_af_set(GPIOD, GPIO_AF_12, GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_8 | GPIO_PIN_9 | GPIO_PIN_10 | GPIO_PIN_14 | GPIO_PIN_15); gpio_mode_set(GPIOD, GPIO_MODE_AF, GPIO_PUPD_PULLUP, GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_8 | GPIO_PIN_9 | GPIO_PIN_10 | GPIO_PIN_14 | GPIO_PIN_15); gpio_output_options_set(GPIOD, GPIO_OTYPE_PP, GPIO_OSPEED_100_220MHZ, GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_8 | GPIO_PIN_9 | GPIO_PIN_10 | GPIO_PIN_14 | GPIO_PIN_15); gpio_af_set(GPIOE, GPIO_AF_12, GPIO_PIN_7 | GPIO_PIN_8 | GPIO_PIN_9 | GPIO_PIN_10 | GPIO_PIN_11 | GPIO_PIN_12 | GPIO_PIN_13 | GPIO_PIN_14 | GPIO_PIN_15); gpio_mode_set(GPIOE, GPIO_MODE_AF, GPIO_PUPD_PULLUP, GPIO_PIN_7 | GPIO_PIN_8 | GPIO_PIN_9 | GPIO_PIN_10 | GPIO_PIN_11 | GPIO_PIN_12 | GPIO_PIN_13 | GPIO_PIN_14 | GPIO_PIN_15); gpio_output_options_set(GPIOE, GPIO_OTYPE_PP, GPIO_OSPEED_100_220MHZ, GPIO_PIN_7 | GPIO_PIN_8 | GPIO_PIN_9 | GPIO_PIN_10 | GPIO_PIN_11 | GPIO_PIN_12 | GPIO_PIN_13 | GPIO_PIN_14 | GPIO_PIN_15); /* configure GPIO A[0-23] */ gpio_af_set(GPIOF, GPIO_AF_12, GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4 | GPIO_PIN_5 | GPIO_PIN_12 | GPIO_PIN_13 | GPIO_PIN_14 | GPIO_PIN_15); gpio_mode_set(GPIOF, GPIO_MODE_AF, GPIO_PUPD_PULLUP, GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4 | GPIO_PIN_5 | GPIO_PIN_12 | GPIO_PIN_13 | GPIO_PIN_14 | GPIO_PIN_15); gpio_output_options_set(GPIOF, GPIO_OTYPE_PP, GPIO_OSPEED_100_220MHZ, GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4 | GPIO_PIN_5 | GPIO_PIN_12 | GPIO_PIN_13 | GPIO_PIN_14 | GPIO_PIN_15); gpio_af_set(GPIOG, GPIO_AF_12, GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4 | GPIO_PIN_5); gpio_mode_set(GPIOG, GPIO_MODE_AF, GPIO_PUPD_PULLUP, GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4 | GPIO_PIN_5); gpio_output_options_set(GPIOG, GPIO_OTYPE_PP, GPIO_OSPEED_100_220MHZ, GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4 | GPIO_PIN_5); gpio_af_set(GPIOD, GPIO_AF_12, GPIO_PIN_11 | GPIO_PIN_12 | GPIO_PIN_13); gpio_mode_set(GPIOD, GPIO_MODE_AF, GPIO_PUPD_PULLUP, GPIO_PIN_11 | GPIO_PIN_12 | GPIO_PIN_13); gpio_output_options_set(GPIOD, GPIO_OTYPE_PP, GPIO_OSPEED_100_220MHZ, GPIO_PIN_11 | GPIO_PIN_12 | GPIO_PIN_13); gpio_af_set(GPIOE, GPIO_AF_12, GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4 | GPIO_PIN_5 | GPIO_PIN_6); gpio_mode_set(GPIOE, GPIO_MODE_AF, GPIO_PUPD_PULLUP, GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4 | GPIO_PIN_5 | GPIO_PIN_6); gpio_output_options_set(GPIOE, GPIO_OTYPE_PP, GPIO_OSPEED_100_220MHZ, GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4 | GPIO_PIN_5 | GPIO_PIN_6); /* configure NOE NWE */ gpio_af_set(GPIOD, GPIO_AF_12, GPIO_PIN_4 | GPIO_PIN_5); gpio_mode_set(GPIOD, GPIO_MODE_AF, GPIO_PUPD_PULLUP, GPIO_PIN_4 | GPIO_PIN_5); gpio_output_options_set(GPIOD, GPIO_OTYPE_PP, GPIO_OSPEED_100_220MHZ, GPIO_PIN_4 | GPIO_PIN_5); /* configure NBL0-1 */ gpio_af_set(GPIOE, GPIO_AF_12, GPIO_PIN_0 | GPIO_PIN_1); gpio_mode_set(GPIOE, GPIO_MODE_AF, GPIO_PUPD_PULLUP, GPIO_PIN_0 | GPIO_PIN_1); gpio_output_options_set(GPIOE, GPIO_OTYPE_PP, GPIO_OSPEED_100_220MHZ, GPIO_PIN_0 | GPIO_PIN_1); /* configure EXMC NE0*/ gpio_af_set(GPIOD, GPIO_AF_12, GPIO_PIN_7); gpio_mode_set(GPIOD, GPIO_MODE_AF, GPIO_PUPD_PULLUP, GPIO_PIN_7); gpio_output_options_set(GPIOD, GPIO_OTYPE_PP, GPIO_OSPEED_100_220MHZ, GPIO_PIN_7); /* configure CLK and NWAIT */ gpio_af_set(GPIOD, GPIO_AF_12, GPIO_PIN_3 | GPIO_PIN_6); gpio_mode_set(GPIOD, GPIO_MODE_AF, GPIO_PUPD_PULLUP, GPIO_PIN_3 | GPIO_PIN_6); gpio_output_options_set(GPIOD, GPIO_OTYPE_PP, GPIO_OSPEED_100_220MHZ, GPIO_PIN_3 | GPIO_PIN_6); exmc_norsram_struct_para_init(&nor_init_struct); nor_timing_init_struct.asyn_access_mode = EXMC_ACCESS_MODE_A; nor_timing_init_struct.syn_data_latency = EXMC_DATALAT_6_CLK; nor_timing_init_struct.syn_clk_division = EXMC_SYN_CLOCK_RATIO_6_CLK; nor_timing_init_struct.bus_latency = 5; nor_timing_init_struct.asyn_data_setuptime = 80; nor_timing_init_struct.asyn_address_holdtime = 10; nor_timing_init_struct.asyn_address_setuptime = 10; /* configure EXMC bus parameters */ nor_init_struct.norsram_region = nor_region; nor_init_struct.address_data_mux = DISABLE; nor_init_struct.memory_type = EXMC_MEMORY_TYPE_SRAM; nor_init_struct.databus_width = EXMC_NOR_DATABUS_WIDTH_16B; nor_init_struct.burst_mode = DISABLE; nor_init_struct.nwait_polarity = EXMC_NWAIT_POLARITY_LOW; nor_init_struct.nwait_config = EXMC_NWAIT_CONFIG_BEFORE; nor_init_struct.memory_write = ENABLE; nor_init_struct.nwait_signal = DISABLE; nor_init_struct.extended_mode = DISABLE; nor_init_struct.asyn_wait = DISABLE; nor_init_struct.write_mode = EXMC_ASYN_WRITE; nor_init_struct.cram_page_size = EXMC_CRAM_AUTO_SPLIT; nor_init_struct.read_write_timing = &nor_timing_init_struct; nor_init_struct.write_timing = &nor_timing_init_struct; exmc_norsram_init(&nor_init_struct); exmc_norsram_enable(nor_region); }

    SRAM 读写 EXMC GD32H7 国产芯片 MUC

    6825浏览量 4回复量 关注量
  • 智能门锁读写过程失效 sos

    [font=宋体][font=宋体][size=10.5pt]物料[/size][/font][/font][font=Calibri][size=10.5pt]CAT24C64WI[/size][/font][font=宋体][font=宋体][size=10.5pt]用于智能门锁产品,使用中发现不良,产品工作电源[/size][/font][/font][font=Calibri][size=10.5pt]4.5~6V [/size][/font][font=宋体][font=宋体][size=10.5pt]电流[/size][/font][/font][font=Calibri][size=10.5pt]50~70mA [/size][/font][font=宋体][font=宋体][size=10.5pt]。[/size][/font][/font][align=left] [font=宋体]上机后的测试情况:[/font][font=Calibri]24C64[/font][font=宋体]在[/font][font=Calibri]PCB[/font][font=宋体]板上作为临时存储资料,在产品正常的运作下是需要以下步骤:[/font][font=Calibri]1[/font][font=宋体]刷授权卡,[/font][font=Calibri]2[/font][font=宋体]时间卡,[/font][font=Calibri]3[/font][font=宋体]设置卡,[/font][font=Calibri]4[/font][font=宋体]开门卡。目前情况是前面两个步骤正常操作,到了第三个步骤设置卡一使用就被清空没有资料 导致无法开门。(第三步设置卡既是作为房号储存)但操作时没有任何信息储存被自动清空[/font][/align][align=left][font=宋体] 有没有大神可以帮帮忙 看看是什么原因呀 ON品牌的原装物料[/font][/align]

    使用 产品 智能门锁 失效 读写 烧录读写失效

    1007浏览量 0回复量 关注量
  • GD32H7移植FatFs读写SD卡,电脑上看不到文件

    通过H7往SD卡写入txt文件,使用读卡器在电脑上看不到该文件,但是在H7上始终可以读取文件,并且也可以查看文件信息;同理,在电脑上创建的文件,在H7上也无法搜索和查看到。不知道是什么原因。

    移植 读写 GD32H7 FATFS GD32

    1152浏览量 1回复量 关注量
  • HK32F030Mxx_ 读写内部flash的demo sos

    内部空间FLASH读写一页的操作函数例程,应该怎么写?

    xx HK32F030M 读写 mx flash demo

    1374浏览量 0回复量 关注量
  • GD32E503VEt6可以进**读写但是无法挂载FATFS

    我一开始用的是最新版的0.14文件系统,发现不行,f-mount挂载不了报13错误,然后换了低版本报12错误,总之挂载不了,请问下官方有没有demo。还有个问题,本来打算用GD32E503做USB读卡器这种,发现不支持USBHS和USBFS,有没有解决方案。

    GD32 FATFS 读写 US USB

    1072浏览量 1回复量 关注量
  • AC7811用什么设备可以读写

    AC7811用什么设备接5根线可以读写,电路板上有个5针接口,哪位老师指导一下,

    单片机 AC 读写 接口 电路 电路板

    1807浏览量 5回复量 关注量
  • PIC47Q10读写EEPROM,我是用的MCC生成的代码,会有错误吗?

    MCC生成的代码如下:void WR_EEPROM(uint16_t bAdd, uint8_t bData) { uint8_t GIEBitValue = INTCONbits.GIE; NVMADRU = 0x31; NVMADRH = (uint8_t)((bAdd & 0xFF00) >> 8); NVMADRL = (uint8_t)(bAdd & 0x00FF); NVMDATL = (uint8_t)(bData & 0xFF); NVMCON0bits.NVMEN = 1; INTCONbits.GIE = 0; NVMCON2 = 0x55; NVMCON2 = 0xAA; NVMCON1bits.WR = 1; while (NVMCON1bits.WR) { } NVMCON0bits.NVMEN = 0; INTCONbits.GIE =GIEBitValue; } uint8_t RD_EEPROM(uint16_t bAdd) { NVMADRU = 0x31; NVMADRH = (uint8_t)((bAdd & 0xFF00) >> 8); NVMADRL = (uint8_t)(bAdd & 0x00FF); NVMCON1bits.RD = 1; NOP(); NOP(); return (NVMDATL); }

    EEPROM 读写 pic 代码 AD ui

    3307浏览量 4回复量 关注量
  • GD32F450 FLASH

    最近在调试GD32F450芯片,来替换STM32F4系列。目前一切顺利,SPI,TIMER,IIC,串口等外设都已经调试完成,还剩最后一个FLASH读写,这个读写流程参照正点原子的开发板例程写的,目前能够正常读写FLASH,但是有一个问题,我连仿真器调试时,只要把FLASH读写操作函数编译到MAIN函数代码里面去,进入调试模式,程序跳到MAIN函数起始位置时,FLASH里面的内容就被擦除了,这是什么原因?我如果把读写操作屏蔽,编译后进入调试模式,原来写的数据都还在,没有被擦除。

    flash GD32F450 调试 读写 函数 FLASH读写

    2190浏览量 3回复量 关注量
  • RC522模块如何用

    用淘*的RC522模块,可以读写卡,但有个问题,卡是人家自己买的,要求只能用他家的卡,而且有次数限制,机子装好就拿走了,但现在有个问题,有人不知道是拿用完的卡处理过还是也从淘*上买了卡,也能用,搞得现在次数限制没有了,这个是怎么处理好

    RC522 rc 读写

    5304浏览量 15回复量 关注量
  • STM32F4移植到GD32F4,SDIO读写速度变慢,差了10倍。

    如标题,STM32F4代码直接移植到GD32F4上,SDIO能用,但读写速度很慢,使用轮询的方式读数据,GD比ST慢10倍,请问有人知道怎么回事,怎么改,STM32用的是HAL库

    STM32F4 移植 读写 sd IO 代码

    2150浏览量 1回复量 关注量
  • 雅特利的下在线 ,一定要连RST么?

    SWD 模式下,用雅特利的下在线 ,如果不接RST 读写不成,找不到器件,用第3方可以用,我用STLINK 下载STM32 重来没连过RST ,所以我的板子都没有吧RST 放道烧录口上,烧录口只有电 地 DIO CLK 买的时候问过了,说是只要SWD 口没锁 就不需要RST , 我是个特例么?还是说我的这个下在线有毛病

    RS ST 烧录 link 读写 器件

    1304浏览量 2回复量 关注量
  • AT32F421C8T7 flash频繁读写无法写入

    对AT32F421C8T7内部flash进行10s一次的读写,两次读写期间都关闭flash使能并进入standby,结果程序进行读写了十几次~几十次以后,读写内容不再更新。每次写入都有进行解锁flash和页擦除的操作,我将对flash的两次读写之间的间隔延长到30s后,就未出现上诉问题。所以想问一下是由于什么原因引起的flash锁死无法修改。

    flash 读写 stand STANDBY AN

    1982浏览量 3回复量 关注量
  • STM32F2XX系列SD卡的读写速度和NAND读写速度哪个更快?

    STM32F2XX系列SD卡的读写速度和NAND读写速度哪个更快?

    NAND SD卡 读写 STM32F2

    1115浏览量 14回复量 关注量