{"id":5460,"date":"2022-07-11T10:11:45","date_gmt":"2022-07-11T01:11:45","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=5460"},"modified":"2022-07-11T14:15:29","modified_gmt":"2022-07-11T05:15:29","slug":"toppersruby-toppers-ruby%e7%89%88%e3%82%b3%e3%83%b3%e3%83%95%e3%82%a3%e3%82%b0%e3%83%ac%e3%83%bc%e3%82%bf%e4%b8%8d%e5%85%b7%e5%90%88","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/5460","title":{"rendered":"[toppers][Ruby] TOPPERS Ruby\u7248\u30b3\u30f3\u30d5\u30a3\u30b0\u30ec\u30fc\u30bf\u4e0d\u5177\u5408"},"content":{"rendered":"<h3>\u75c7\u72b6<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >ruby ..\/asp3\/tecsgen\/tecsgen.rb ..\/asp3\/sample\/sample1.cdl -R -I. -I..\/asp3\/include  -I..\/asp3\/target\/raspberrypi_pico_gcc -I..\/asp3\/arch\/arm_m_gcc\/rp2040 -I..\/asp3\/arch\/arm_m_gcc\/common -I..\/asp3\/arch\/gcc -I..\/asp3 -I..\/asp3\/sample -I.\/gen -I..\/asp3\/tecs_kernel --cpp \"arm-none-eabi-gcc  -DUSE_TIM_AS_HRT -DTOPPERS_CORTEX_M0PLUS -D__TARGET_ARCH_THUMB=3  -I. -I..\/asp3\/include  -I..\/asp3\/target\/raspberrypi_pico_gcc -I..\/asp3\/arch\/arm_m_gcc\/rp2040 -I..\/asp3\/arch\/arm_m_gcc\/common -I..\/asp3\/arch\/gcc -I..\/asp3 -I..\/asp3\/sample -I.\/gen -I..\/asp3\/tecs_kernel -D TECSGEN -E\" -g .\/gen\r\ntecsgen  version 1.7.0  Copyright(c) 2008-2019, TOPPERS project. All rights reserved.\r\nmake[1]: Entering directory '\/home\/JaneDoe\/toppers\/build'\r\nruby ..\/asp3\/cfg\/cfg.rb --pass 1 --kernel asp -I. -I..\/asp3\/include  -I..\/asp3\/target\/raspberrypi_pico_gcc -I..\/asp3\/arch\/arm_m_gcc\/rp2040 -I..\/asp3\/arch\/arm_m_gcc\/common -I..\/asp3\/arch\/gcc -I..\/asp3 -I..\/asp3\/sample -I.\/gen -I..\/asp3\/tecs_kernel --api-table ..\/asp3\/kernel\/kernel_api.def --symval-table ..\/asp3\/kernel\/kernel_sym.def  --symval-table ..\/asp3\/arch\/arm_m_gcc\/common\/core_sym_v6m.def \\\r\n                                        -M objs\/cfg1_out_c.d ..\/asp3\/target\/raspberrypi_pico_gcc\/target_kernel.cfg ..\/asp3\/sample\/sample1.cfg\r\n\/home\/JaneDoe\/.rbenv\/versions\/3.1.2\/lib\/ruby\/3.1.0\/csv.rb:1433:in `initialize': no implicit conversion of Hash into String (TypeError)\r\n        from \/home\/JaneDoe\/.rbenv\/versions\/3.1.2\/lib\/ruby\/3.1.0\/csv.rb:1433:in `open'\r\n        from \/home\/JaneDoe\/.rbenv\/versions\/3.1.2\/lib\/ruby\/3.1.0\/csv.rb:1433:in `open'\r\n        from \/home\/JaneDoe\/toppers\/asp3\/cfg\/pass1.rb:180:in `block in ReadSymvalTable'\r\n        from \/home\/JaneDoe\/toppers\/asp3\/cfg\/pass1.rb:174:in `each'\r\n        from \/home\/JaneDoe\/toppers\/asp3\/cfg\/pass1.rb:174:in `ReadSymvalTable'\r\n        from \/home\/JaneDoe\/toppers\/asp3\/cfg\/pass1.rb:909:in `Pass1'\r\n        from ..\/asp3\/cfg\/cfg.rb:712:in `&lt;main&gt;'\r\nmake[1]: *** [Makefile:358: cfg1_out.timestamp] Error 1\r\nmake[1]: Leaving directory '\/home\/JaneDoe\/toppers\/build'\r\nmake: *** [Makefile:224: all] Error 2<\/pre>\n<p>\u30b3\u30f3\u30d5\u30a3\u30ae\u30e5\u30ec\u30fc\u30bf\uff08ITRON\u306e\u30bf\u30b9\u30af\u3084\u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u306a\u3069\u306e\u9759\u7684\u751f\u6210\uff09\u304c\u5931\u6557\u3059\u308b\u3002<br \/>\n&rArr; make \u304c\u5931\u6557\u3059\u308b\u3002<\/p>\n<p><!--more--><\/p>\n<h3>\u4e0d\u5177\u5408\u767a\u751f\u6761\u4ef6 \u8a73\u7d30<\/h3>\n<ul>\n<li>Ruby 3.0 \u4ee5\u4e0a<\/li>\n<li>TOPPERS\u7b2c3\u4e16\u4ee3\u30ab\u30fc\u30cd\u30eb\u5411\u3051 Ruby\u7248\u30b3\u30f3\u30d5\u30a3\u30ae\u30e5\u30ec\u30fc\u30bf Release 1.6.0 \u4ee5\u4e0b\n<ul>\n<li>TOPPERS\/ASP3\u30ab\u30fc\u30cd\u30eb\u7c21\u6613\u30d1\u30c3\u30b1\u30fc\u30b8 <code>asp3_arm_gcc-20201223.tar.gz<\/code> \u306a\u3069<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>\u4e0d\u5177\u5408\u539f\u56e0<\/h3>\n<p>options\u5f15\u6570\u306e\u8a18\u8ff0\u304c\u4e0d\u9069\u5207\u3067\u3042\u308b<\/p>\n<h4>\u4e0d\u9069\u5207\u306a\u30b3\u30fc\u30c9<\/h4>\n<pre class=\"lang:default highlight:0 decode:true \" >symvalCsv = CSV.open(symvalTableFileName,\u3000{ skip_blanks: true, skip_lines: \/^#\/ })<\/pre>\n<h4>\u9069\u5207\u306a\u30b3\u30fc\u30c9<\/h4>\n<pre class=\"lang:default highlight:0 decode:true \" >symvalCsv = CSV.open(symvalTableFileName,\u3000skip_blanks: true, skip_lines: \/^#\/ )<\/pre>\n<h4>\u30b3\u30fc\u30c9\u4e0d\u5177\u5408\u306e\u8a73\u7d30<\/h4>\n<p>CSV\u30af\u30e9\u30b9\u306eopen\u30e1\u30bd\u30c3\u30c9\u306e\u4ed5\u69d8\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3042\u308b\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >open(filename, mode = \"rb\", options = Hash.new) {|csv| ... } -&gt; nil[permalink][rdoc][edit]\r\nopen(filename, mode = \"rb\", options = Hash.new) -&gt; CSV\r\nopen(filename, options = Hash.new) {|csv| ... } -&gt; nil\r\nopen(filename, options = Hash.new) -&gt; CSV<\/pre>\n<p>\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570 mode \u3092\u7701\u7565\u3057\u305f\u7d50\u679c\u3001\u30cf\u30c3\u30b7\u30e5\u304c mode \u306e\u5f15\u6570\u3068\u306a\u3063\u3066\u3057\u307e\u3044\u30a8\u30e9\u30fc\u306b\u9665\u3063\u3066\u3044\u308b\u3002<\/p>\n<h3>\u53c2\u8003\u30ea\u30f3\u30af<\/h3>\n<ul>\n<li><a href=\"https:\/\/www.toppers.jp\/TOPPERS-USERS-mailman\/2016-July\/004400.html\">(toppers-users 4579) cfg\/pass1.rb\u3067\u306e\u7a7a\u884c\u306e\u6271\u3044<\/a><\/li>\n<li><a href=\"https:\/\/techracho.bpsinc.jp\/hachi8833\/2017_03_22\/37313\">\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u591a\u7528\u3055\u308c\u308b\u300coptions = {} \u300d\u5f15\u6570\u306f\u8efd\u3005\u3057\u304f\u771f\u4f3c\u3057\u306a\u3044\u65b9\u304c\u3044\u3044\u3068\u3044\u3046\u8a71<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u75c7\u72b6 ruby ..\/asp3\/tecsgen\/tecsgen.rb ..\/asp3\/sample\/sample1.cdl -R -I. -I..\/asp3\/include -I..\/asp3\/target\/raspbe [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[12,79],"class_list":["post-5460","post","type-post","status-publish","format-standard","hentry","category-memo","tag-ruby","tag-toppers"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/5460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=5460"}],"version-history":[{"count":18,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/5460\/revisions"}],"predecessor-version":[{"id":5478,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/5460\/revisions\/5478"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=5460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=5460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=5460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}