Search found 5 matches

by wenbozzz
Thu Jun 24, 2021 2:14 am
Forum: ESP-IDF 中文讨论版
Topic: [已解决] 求助,spiffs初始化失败,报错ESP_ERR_INVALID_ARG
Replies: 5
Views: 5775

Re: 求助,spiffs初始化失败,报错ESP_ERR_INVALID_ARG

看到了, 感谢!
还想再请教下,
假如这个ESP_VFS_PATH_MAX我改大了(例如改成31),会导致什么其他的问题吗? 还是说仅仅内存开销大了而已?
by wenbozzz
Thu Jun 24, 2021 1:14 am
Forum: ESP-IDF 中文讨论版
Topic: [已解决] 求助,spiffs初始化失败,报错ESP_ERR_INVALID_ARG
Replies: 5
Views: 5775

Re: 求助,spiffs初始化失败,报错ESP_ERR_INVALID_ARG

把base path缩短成 abc 就能初始化成功
esp_vfs_spiffs_conf_t conf = {
.base_path = "/abc", .partition_label = NULL, .max_files = 4, .format_if_mount_failed = false};
请问是有什么config设置需要改的吗? CONFIG_SPIFFS_OBJ_NAME_LEN=128 感觉已经够大了?
by wenbozzz
Wed Jun 23, 2021 10:37 am
Forum: ESP-IDF 中文讨论版
Topic: [已解决] 求助,spiffs初始化失败,报错ESP_ERR_INVALID_ARG
Replies: 5
Views: 5775

[已解决] 求助,spiffs初始化失败,报错ESP_ERR_INVALID_ARG

芯片:ESP32-WROVER-B IDF版本:release/v4.3 开发环境:Windows10 各位好,我遇到spiffs初始化失败的问题,但我感觉我给的config应该没啥问题? esp_vfs_spiffs_conf_t conf = { .base_path = "/abcdefghi_files", .partition_label = NULL, .max_files = 4, .format_if_mount_failed = false}; 整段代码如下: void storageInit() { static const char* tag = "storageInit...
by wenbozzz
Tue Jun 15, 2021 10:29 am
Forum: ESP-IDF 中文讨论版
Topic: 求助,tlsf_malloc引起的kernel panic
Replies: 1
Views: 3193

求助,tlsf_malloc引起的kernel panic

芯片:ESP32-WROVER-B IDF版本:release/v4.3 开发环境:Windows 各位好, 我在开发时遇到一个错误,貌似是和内存管理相关的, 每次都是0x4008a02f: block_locate_free at C:/Users/wenbo/workspace/nn/esp-idf-v4.3/components/heap/heap_tlsf.c:447之后assert条件不满足然后导致了kernel panic 但这又不像是内存不足导致的, 因为在这之前通过heap_caps_get_free_size()看到 MALLOC_CAP_8BIT有347 kB,MALLOC...