Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    Melis系统如何让板载的NOR flash 可以被写入?

    MR Series
    1
    1
    1169
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      leomini5 LV 6 last edited by

      上次那个Wi-Fi其实也没调完整,在每次启动的时候都会加载个config文件,如果没有就创建一个,但是我看了一下,每一次都没能创建成功
      然后我自己写了一段写文件的代码也一样不成功
      fopen 返回值是-1
      然后也是一样没法写入,用df查看磁盘空间显示0

      那么这个
      这个UDISK不是用户自定义分区嘛,怎么让他变得可读写啊
      还是文件系统的格式不太对,得改这个分区的格式啊?

      [partition]
          name         = UDISK
          ;size = flash size - (boot0 + mbr) size - env - env-redund - ROOTFS
          ;8(or 16) * 1024 * 2 - 64 * 2 - 5632 - 8 - 8 - 10240
          size         = 10032
          ;downloadfile = "data_udisk.fex"
          user_type    = 0x8000
      
      1 Reply Last reply Reply Quote Share 0
      • 1 / 1
      • First post
        Last post

      Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策