完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
硬件:STM32F429IGT6核心板 操作系统:RTT V4.1.0 分区情况 [I/FAL] ==================== FAL partition table ==================== [I/FAL] | name | flash_dev | offset | length | [I/FAL] ------------------------------------------------------------- [I/FAL] | bootloader | onchip_flash_16k | 0x00000000 | 0x00010000 | [I/FAL] | param | onchip_flash_64k | 0x00000000 | 0x00010000 | [I/FAL] | app | onchip_flash_128k | 0x00000000 | 0x00060000 | [I/FAL] | factory | onchip_flash_128k | 0x00000003 | 0x00080000 | [I/FAL] | download | W25Q128 | 0x00000000 | 0x00100000 | [I/FAL] | easyflash | W25Q128 | 0x00100000 | 0x00100000 | [I/FAL] | filesystem | W25Q128 | 0x00200000 | 0x00e00000 | [I/FAL] ============================================================= 使用虚拟文件系统,启用littlefs文件系统挂载filesystem分区。 启用romfs。用来挂载多个目录 根目录如下 Directory /: flash readme.txt 52 flash目录如下 Directory /flash: logs 启用ulog 文件后端输出到/flash/logs文件夹中,logs目录如下 Directory /flash/logs: ulog.log 2986 msh使用命令rm -rf ulog.log无法删除文件。此目录下创建hello.txt可以删除。 该文件可以使用功能mv命令移动至flash文件夹中使用rm -rf删除。 这是为什么?使用操作如下 msh /flash/logs>echo "hello world!" hello.txt msh /flash/logs>ls Directory /flash/logs: hello.txt 12 ulog.log 2986 msh /flash/logs>cat h msh /flash/logs>cat hello.txt hello world! msh /flash/logs>rm h msh /flash/logs>rm hello.txt msh /flash/logs>ls Directory /flash/logs: ulog.log 2986 msh /flash/logs>rm u msh /flash/logs>rm ulog.log cannot remove 'ulog.log' msh /flash/logs>rm -rf u msh /flash/logs>rm -rf ulog.log msh /flash/logs>ls Directory /flash/logs: ulog.log 2986 msh /flash/logs> msh /flash/logs>mv u msh /flash/logs>mv ulog.log /f msh /flash/logs>mv ulog.log /flash ulog.log => /flash msh /flash/logs>ls Directory /flash/logs: msh /flash/logs>cd / flash readme.txt msh /flash/logs>cd /f msh /flash/logs>cd /flash msh /flash>rm u msh /flash>rm ulog.log msh /flash>ls Directory /flash: logs msh /flash>cd l msh /flash>cd logs msh /flash/logs>ls Directory /flash/logs: |
|
相关推荐
2个回答
|
|
在你的日志文件夹下面的 ulog.log 文件是 ulog 组件生成的,系统在一直写日志到这个文件中,如果定义了日志的个数和大小的限制,当 ulog.log 文件到达大小的上限后就会把这个文件拷贝为 ulog.log.0 然后继续将新的日志存储在 ulog.log 文件中,因此直接在这个文件夹中删除是不可以的(系统打开该文件并且一直写入)。拷贝到别的文件夹下,文件没有被占用就可以删除了。
你可以直接格式化日志文件的分区或者把 ulog 组件的功能关闭之后再删除。 |
|
|
|
文件被打开了,所以没法删吧
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
AI模型部署边缘设备的奇妙之旅:边缘端设备的局域网视频流传输方案
1734 浏览 0 评论
1591 浏览 0 评论
AI模型部署边缘设备的奇妙之旅:如何在边缘端部署OpenCV
6885 浏览 0 评论
tms320280021 adc采样波形,为什么adc采样频率上来波形就不好了?
1914 浏览 0 评论
5219 浏览 0 评论
79782 浏览 21 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-2-24 12:57 , Processed in 0.403957 second(s), Total 43, Slave 37 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191