{"id":672,"date":"2015-11-15T19:00:42","date_gmt":"2015-11-15T10:00:42","guid":{"rendered":"http:\/\/goji2100.s199.coreserver.jp\/blog\/?p=672"},"modified":"2022-05-27T09:00:59","modified_gmt":"2022-05-27T00:00:59","slug":"esp-wroom-02%e3%81%ae-flash-file-systemffs-%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/goji2100.com\/blog\/?p=672","title":{"rendered":"ESP-WROOM-02\u306e Flash File System(FFS) \u3092\u4f7f\u3063\u3066\u307f\u308b"},"content":{"rendered":"<p>ESP-WROOM-02\u306b\u306f32Mbit(4MByte)\u306eFlash\u30e1\u30e2\u30ea\u30fc\u304c\u642d\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306eFlash\u30e1\u30e2\u30ea\u30fc\u5185\u306e\u6700\u59273MByte\u3092Flash File System(FFS)\u306b\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<span style=\"color: #993300;\">\uff08\u6ce8\u3042\u308a\uff09<\/span><br \/>\n\u97f3\u697d\u30d5\u30a1\u30a4\u30eb\u306e\u3088\u3046\u306a\u5927\u304d\u306a\u30d5\u30a1\u30a4\u30eb\u306f\u683c\u7d0d\u3067\u304d\u307e\u305b\u3093\u304c\u3001\u30b9\u30b1\u30c3\u30c1\u5b9f\u884c\u6642\u306b\u4f7f\u7528\u3059\u308bSSID\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3069\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u4fdd\u5b58\u306b\u4f7f\u3046\u306b\u306f\u5341\u5206\u306a\u5927\u304d\u3055\u3067\u3059\u3002<\/p>\n<p>Flash File System\u306b\u3064\u3044\u3066\u306f\u3001Reference\u306e\u300cFile system\u300d\u306b\u8aac\u660e\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/github.com\/esp8266\/arduino-esp8266fs-plugin\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/esp8266\/arduino-esp8266fs-plugin<\/a><\/p>\n<p><!--more \u3010\u7d9a\u304d\u3092\u8aad\u3080\u3011--><\/p>\n<h2><strong>FFS\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30c4\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/strong><\/h2>\n<ul>\n<li>\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<br \/>\n<a href=\"https:\/\/github.com\/esp8266\/arduino-esp8266fs-plugin\/releases\/download\/0.5.0\/ESP8266FS-0.5.0.zip\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/esp8266\/arduino-esp8266fs-plugin\/releases\/download\/0.5.0\/ESP8266FS-0.5.0.zip<\/a><\/li>\n<li>\u30c4\u30fc\u30eb\u3092\u89e3\u51cd\u3057\u3066\u3001Arduino IDE\u306e\u300ctool\u300d\u30d5\u30a9\u30eb\u30c0\u306b\u30b3\u30d4\u30fc\u3059\u308b<br \/>\n\u4f8b\uff09\uff1cArduino IDE\u306e\u30d5\u30a9\u30eb\u30c0\uff1e\\tools\\ESP8266FS\\tool\\esp8266fs.jar<\/li>\n<\/ul>\n<h2><strong style=\"line-height: 1.5;\">\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b<\/strong><\/h2>\n<ul>\n<li>FFS\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3059\u308b\u30b9\u30b1\u30c3\u30c1\u306e\u4fdd\u5b58\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u300cdata\u300d\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3059\u308b<br \/>\n\u4f8b\uff09\u30b9\u30b1\u30c3\u30c1\u540d\u304c\u300cFFSTest\u300d\u3067\u3042\u308c\u3070\u3001<br \/>\nC:\\Users\\\uff1c\u30e6\u30fc\u30b6\u540d\uff1e\\Documents\\Arduino\\FFSTest\\data<\/li>\n<li>\u300cdata\u300d\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u4f7f\u7528\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3059\u308b<\/li>\n<li>Arduino IDE\u3092\u4f7f\u7528\u3057\u3066FFS\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b<br \/>\nArduino IDE\u3092\u8d77\u52d5\u3057\u3001\u30b9\u30b1\u30c3\u30c1\u300cFFSTest\u300d\u3092\u30ed\u30fc\u30c9\u3059\u308b<br \/>\nESP-WROOM-02\u3092\u66f8\u304d\u8fbc\u307f\u5f85\u3061\u72b6\u614b\u306b\u3059\u308b<br \/>\n\u300c\u30c4\u30fc\u30eb\u300d\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300cESP8266 Sketch Data Upload\u300d\u3092\u9078\u629e\u3059\u308b<br \/>\n\uff08\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u304c\u59cb\u307e\u308b\uff09<\/li>\n<\/ul>\n<p>\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306f\u30b9\u30b1\u30c3\u30c1\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u5f71\u97ff\u3092\u53d7\u3051\u307e\u305b\u3093\u3002<br \/>\n\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u6210\u3092\u5909\u66f4\u3059\u308b\u5834\u5408\u306b\u3060\u3051\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u64cd\u4f5c\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p><strong>FFS\u30c6\u30b9\u30c8\u30fb\u30b9\u30b1\u30c3\u30c1<\/strong><br \/>\nFFS\u306e\u30eb\u30fc\u30c8\u4e0b\u306e\u5168\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u5185\u5bb9\u3092\u305d\u306e\u307e\u307e\u30b7\u30ea\u30a2\u30eb\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:arduino decode:true \" title=\"FFSTest.ino\">#include &lt;FS.h&gt;\r\n\r\nvoid setup() {\r\n  Serial.begin(115200);\r\n  SPIFFS.begin();\r\n  Serial.println(\"\\n\\nStart FFS test.\\n\");\r\n\r\n  Dir dir = SPIFFS.openDir(\"\/\");\r\n  while (dir.next()) {\r\n    Serial.print(dir.fileName());\r\n    Serial.print(\"  \");\r\n    File f = dir.openFile(\"r\");\r\n    Serial.println(f.size());\r\n    Serial.print(\"===\\n\");\r\n    while (f.available()) {\r\n      Serial.print((char)f.read());\r\n    }\r\n    f.close();\r\n    Serial.println(\"===\\n\");\r\n  }\r\n  Serial.println(\"end.\");\r\n}\r\n\r\nvoid loop() {\r\n}\r\n<\/pre>\n<ul>\n<li><span style=\"color: #993300;\">Arduino IDE 1.6.5\uff0bESP8266 Community version 1.6.5-1160-gef26c5f \u74b0\u5883\u3067\u306f\u300cFlash Size &#8220;4MB(3MB SPISSF)&#8221;\u300d\u8a2d\u5b9a\u3067\u306f\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306b\u5931\u6557\u3057\u3066\u3044\u307e\u3059\u3001\u300cFlash Size &#8220;4MB(1MB SPISSF)&#8221;\u300d\u8a2d\u5b9a\u3067\u30c6\u30b9\u30c8\u3057\u307e\u3057\u305f\u3002<\/span><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>ESP-WROOM-02\u306b\u306f32Mbit(4MByte)\u306eFlash\u30e1\u30e2\u30ea\u30fc\u304c\u642d\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306eFlash\u30e1\u30e2\u30ea\u30fc\u5185\u306e\u6700\u59273MByte\u3092Flash File System(FFS)\u306b\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\uff08\u6ce8\u3042\u308a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,26],"tags":[34],"_links":{"self":[{"href":"https:\/\/goji2100.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/672"}],"collection":[{"href":"https:\/\/goji2100.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/goji2100.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/goji2100.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/goji2100.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=672"}],"version-history":[{"count":32,"href":"https:\/\/goji2100.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/672\/revisions"}],"predecessor-version":[{"id":1512,"href":"https:\/\/goji2100.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/672\/revisions\/1512"}],"wp:attachment":[{"href":"https:\/\/goji2100.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=672"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/goji2100.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=672"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/goji2100.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}