xiaodingding

Results 9 comments of xiaodingding

是不是因为内存不够的原因

EfErrCode ef_port_init(ef_env const **default_env, size_t *default_env_size) { EfErrCode result = EF_NO_ERR; *default_env = default_env_set; *default_env_size = sizeof(default_env_set) / sizeof(default_env_set[0]); // rt_sem_init(&env_cache_lock, "env lock", 1, RT_IPC_FLAG_PRIO); 刚注释的 env_cache_mutex = rt_mutex_create("emutex", RT_IPC_FLAG_FIFO);...

以下是改为mutex的日志: 0> at24cxx_init for fal init successful 0> [D/FAL] (fal_flash_init:61) Flash device | eeprom0 | addr: 0x00000000 | len: 0x00004000 | blk_size: 0x00000040 |initialized finish. 0> [I/FAL] ==================== FAL partition...

接口实现: /* * This file is part of the EasyFlash Library. * * Copyright (c) 2015, Armink, * * Permission is hereby granted, free of charge, to any person obtaining...

目前已经将main线程的堆栈改为4096了,之前的空间大小为1024,现在能看到提示操作成功,但是重启之后,它还是会重新去操作一遍flash。 0> at24cxx_init for fal init successful 0> [D/FAL] (fal_flash_init:61) Flash device | eeprom0 | addr: 0x00000000 | len: 0x00004000 | blk_size: 0x00000040 |initialized finish. 0> [I/FAL] ==================== FAL partition...

嗯,是的,是外置的eeprom

/* * This file is part of the EasyFlash Library. * * Copyright (c) 2015, Armink, * * Permission is hereby granted, free of charge, to any person obtaining *...

#include #include "at24cxx.h" #define AT24CXX_PAGE_SIZE 64 static uint8_t erase_buff[AT24CXX_PAGE_SIZE] = {0}; // extern sfud_flash sfud_norflash0; static at24cxx_device_t at24cxx_dev; static int init(void) { at24cxx_dev = at24cxx_init("i2c1", 0); if(NULL == at24cxx_dev) {...