質問編集履歴

2

問題の原因がマイコンにあったため、マイコンの種類を追記しました。

2021/12/29 06:56

投稿

Hayaaaaaa
Hayaaaaaa

スコア46

test CHANGED
File without changes
test CHANGED
@@ -30,6 +30,14 @@
30
30
 
31
31
 
32
32
 
33
+ ###動作環境
34
+
35
+ マイコンボード:GR-Citrus
36
+
37
+ 開発環境:IDE for GR v1.13
38
+
39
+
40
+
33
41
  ### 発生している問題・エラーメッセージ
34
42
 
35
43
  コンパイルエラーなどは出ませんでした。

1

コンパイラオプションを載せました

2021/12/29 06:56

投稿

Hayaaaaaa
Hayaaaaaa

スコア46

test CHANGED
File without changes
test CHANGED
@@ -51,3 +51,159 @@
51
51
  Serial.print(cos(angle_rad)); // 0.25と表示(合っている)
52
52
 
53
53
  ```
54
+
55
+
56
+
57
+ ### おそらくコンパイルオプション
58
+
59
+
60
+
61
+
62
+
63
+ ```platform.txt
64
+
65
+ # RX63N and platform.
66
+
67
+ # ------------------------------
68
+
69
+
70
+
71
+ # For more info:
72
+
73
+
74
+
75
+ name=Renesas RX63
76
+
77
+ #version=2.2.0
78
+
79
+
80
+
81
+ # AVR compile variables
82
+
83
+ # ---------------------
84
+
85
+
86
+
87
+ # Default "compiler.path" is correct, change only if you want to overidde the initial value
88
+
89
+ compiler.path={runtime.ide.path}/hardware/tools/gcc-rx/rx-elf/rx-elf/bin/
90
+
91
+ compiler.ar.path = {runtime.ide.path}/hardware/arduino/rx63/cores/
92
+
93
+ compiler.c.cmd=rx-elf-gcc
94
+
95
+ compiler.c.flags=-Wall -ffunction-sections -fno-function-cse -fsigned-char -fdata-sections -mno-balign -DARDUINO=100 -DCPPAPP -D__RX_LITTLE_ENDIAN__=1 -D__T4__ -O2 -flto -mlittle-endian-data -mcpu=rx600 -Ihardware/arduino/rx63/cores/ -Ihardware/arduino/rx63/cores/core -Ihardware/arduino/rx63/cores/core/avr -Ihardware/arduino/rx63/cores/lib -Ihardware/arduino/rx63/libraries/DSP -Ihardware/arduino/rx63/libraries/DSP/utility -Ihardware/arduino/rx63/libraries/EEPROM -Ihardware/arduino/rx63/libraries/EEPROM/utility -Ihardware/arduino/rx63/libraries/Ethernet -Ihardware/arduino/rx63/libraries/Ethernet/utility -Ihardware/arduino/rx63/libraries/Ethernet/utility/driver -Ihardware/arduino/rx63/libraries/Ethernet/utility/r_byteq_v1.30 -Ihardware/arduino/rx63/libraries/Ethernet/utility/r_config -Ihardware/arduino/rx63/libraries/Ethernet/utility/T4_src -Ihardware/arduino/rx63/libraries/Ethernet/utility/T4_src/checksum -Ihardware/arduino/rx63/libraries/Ethernet/utility/T4_src/checksum/rx -Ihardware/arduino/rx63/libraries/Firmata -Ihardware/arduino/rx63/libraries/LiquidCrystal -Ihardware/arduino/rx63/libraries/MsTimer2 -Ihardware/arduino/rx63/libraries/RTC -Ihardware/arduino/rx63/libraries/RTC/utility -Ihardware/arduino/rx63/libraries/SD -Ihardware/arduino/rx63/libraries/SD/utility -Ihardware/arduino/rx63/libraries/Servo -Ihardware/arduino/rx63/libraries/SoftwareSerial -Ihardware/arduino/rx63/libraries/SPI -Ihardware/arduino/rx63/libraries/Stepper -Ihardware/arduino/rx63/libraries/Wire -Ihardware/arduino/rx63/libraries/Wire/utility -Ihardware/arduino/rx63/cores/rx63n -Ihardware/arduino/rx63/libraries/ArduinoJson -Ihardware/arduino/rx63/libraries/postParser -Ihardware/arduino/rx63/libraries/PubSubClient -Ihardware/arduino/rx63/libraries/WavMp3p -Ihardware/arduino/rx63/libraries/WavMp3p/utility -Ihardware/arduino/rx63/libraries/WiFiEsp -Ihardware/arduino/rx63/libraries/WiFiEsp/utility -Ihardware/arduino/rx63/libraries/AdafruitGFX
96
+
97
+ compiler.S.cmd=rx-elf-gcc
98
+
99
+ compiler.S.flags= -ffunction-sections -fno-function-cse -fsigned-char -fdata-sections -mno-balign -DARDUINO=100 -DCPPAPP -D__RX_LITTLE_ENDIAN__=1 -D__T4__ -O2 -mlittle-endian-data -mcpu=rx600
100
+
101
+ compiler.elf2hex.flags=-O binary
102
+
103
+ #compiler.elf2hex.flags=-O srec
104
+
105
+ compiler.elf2hex.cmd=rx-elf-objcopy
106
+
107
+ compiler.c.elf.cmd=rx-elf-ld
108
+
109
+ compiler.c.elf.flags=
110
+
111
+ compiler.ar.cmd=rx-elf-ar
112
+
113
+ compiler.ar.flags=rcs
114
+
115
+ compiler.ld.flags= -e_PowerON_Reset -no-keep-memory -S
116
+
117
+ compiler.size.cmd=rx-elf-size
118
+
119
+ # this can be overriden in boards.txt
120
+
121
+ build.extra_flags=
122
+
123
+
124
+
125
+ # AVR compile patterns
126
+
127
+ # --------------------
128
+
129
+
130
+
131
+ ## Compile c files
132
+
133
+ recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" -std=gnu99 {includes} {compiler.c.flags} {build.extra_flags} -c -x c "{source_file}" -o "{object_file}"
134
+
135
+
136
+
137
+ ## Compile c++ files
138
+
139
+ recipe.cpp.o.pattern="{compiler.path}{compiler.c.cmd}" -std=gnu++11 {includes} {compiler.c.flags} {build.extra_flags} -c -x c++ "{source_file}" -o "{object_file}"
140
+
141
+
142
+
143
+ ## Compile S files
144
+
145
+ recipe.S.o.pattern="{compiler.path}{compiler.c.cmd}" {includes} {compiler.S.flags} -c -x assembler-with-cpp "{source_file}" -o "{object_file}"
146
+
147
+
148
+
149
+ ## Create archives
150
+
151
+ recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{build.path}/{archive_file}" "{object_file}"
152
+
153
+
154
+
155
+ ## for rapid compile
156
+
157
+ ## Combine gc-sections, archives, and objects
158
+
159
+ recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.ld.flags} "-T{build.variant.path}/{build.ldscript}" {object_files} --whole-archive "{build.variant.path}/gr_common.a" --no-whole-archive "-L{build.path}" "{build.path}/{archive_file}" -o "{build.path}/{build.project_name}.elf" "-L{runtime.ide.path}/hardware/tools/gcc-rx/rx-elf/rx-elf/rx-elf/lib/64-bit-double" "-L{runtime.ide.path}/hardware/tools/gcc-rx/rx-elf/rx-elf/lib/gcc/rx-elf/4.8.4.201801-GNURX/64-bit-double" --no-flag-mismatch-warnings --start-group -lstdc++ -lnosys -lsim -lm -lc -lgcc --end-group
160
+
161
+
162
+
163
+ ## Create eeprom
164
+
165
+ recipe.objcopy.eep.pattern=
166
+
167
+
168
+
169
+ ## Create hex
170
+
171
+ recipe.objcopy.hex.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.bin"
172
+
173
+
174
+
175
+ ## Compute size
176
+
177
+ recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
178
+
179
+ recipe.size.regex=^(?:.text|.data|.bootloader)\s+([0-9]+).*
180
+
181
+ recipe.size.regex.data=^(?:.data|.bss|.noinit)\s+([0-9]+).*
182
+
183
+ recipe.size.regex.eeprom=^(?:.eeprom)\s+([0-9]+).*
184
+
185
+
186
+
187
+
188
+
189
+ # SAM3 Uploader tools
190
+
191
+ # -------------------
192
+
193
+
194
+
195
+ tools.savesketch.cmd=SaveSketch
196
+
197
+ tools.savesketch.cmd.windows=SaveSketch.bat
198
+
199
+ tools.savesketch.path={runtime.ide.path}/hardware/tools/rx
200
+
201
+
202
+
203
+ tools.savesketch.upload.params.verbose=
204
+
205
+ tools.savesketch.upload.params.quiet=
206
+
207
+ tools.savesketch.upload.pattern="{path}/{cmd}" "{name}" "{build.path}\{build.project_name}.bin"
208
+
209
+ ```