{"id":87,"date":"2015-07-18T14:13:58","date_gmt":"2015-07-18T14:13:58","guid":{"rendered":"http:\/\/nyacom.net\/wp\/?p=87"},"modified":"2015-08-10T16:13:00","modified_gmt":"2015-08-10T16:13:00","slug":"post-87","status":"publish","type":"post","link":"https:\/\/nyacom.net\/?p=87","title":{"rendered":"SPI Flash\u3092\u8aad\u307f\u3060\u3057\u3066\u307f\u308b(frser-duino\u7de8)"},"content":{"rendered":"<p><a href=\"http:\/\/nyacom.net\/\/2015\/07\/18\/arduino-uno%e3%82%92spi%e3%83%95%e3%83%a9%e3%83%83%e3%82%b7%e3%83%a3%e3%83%bc%e3%81%ab%e3%81%99%e3%82%8b\/\">\u524d\u56de<\/a>\u4f5c\u3063\u305fArduinoUNO\u306eSPI\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3067SPI\u30d5\u30e9\u30c3\u30b7\u30e5\u3092\u8aad\u307f\u3060\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u3053\u308c\u3092\u4f55\u306b\u4f7f\u3046\u304b\u3068\u8a00\u3044\u307e\u3059\u3068\uff0c<br \/>\n\u58ca\u308c\u305f\u67d0W\u793e\u306e\u30dd\u30fc\u30bf\u30d6\u30ebHDD\u306e\u30c7\u30fc\u30bf\u3092\u6551\u51fa\u3059\u308b\u305f\u3081\uff0c\u65b0\u3057\u304f\u540c\u578b\u306e\u57fa\u677f\u3092C\u56fd\u304b\u3089\u8cfc\u5165\u3057\u305f\u306e\u3067\uff0c<br \/>\n\u3053\u306e\u30b5\u30fc\u30dc\u60c5\u5831\u306e\u5165\u3063\u305fFlash\u3092\u66f8\u304d\u63db\u3048\u308b\u305f\u3081\u306b\u4eca\u56de\u306f\u3053\u308c\u3092\u8aad\u307f\u3060\u3057\u3066\u898b\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p># \u67d0W\u793e\u306e\u30dd\u30fc\u30bf\u30d6\u30ebHDD\u306e\u30c7\u30fc\u30bf\u6551\u51fa\u306e\u8a71\u306f\u307e\u305f\u5225\u306e\u6a5f\u4f1a\u306b\u66f8\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002\u3002<\/p>\n<p>\u3067\uff0cHDD\u306e\u57fa\u677f\u3092\u4ea4\u63db\u3059\u308b\u306e\u306b\u306a\u3093\u3067\u305d\u3093\u306a\u9762\u5012\u306a\u8a71\u306b\u306a\u308b\u304b\u3068\u8a00\u3044\u307e\u3059\u3068\uff0c<br \/>\nHDD\u306b\u306f\u30d5\u30a1\u30fc\u30e0\u3068\u30e1\u30c7\u30a3\u30a2\u56fa\u6709\u306e\u60c5\u5831\u3092\u51fa\u8377\u6642\u306b\u66f8\u304d\u8fbc\u3093\u3067\u3044\u308b\u306e\u3067\uff0c<br \/>\n\u30e1\u30c7\u30a3\u30a2\uff08\u5186\u76e4\uff09\u3068\u57fa\u677f\u306f\u305d\u306e\u500b\u4f53\u5c02\u7528\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3053\u306e\u305f\u3081\uff0c\u5358\u306b\u57fa\u677f\u4ea4\u63db\u3057\u3066\u3082\u904b\u304c\u60aa\u3044\u3068\u6b63\u5e38\u306b\u8aad\u3081\u307e\u305b\u3093\u3002\uff08\u30d8\u30c3\u30c9\u306e\u4f4d\u7f6e\u60c5\u5831\u3068\u304b\u3082\u5165\u3063\u3066\u3044\u308b\u306e\u3067\uff09<\/p>\n<p>\u666e\u901a\u306fFlash\u30c1\u30c3\u30d7\u3092\u65b0\u3057\u3044\u57fa\u677f\u306b\u79fb\u690d\u3057\u305f\u308a\u3059\u308b\u3093\u3067\u3059\u304c\uff0c<br \/>\n\u57fa\u677f\u304b\u3089\u5265\u304c\u3059\u306e\u306f\u305d\u308c\u306a\u308a\u306b\u30ea\u30b9\u30af\u304c\u3042\u308b\u306e\u3067\uff0c\u4eca\u56de\u306f\u66f8\u304d\u63db\u3048\u308b\u65b9\u6cd5\u3067\u5bfe\u5fdc\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/nyacom.net\/\/wp-content\/uploads\/2015\/07\/pcb.png\" rel=\"lightbox[87]\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"92\" data-permalink=\"https:\/\/nyacom.net\/?attachment_id=92\" data-orig-file=\"https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/pcb.png?fit=1058%2C605&ssl=1\" data-orig-size=\"1058,605\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"\u67d0W\u793e\u306e\u30dd\u30fc\u30bf\u30d6\u30ebHDD\u57fa\u677f\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/pcb.png?fit=800%2C458&ssl=1\" class=\"alignnone size-medium wp-image-92\" src=\"https:\/\/i0.wp.com\/nyacom.net\/\/wp-content\/uploads\/2015\/07\/pcb-300x172.png?resize=300%2C172\" alt=\"\u67d0W\u793e\u306e\u30dd\u30fc\u30bf\u30d6\u30ebHDD\u57fa\u677f\" width=\"300\" height=\"172\" srcset=\"https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/pcb.png?resize=300%2C172&ssl=1 300w, https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/pcb.png?resize=1024%2C586&ssl=1 1024w, https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/pcb.png?w=1058&ssl=1 1058w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u305d\u306e\u305f\u3081\uff0c\u307e\u305a\u306f\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u51fa\u305b\u308b\u3088\u3046\u306b\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u3002<br \/>\n\u305d\u3053\u3067\uff0c\u307e\u305a\u5bfe\u8c61\u306eFlash\u3092\u8abf\u3079\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\uff0c\u65b0\u3057\u304f\u5165\u624b\u3057\u305f\u307b\u3046\u306e\u57fa\u677f\u3092\u8aad\u307f\u3060\u3057\u3066\u307f\u307e\u3059\u3002\uff08\u6700\u60aa\u5931\u6557\u3057\u3066\u3082\u30c7\u30fc\u30bf\u30ed\u30b9\u30c8\u306b\u306a\u3089\u306a\u3044\u306e\u3067\u3002\u3002<br \/>\n\u3053\u3063\u3061\u306e\u30c1\u30c3\u30d7\u306f Pm25LD020\u306a\u306e\u3067<a href=\"http:\/\/www.chingistek.com\/pflash_02.asp?seq=24\">\u30b3\u30ec<\/a>\u3067\u3059\u306d\u3002<a href=\"http:\/\/www.chingistek.com\/img\/Product_Files\/Pm25LD010020datasheet%20v04.pdf\">\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8<\/a>\u306b\u3088\u308b\u3068\uff0c2Mbit\u306eSPIFlash\u3060\u305d\u3046\u3067\u3059\u3002<br \/>\n\u3067\uff0c\u5927\u4e8b\u306a\u306e\u306f\u4fe1\u53f7\u96fb\u5727\u3067\u3059\u3002<br \/>\n\u3053\u306e\u30c1\u30c3\u30d7\u30823.3V\u3067\u3059\u304cArduino\u306e\u51fa\u529b\u306f5V(TTL)\u306a\u305f\u3081\uff0c\u305d\u306e\u307e\u307e\u3084\u308b\u3068\u30ec\u30d9\u30eb\u304c\u5408\u308f\u306a\u3044\u306e\u3067\u8aad\u3081\u307e\u305b\u3093\u3002<br \/>\n\u3068\u3044\u3046\u308f\u3051\u3067\uff0c\u5b9f\u969b\u63a5\u7d9a\u3059\u308b\u3068\u304d\u306f\u30d6\u30ec\u30c3\u30c9\u30dc\u30fc\u30c9\u7d4c\u7531\u3067\u62b5\u6297\u5206\u5727\u3057\u305f\u51fa\u529b\u3092\u30c1\u30c3\u30d7\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3042\u3068\uff0cflashrom\u306e\u307b\u3046\u304c\u3053\u306e\u30c1\u30c3\u30d7\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/flashrom.org\/Supported_hardware\">\u3053\u3053<\/a>\u306b\u3088\u308b\u3068Pm25LD020\u306f\u30ea\u30b9\u30c8\u306b\u8f09\u3063\u3066\u308b\u306e\u3067\u591a\u5206\u8aad\u3081\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n# \u30b9\u30c6\u30fc\u30bf\u30b9\u304c\uff1f\u306a\u306e\u304c\u6c17\u306b\u306a\u308b\u3051\u3069\u3002\u3002\u3002\u3002<\/p>\n<p>ArduinoUNO\u306eSPI\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u306e\u51fa\u529b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u307e\u3059\u3002<\/p>\n<pre>Pin10 ... Chip Select\r\nPin11 ... Data In\/Out\r\nPin12 ... Data Out\r\nPin13 ... Clock<\/pre>\n<p>\u3067\uff0c\u30c1\u30c3\u30d7\u306e\u307b\u3046\u306f<\/p>\n<pre>Pin1 ... Chip Select\u00a0\u00a0\u00a0  Pin8 ... Vcc\r\nPin2 ... Data Out\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Pin7 ... Hold\r\nPin3 ... Write Protect\u00a0\u00a0 Pin6 ... Clk\r\nPin4 ... GND\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Pin5 ... Data In\/Out<\/pre>\n<p>\u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u8aad\u3080\u3068\uff0cCS\u306f\u30d7\u30eb\u30a2\u30c3\u30d7\u3067Wp\/Hold\u306fhigh\u306b\u3057\u3068\u3051\u3070\u8aad\u3081\u308b\u3063\u307d\u3044\u306e\u3067\uff0c<br \/>\n\u305d\u3053\u3067\uff0c\u30c1\u30c3\u30d7\u306e\u8db3\u306b\u30b8\u30e5\u30f3\u30d5\u30ed\u30f3\u7dda\u3067\u30cf\u30f3\u30c0\u4ed8\u3051\u3057\u3066\uff0c\u30d6\u30ec\u30c3\u30c9\u30dc\u30fc\u30c9\u4e0a\u306b\u30ec\u30d9\u30eb\u5408\u308f\u305b\u306e\u56de\u8def\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<p>\u3067\uff0c\u7d50\u69cb\u82e6\u52b4\u3057\u3066\u3068\u308a\u3042\u3048\u305a\u56de\u8def\u4f5c\u308a\u307e\u3057\u305f\u3002\u3002<br \/>\n#\u30c1\u30c3\u30d7\u306e\u8db3\u306b\u30cf\u30f3\u30c0\u4ed8\u3051\u3057\u3066\u3042\u308a\u307e\u3059\u3002\uff08\u898b\u3048\u306a\u3044\u3051\u3069\u3002\u3002<\/p>\n<figure id=\"attachment_98\" aria-describedby=\"caption-attachment-98\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i0.wp.com\/nyacom.net\/\/wp-content\/uploads\/2015\/07\/wpid-wp-1437230554589.jpeg\" rel=\"lightbox[87]\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"98\" data-permalink=\"https:\/\/nyacom.net\/?attachment_id=98\" data-orig-file=\"https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/wpid-wp-1437230554589.jpeg?fit=4208%2C2368&ssl=1\" data-orig-size=\"4208,2368\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;HTL23&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1437254619&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;3.82&quot;,&quot;iso&quot;:&quot;400&quot;,&quot;shutter_speed&quot;:&quot;0.05&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"wpid-wp-1437230554589.jpeg\" data-image-description=\"\" data-image-caption=\"<p>\u3068\u308a\u3042\u3048\u305a4.5K\u306e\u62b5\u6297\u304c\u3042\u3063\u305f\u306e\u30673\u672c\u3064\u306a\u3044\u3067\u5206\u5727\u3002<\/p>\n\" data-large-file=\"https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/wpid-wp-1437230554589.jpeg?fit=800%2C450&ssl=1\" class=\"size-medium wp-image-98\" src=\"https:\/\/i0.wp.com\/nyacom.net\/\/wp-content\/uploads\/2015\/07\/wpid-wp-1437230554589-300x169.jpeg?resize=300%2C169\" alt=\"\u3068\u308a\u3042\u3048\u305a4.5K\u306e\u62b5\u6297\u304c\u3042\u3063\u305f\u306e\u30673\u672c\u3064\u306a\u3044\u3067\u5206\u5727\u3002\" width=\"300\" height=\"169\" srcset=\"https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/wpid-wp-1437230554589.jpeg?resize=300%2C169&ssl=1 300w, https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/wpid-wp-1437230554589.jpeg?resize=1024%2C576&ssl=1 1024w, https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/wpid-wp-1437230554589.jpeg?w=1600 1600w, https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/wpid-wp-1437230554589.jpeg?w=2400 2400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-98\" class=\"wp-caption-text\">\u3068\u308a\u3042\u3048\u305a4.7K\u306e\u62b5\u6297\u304c\u3042\u3063\u305f\u306e\u30673\u672c\u3064\u306a\u3044\u3067\u5206\u5727\u3002<\/figcaption><\/figure>\n<p>\u3055\u3066\u8aad\u3081\u308b\u3067\u3057\u3087\u3046\u304b\u306d\u3002\u3002<br \/>\n\u8aad\u3080\u5834\u5408\u306fArduino UNO\u3092PC\u306b\u3064\u306a\u304e<\/p>\n<pre>$ sudo flashrom -p serprog:dev=\/dev\/ttyACM0:115200 -r hogehoge.img<\/pre>\n<p>\u3068\u304b\u3059\u308c\u3070\u8aad\u3081\u308b\u306f\u305a\u306a\u3093\u3067\u3059\u304c\u3002\u3002\u3002\u3002<\/p>\n<p>\u8ffd\u8a18\uff1a\u3046\u30fc\u3093\u3002\u3002\u306a\u3093\u304b\u8aad\u3081\u306a\u3044\u3063\u3059\u306d\u3002\u3002\uff08\u6c57<br \/>\n\u3088\u304f\u3088\u304f\u8aad\u3080\u3068\uff0cfrser-duino\u306f\u30c1\u30c3\u30d7\u306b\u3088\u3063\u3066\u306f3.3V\u306a\u30c1\u30c3\u30d7\u304c<br \/>\n5V\u52d5\u4f5c\u3058\u3083\u306a\u3044\u3068\u8aad\u3081\u306a\u3044\u3068\u304b\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u306d\u3002\u3002\u306a\u3093\u3064\u3046\u304bArduino\u5074\u306e\u554f\u984c\u3058\u3083\u306a\u3044\u306e\u304b\u306a\u3068\u601d\u3046\u3093\u3067\u3059\u304c\u3002\u3002<\/p>\n<p>\u3072\u3087\u3063\u3068\u3059\u308b\u3068\u305d\u3046\u3044\u3046\u539f\u56e0\u304b\u3082\u3057\u308c\u306a\u3044\u3051\u3069\uff0c<br \/>\n\u771f\u9762\u76ee\u306b\u58ca\u3057\u3066\u3057\u307e\u3046\u3068\u30b7\u30e3\u30ec\u306b\u306a\u3089\u3093\u306e\u3067\u3061\u3087\u3063\u3068\u4eca\u65e5\u306f\u8ae6\u3081\u307e\u3059\u3002\u3002<br \/>\nArduino\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u306f\u4e0d\u5b89\u5b9a\u8981\u7d20\u304c\u591a\u3059\u304e\u3066\u4f55\u304c\u539f\u56e0\u304c\u308f\u304b\u3089\u3093\u306e\u3067\uff0c<br \/>\n\u7d20\u76f4\u306b\u79cb\u6708\u306eFTD2232\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3067\u3082\u8cb7\u3063\u3066\u304f\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u3002<\/p>\n<p>\u8ffd\u8a18\uff1a\u306a\u3093\u304b\u3057\u3083\u304f\u306a\u3093\u3067\u3044\u308d\u3044\u308d\u8abf\u3079\u3066\u305f\u3093\u3067\u3059\u304c\uff0c\u4e00\u5fdcSPI Flash\u304b\u3089\u306e\u51fa\u529b\u306f\u306a\u3093\u304b\u51fa\u3066\u308b\u3063\u307d\u3044\u3002<\/p>\n<figure id=\"attachment_101\" aria-describedby=\"caption-attachment-101\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i0.wp.com\/nyacom.net\/\/wp-content\/uploads\/2015\/07\/wpid-wp-1437232694221.jpeg\" rel=\"lightbox[87]\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"101\" data-permalink=\"https:\/\/nyacom.net\/?attachment_id=101\" data-orig-file=\"https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/wpid-wp-1437232694221.jpeg?fit=4208%2C2368&ssl=1\" data-orig-size=\"4208,2368\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;HTL23&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1437264928&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;3.82&quot;,&quot;iso&quot;:&quot;320&quot;,&quot;shutter_speed&quot;:&quot;0.05&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"wpid-wp-1437232694221.jpeg\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/wpid-wp-1437232694221.jpeg?fit=800%2C450&ssl=1\" class=\"wp-image-101 size-medium\" src=\"https:\/\/i0.wp.com\/nyacom.net\/\/wp-content\/uploads\/2015\/07\/wpid-wp-1437232694221-300x169.jpeg?resize=300%2C169\" alt=\"wpid-wp-1437232694221.jpeg\" width=\"300\" height=\"169\" srcset=\"https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/wpid-wp-1437232694221.jpeg?resize=300%2C169&ssl=1 300w, https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/wpid-wp-1437232694221.jpeg?resize=1024%2C576&ssl=1 1024w, https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/wpid-wp-1437232694221.jpeg?w=1600 1600w, https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/wpid-wp-1437232694221.jpeg?w=2400 2400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-101\" class=\"wp-caption-text\">\u30ef\u30f3\u30b7\u30e7\u30c3\u30c8\u3067\u63a1\u3063\u3066\u307f\u305f\u3002\u660e\u3089\u304b\u306b\u306a\u3093\u304b\u30b7\u30ea\u30a2\u30eb\u3063\u307d\u3044<\/figcaption><\/figure>\n<p>\u305f\u3060\uff0cCMOS\u306e\u51fa\u529b\u306a\u3093\u30675V\u3067\u52d5\u3044\u3066\u308bAVR\u5074\u304c\u53d7\u3051\u53d6\u308c\u308b\u306e\u304b\u306f\u7591\u554f\u3002\u3002<br \/>\n\u4e00\u5fdc2.5V\u8d85\u3048\u3066\u308b\u3093\u3067\u8ad6\u7406\u7684\u306b\u306fH\u306a\u30cf\u30ba\u3067\u306f\u3042\u308b\u3051\u3069\u306d\u3002\u3002<\/p>\n<p>\u30ec\u30d9\u30eb\u30b7\u30d5\u30bf\u56de\u8def\u4f5c\u3089\u306a\u3044\u3068\u30c0\u30e1\u304b\u306a\u3002<\/p>\n<p>\u8ffd\u8a18\uff1aAVR\u306eAC\u7279\u6027\u306b\u3088\u308b\u30680.7Vcc(Vcc=5V\u3060\u30683.5V)\u304c\u8ad6\u7406H\u30ec\u30d9\u30eb\u3089\u3057\u3044\u3067\u3059\u3002<br \/>\n\u5b9f\u969b\u6e2c\u3063\u3066\u307f\u308b\u3068SPI Flash\u306e\u51fa\u529b\u304c3.1V\u8fd1\u8fba\u306a\u306e\u3067\u53b3\u3057\u3044\u611f\u3058\u304c\u3057\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_107\" aria-describedby=\"caption-attachment-107\" style=\"width: 320px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nyacom.net\/\/wp-content\/uploads\/2015\/07\/ADS00001.bmp\" rel=\"lightbox[87]\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"107\" data-permalink=\"https:\/\/nyacom.net\/?attachment_id=107\" data-orig-file=\"https:\/\/nyacom.net\/wp-content\/uploads\/2015\/07\/ADS00001.bmp\" data-orig-size=\"320,234\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ADS00001\" data-image-description=\"\" data-image-caption=\"<p>\u4e0a\u306e\u9ec4\u8272\u304cSPI Flash\u304b\u3089\u306e\u51fa\u529b\u30023.1V\u8fd1\u8fba\u304cH\u3063\u307d\u3044\u3002<\/p>\n\" data-large-file=\"https:\/\/nyacom.net\/wp-content\/uploads\/2015\/07\/ADS00001.bmp\" class=\"size-full wp-image-107\" src=\"http:\/\/nyacom.net\/\/wp-content\/uploads\/2015\/07\/ADS00001.bmp\" alt=\"\u4e0a\u306e\u9ec4\u8272\u304cSPI Flash\u304b\u3089\u306e\u51fa\u529b\u30023.1V\u8fd1\u8fba\u304cH\u3063\u307d\u3044\u3002\" width=\"320\" height=\"234\" \/><\/a><figcaption id=\"caption-attachment-107\" class=\"wp-caption-text\">\u4e0a\u306e\u9ec4\u8272\u304cSPI Flash\u304b\u3089\u306e\u51fa\u529b\u30023.1V\u8fd1\u8fba\u304cH\u3063\u307d\u3044\u3002<\/figcaption><\/figure>\n<p>\u00a0<\/p>\n<p>\u66f4\u306b\u8ffd\u8a18\uff1a<br \/>\n\u7d50\u679c\u7684\u306b\u306f\u8aad\u3081\u307e\u3057\u305f\u3002<br \/>\n\u305f\u3060\uff0c\u5bfe\u8c61\u306b\u3057\u305f\u30c1\u30c3\u30d7\u306e\u7656\u306a\u306e\u304b\uff0c\u4e0a\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308b3.3V\u7528\u306e\u62b5\u6297\u5206\u5727\u56de\u8def\u3067\u306f\u602a\u3057\u304f\u3066\uff0c<br \/>\n\u6700\u7d42\u7684\u306b\u306fSPI Flash\u306ePin2\u306e\u51fa\u529b\u3092\u305d\u306e\u3078\u3093\u306b\u8ee2\u304c\u3063\u3066\u305f2SC945\uff11\u500b\u3067\u30ec\u30d9\u30eb\u30b7\u30d5\u30bf\u3092\u4f5c\u3063\u3066\uff0c<br \/>\n\u305d\u3044\u3064\u3092ArduinoUNO\u306ePin12\u306b\u51fa\u529b\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_109\" aria-describedby=\"caption-attachment-109\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i0.wp.com\/nyacom.net\/\/wp-content\/uploads\/2015\/07\/wpid-imag2257.jpg\" rel=\"lightbox[87]\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"109\" data-permalink=\"https:\/\/nyacom.net\/?attachment_id=109\" data-orig-file=\"https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/wpid-imag2257.jpg?fit=4208%2C2368&ssl=1\" data-orig-size=\"4208,2368\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;HTL23&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1437334965&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;3.82&quot;,&quot;iso&quot;:&quot;500&quot;,&quot;shutter_speed&quot;:&quot;0.05&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"wpid-imag2257.jpg\" data-image-description=\"\" data-image-caption=\"<p>\u3082\u3046\u3054\u3063\u3061\u3083\u3054\u3061\u3083\u3002<\/p>\n\" data-large-file=\"https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/wpid-imag2257.jpg?fit=800%2C450&ssl=1\" class=\"size-medium wp-image-109\" src=\"https:\/\/i0.wp.com\/nyacom.net\/\/wp-content\/uploads\/2015\/07\/wpid-imag2257-300x169.jpg?resize=300%2C169\" alt=\"\u3082\u3046\u3054\u3063\u3061\u3083\u3054\u3061\u3083\u3002\" width=\"300\" height=\"169\" srcset=\"https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/wpid-imag2257.jpg?resize=300%2C169&ssl=1 300w, https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/wpid-imag2257.jpg?resize=1024%2C576&ssl=1 1024w, https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/wpid-imag2257.jpg?w=1600 1600w, https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/wpid-imag2257.jpg?w=2400 2400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-109\" class=\"wp-caption-text\">\u3082\u3046\u3054\u3063\u3061\u3083\u3054\u3061\u3083\u3002\u3002<\/figcaption><\/figure>\n<p>\u3042\u3068<a href=\"http:\/\/elm-chan.org\/docs\/spi.html\">\u3053\u306e\u8fba<\/a>\u898b\u306a\u304c\u3089SPI\u30d7\u30ed\u30c8\u30b3\u30eb\u3082\u52c9\u5f37\u3057\u3064\u3064\uff0c<br \/>\nRDID\u306e\u5316\u3051\u65b9\u304b\u3089\u63a8\u6e2c\u3057\u3066\u4fe1\u53f7\u30ec\u30d9\u30eb\u3092\u8abf\u6574\u3057\u3066\u305f\u3089\u6700\u7d42\u7684\u306b\u8aad\u3081\u307e\u3057\u305f\u3002<\/p>\n<p>flashrom\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u5927\u4e8b\u3067\uff0c<br \/>\nArduinoUNO\u3092\u4f7f\u3063\u305fI\/F\u3067\u306f\u4ee5\u4e0b\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3057\u304b\u8aad\u3081\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<pre>$ sudo flashrom -p serprog:dev=\/dev\/ttyACM0:115200,spispeed=125k -r hogehoge.img -VV<\/pre>\n<p>\u3046\u3093\u3002\u7d20\u76f4\u306bFT2232\u306a\u30dc\u30fc\u30c9\u3092\u8cb7\u3063\u305f\u307b\u3046\u304c\u697d\u3067\u3059\u306d\u3002\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u8aad\u3081\u305f\u3093\u3067\uff0c<br \/>\nHDD\u306e\u30d5\u30e9\u30c3\u30b7\u30e5\u3092\u66f8\u304d\u63db\u3048\u308b\u3068\u3044\u3046\u76ee\u7684\u306f\u9054\u3057\u305f\u3093\u3067\u3059\u304c\uff0c<br \/>\n\u30ea\u30ab\u30d0\u30ea\u30fc\u3068\u3044\u3046\u610f\u5473\u3067\u306f\u5165\u308a\u53e3\u306b\u7acb\u3063\u305f\u611f\u3058\u3067\u3059\u3002\u3002<\/p>\n<p>\u5148\u304c\u9577\u3044\u306a\u3041\u3002\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u4f5c\u3063\u305fArduinoUNO\u306eSPI\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3067SPI\u30d5\u30e9\u30c3\u30b7\u30e5\u3092\u8aad\u307f\u3060\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":115,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[13],"tags":[],"class_list":["post-87","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-electronics"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/07\/wpid-imag22571.jpg?fit=4208%2C2368&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6V68f-1p","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/nyacom.net\/index.php?rest_route=\/wp\/v2\/posts\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nyacom.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nyacom.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nyacom.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nyacom.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=87"}],"version-history":[{"count":16,"href":"https:\/\/nyacom.net\/index.php?rest_route=\/wp\/v2\/posts\/87\/revisions"}],"predecessor-version":[{"id":221,"href":"https:\/\/nyacom.net\/index.php?rest_route=\/wp\/v2\/posts\/87\/revisions\/221"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nyacom.net\/index.php?rest_route=\/wp\/v2\/media\/115"}],"wp:attachment":[{"href":"https:\/\/nyacom.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nyacom.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nyacom.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}