{"action":"created","issue":{"url":"https://api.github.com/repos/nkolban/ESP32_Explorer/issues/29","repository_url":"https://api.github.com/repos/nkolban/ESP32_Explorer","labels_url":"https://api.github.com/repos/nkolban/ESP32_Explorer/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/nkolban/ESP32_Explorer/issues/29/comments","events_url":"https://api.github.com/repos/nkolban/ESP32_Explorer/issues/29/events","html_url":"https://github.com/nkolban/ESP32_Explorer/issues/29","id":328447715,"node_id":"MDU6SXNzdWUzMjg0NDc3MTU=","number":29,"title":"fatfs","user":{"login":"snahmad","id":3141230,"node_id":"MDQ6VXNlcjMxNDEyMzA=","avatar_url":"https://avatars1.githubusercontent.com/u/3141230?v=4","gravatar_id":"","url":"https://api.github.com/users/snahmad","html_url":"https://github.com/snahmad","followers_url":"https://api.github.com/users/snahmad/followers","following_url":"https://api.github.com/users/snahmad/following{/other_user}","gists_url":"https://api.github.com/users/snahmad/gists{/gist_id}","starred_url":"https://api.github.com/users/snahmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snahmad/subscriptions","organizations_url":"https://api.github.com/users/snahmad/orgs","repos_url":"https://api.github.com/users/snahmad/repos","events_url":"https://api.github.com/users/snahmad/events{/privacy}","received_events_url":"https://api.github.com/users/snahmad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-01T09:32:56Z","updated_at":"2018-06-01T15:48:26Z","closed_at":null,"author_association":"NONE","body":"These make are not working for \r\n\r\nmake: *** No rule to make target 'makefatfs'.  Stop\r\n\r\nmake makefatfs\r\nmake flashfatfs\r\n\r\nAlso \r\n\r\nFlash mount is failing.\r\n\r\nD (2699) wl_flash: initSections - result=00000000\r\nD (2699) wl_flash: recoverPos - this->state.pos=0x00000000, result=00000000\r\nD (2709) vfs_fat_spiflash: using pdrv=0\r\nW (2709) vfs_fat_spiflash: f_mount failed (13)\r\nI (2719) vfs_fat_spiflash: Formatting FATFS partition, allocation unit size=52\r\n4288\r\nE (2719) vfs_fat_spiflash: f_mkfs failed (14)\r\nESP_ERROR_CHECK failed: esp_err_t 0xffffffff at 0x4011454a\r\nfile: \"C:/Work/LibDev/esp32/esp-idf/components/cpp_utils/FATFS_VFS.cpp\" line 4\r\n9\r\nfunc: void FATFS_VFS::mount()\r\nexpression: esp_vfs_fat_spiflash_mount(m_mountPath.c_str(), m_partitionName.c_\r\nstr(), &mountConfig, &m_wl_handle)\r\n\r\nBacktrace: 0x4008e85f:0x3ffd6c10 0x4008ecd5:0x3ffd6c30 0x4011454a:0x3ffd6c50 0\r\nx400d4fbb:0x3ffd6c80 0x400d45b9:0x3ffd6ce0 0x4010de80:0x3ffd6d00\r\n"},"comment":{"url":"https://api.github.com/repos/nkolban/ESP32_Explorer/issues/comments/393922373","html_url":"https://github.com/nkolban/ESP32_Explorer/issues/29#issuecomment-393922373","issue_url":"https://api.github.com/repos/nkolban/ESP32_Explorer/issues/29","id":393922373,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzkyMjM3Mw==","user":{"login":"snahmad","id":3141230,"node_id":"MDQ6VXNlcjMxNDEyMzA=","avatar_url":"https://avatars1.githubusercontent.com/u/3141230?v=4","gravatar_id":"","url":"https://api.github.com/users/snahmad","html_url":"https://github.com/snahmad","followers_url":"https://api.github.com/users/snahmad/followers","following_url":"https://api.github.com/users/snahmad/following{/other_user}","gists_url":"https://api.github.com/users/snahmad/gists{/gist_id}","starred_url":"https://api.github.com/users/snahmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snahmad/subscriptions","organizations_url":"https://api.github.com/users/snahmad/orgs","repos_url":"https://api.github.com/users/snahmad/repos","events_url":"https://api.github.com/users/snahmad/events{/privacy}","received_events_url":"https://api.github.com/users/snahmad/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T15:48:26Z","updated_at":"2018-06-01T15:48:26Z","author_association":"NONE","body":"Fix by specifying allocation_unit_size \r\n\r\nvoid FATFS_VFS::mount() {\r\n\tesp_vfs_fat_mount_config_t mountConfig;\r\n\tmountConfig.max_files = m_maxFiles;\r\n\tmountConfig.format_if_mount_failed = true;\r\n\tmountConfig.allocation_unit_size = 4096;\r\n\r\n\tESP_LOGD(LOG_TAG, \"FATFS_VFS::mount(%s,%s)\", m_mountPath.c_str(), m_partitionName.c_str());\r\n\tESP_ERROR_CHECK(esp_vfs_fat_spiflash_mount(m_mountPath.c_str(), m_partitionName.c_str(), &mountConfig, &m_wl_handle));\r\n\r\n\r\n} // mount"}}
{"actor":{"display_login":"snahmad"}}