rt thread 文件系统能同时读写多个文件吗

rt thread 文件系统能同时读写多个文件吗,第1张

当然可以,同时打开多个文件读取或写入都是ok的,无论是FAT文件系统还是UFFS文件系统共,可以写个软件测试一下

稍后我写个软蔽神件测试一下,然后再贴出结果

\ | /

- RT - Thread Operating System

/ | \ 1.2.0 build Aug 23 2016

2006 - 2013 Copyright by rt-thread team

----------------------------------------

<boot>Booting...

<袜并档boot>----------- sys info ------------

<boot>rom = 512 KB

<boot>ram = 64 KB @0x20000000

<boot>xram = 512 KB @0x68000000

<boot>heap = 512 KB @0x68000000

<boot>freq = 72 Mhz

<boot>----------- app info ------------

<boot>bin = 161 KB @0x08003000

<boot>mem = 45 KB (static req)

<boot>............................[PASS]

----------------------------------------

<xram>Testing...

<xram>16 bit

<xram>512 KB OK

<xram>............................[PASS]

----------------------------------------

<SPI>Testing...

<SPI>Finding Next...

<SPI>ID = 00BF2541

<i2c>Configuration...

<i2c>............................[PASS]

----------------------------------------

<告乱cat9555>Testing...

<cat9555>EXIO0 @0x40

<cat9555>[cfg = 0x00c0]

init OK!

<cat9555>........................[PASS]

----------------------------------------

<Nand>Testing...

<Nand>ID = 2C,D3,90,A6,64

<Nand>Type = 1024M

<Nand>...........................[PASS]

----------------------------------------

<Nor>Testing...

<Nor>ID = 0001,227E,2221,2201

<Nor>...........................[PASS]

----------------------------------------

<CH374T>Testing...

<CH374T>Detect OK

<CH374T>LibInit OK

<CH374T>.........................[PASS]

----------------------------------------

<RTC>Testing...

<RTC>External Reset occurred

<RTC>No need to configure RTC

<RTC>............................[PASS]

----------------------------------------

<wm89xx>Testing...

<wm89xx>Find chip

<wm89xx>.........................[PASS]

----------------------------------------

<FileSystem>Init...

<FileSystem>Nor FS initialized!

<FileSystem>....................[PASS]

----------------------------------------

os : system memory alloc 1120 bytes

flsh: UFFS consume spare data size 18

os : system memory alloc 41360 bytes

os : system memory alloc 6288 bytes

os : system memory alloc 65536 bytes

tree: found bad block 412

tree: DIR 1, FILE 21, DATA 0

<FileSystem>Nand FS initialized!

<FileSystem>.....................[PASS]

----------------------------------------

<DSP>Testing...

<DSP>...........................[PASS]

----------------------------------------

>>Write /dev/FILE0.TXT ok

>>Write /dev/FILE1.TXT ok

>>Write /dev/FILE2.TXT ok

>>Write /dev/FILE3.TXT ok

>>Write /dev/FILE0.TXT ok

>>Write /dev/FILE1.TXT ok

>>Write /dev/FILE2.TXT ok

>>Write /dev/FILE3.TXT ok

>>Write /dev/FILE0.TXT ok

>>Write /dev/FILE1.TXT ok

>>Write /dev/FILE2.TXT ok

>>Write /dev/FILE3.TXT ok

>>Write /dev/FILE0.TXT ok

>>Write /dev/FILE1.TXT ok

>>Write /dev/FILE2.TXT ok

>>Write /dev/FILE3.TXT ok

>>Write /dev/FILE0.TXT ok

>>Write /dev/FILE1.TXT ok

>>Write /dev/FILE2.TXT ok

>>Write /dev/FILE3.TXT ok

>>Write /dev/FILE0.TXT ok

>>Write /dev/FILE1.TXT ok

>>Write /dev/FILE2.TXT ok

>>Write /dev/FILE3.TXT ok

>>Write /dev/FILE0.TXT ok

>>Write /dev/FILE1.TXT ok

>>Write /dev/FILE2.TXT ok

>>Write /dev/FILE3.TXT ok

>>Write /dev/FILE0.TXT ok

>>Write /dev/FILE1.TXT ok

>>Write /dev/FILE2.TXT ok

>>Write /dev/FILE3.TXT ok

>>Write /dev/FILE0.TXT ok

>>Write /dev/FILE1.TXT ok

>>Write /dev/FILE2.TXT ok

>>Write /dev/FILE3.TXT ok

>>Write /dev/FILE0.TXT ok

>>Write /dev/FILE1.TXT ok

>>Write /dev/FILE2.TXT ok

>>Write /dev/FILE3.TXT ok

finsh>>

finsh>>ls("/dev/")

Directory /dev/:

log <DIR>

devTst 4

NAND_DEMO 4

info_index 26

LOG.TXT 14

TABLE.DYB 35032

list_index 120

FILE0.TXT 100

FILE1.TXT 100

FILE2.TXT 100

FILE3.TXT 100

0, 0x00000000

finsh>>cat("/dev/FILE0.TXT")

1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 0, 0x00000000

finsh>>

如果需要代码可以再贴出来


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/tougao/12208838.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-21
下一篇 2023-05-21

发表评论

登录后才能评论

评论列表(0条)

保存