搜索

6

主题

21

帖子

198

积分

注册会员

Rank: 2

积分
198
发表于 2021-1-25 16:54:32 20716 浏览 5 回复

Reading from NVRAM in MTK2503D

本帖最后由 jawadi 于 2021-1-25 17:38 编辑

Hi. I am writing data to NVRAM using the non-blocking function mmi_frm_write_async_record and it works. But when using WriteRecord or ReadRecord, the operation cannot be done.

  1. char word1[15];
  2. S16 error;
  3. //WriteRecord(NVRAM_BABT_T1, 1, "First", 6, &error);
  4. mmi_frm_write_async_record(NVRAM_BABT_T1, 1, "hello", 6);
  5. ReadRecord(NVRAM_BABT_T1, 1, word1, 6, &error );
复制代码

Looks like the external queue is empty and it waits for the ILM message. Should I do something before calling ReadRecord?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

165

主题

244

帖子

2721

积分

版主

Rank: 7Rank: 7Rank: 7

积分
2721
发表于 2021-1-26 09:22:33
读取nvram数据参考一下这份资料

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

6

主题

21

帖子

198

积分

注册会员

Rank: 2

积分
198
 楼主| 发表于 2021-2-3 17:14:34
本帖最后由 jawadi 于 2021-2-20 19:00 编辑

Thanks. I tried it in heartbeat_start and it worked, but it hangs and restarts when I try to use it in nm_gprs_cmd.c. Why is that? Is some form of initialization required?
回复

使用道具 举报

6

主题

21

帖子

198

积分

注册会员

Rank: 2

积分
198
 楼主| 发表于 2021-2-24 15:50:16
Can you explain about this problem in the main task?
回复

使用道具 举报

165

主题

244

帖子

2721

积分

版主

Rank: 7Rank: 7Rank: 7

积分
2721
发表于 2021-2-24 16:13:25
很久没去用过了,应该是没什么特别的注意事项;建议你多尝试一下;
回复

使用道具 举报

6

主题

21

帖子

198

积分

注册会员

Rank: 2

积分
198
 楼主| 发表于 2021-2-24 16:22:24
OK thank you for your time
回复

使用道具 举报

返回列表
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


登录或注册
快速回复 返回顶部 返回列表