Closed hyouhyan closed 1 month ago
ボードマネージャーのライブラリ内で定義された箇所を編集したが、下記エラーが発生
c:/users/hyouhyan/appdata/local/arduino15/packages/stm32/tools/xpack-arm-none-eabi-gcc/9.2.1-1.1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Hyouhyan\AppData\Local\Temp\arduino\sketches\4E67942EC56764086029F1BDEC48F57B\libraries\SrcWrapper\stm32\low_power.c.o: in function `LowPower_init':
low_power.c:(.text.LowPower_init+0x0): multiple definition of `LowPower_init'; C:\Users\Hyouhyan\AppData\Local\Temp\arduino\sketches\4E67942EC56764086029F1BDEC48F57B\libraries\STM32duino_Low_Power\low_power.c.o:low_power.c:(.text.LowPower_init+0x0): first defined here
c:/users/hyouhyan/appdata/local/arduino15/packages/stm32/tools/xpack-arm-none-eabi-gcc/9.2.1-1.1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Hyouhyan\AppData\Local\Temp\arduino\sketches\4E67942EC56764086029F1BDEC48F57B\libraries\SrcWrapper\stm32\low_power.c.o: in function `LowPower_EnableWakeUpPin':
low_power.c:(.text.LowPower_EnableWakeUpPin+0x0): multiple definition of `LowPower_EnableWakeUpPin'; C:\Users\Hyouhyan\AppData\Local\Temp\arduino\sketches\4E67942EC56764086029F1BDEC48F57B\libraries\STM32duino_Low_Power\low_power.c.o:low_power.c:(.text.LowPower_EnableWakeUpPin+0x0): first defined here
c:/users/hyouhyan/appdata/local/arduino15/packages/stm32/tools/xpack-arm-none-eabi-gcc/9.2.1-1.1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Hyouhyan\AppData\Local\Temp\arduino\sketches\4E67942EC56764086029F1BDEC48F57B\libraries\SrcWrapper\stm32\low_power.c.o: in function `LowPower_sleep':
low_power.c:(.text.LowPower_sleep+0x0): multiple definition of `LowPower_sleep'; C:\Users\Hyouhyan\AppData\Local\Temp\arduino\sketches\4E67942EC56764086029F1BDEC48F57B\libraries\STM32duino_Low_Power\low_power.c.o:low_power.c:(.text.LowPower_sleep+0x0): first defined here
c:/users/hyouhyan/appdata/local/arduino15/packages/stm32/tools/xpack-arm-none-eabi-gcc/9.2.1-1.1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Hyouhyan\AppData\Local\Temp\arduino\sketches\4E67942EC56764086029F1BDEC48F57B\libraries\SrcWrapper\stm32\low_power.c.o: in function `LowPower_standby':
low_power.c:(.text.LowPower_standby+0x0): multiple definition of `LowPower_standby'; C:\Users\Hyouhyan\AppData\Local\Temp\arduino\sketches\4E67942EC56764086029F1BDEC48F57B\libraries\STM32duino_Low_Power\low_power.c.o:low_power.c:(.text.LowPower_standby+0x0): first defined here
c:/users/hyouhyan/appdata/local/arduino15/packages/stm32/tools/xpack-arm-none-eabi-gcc/9.2.1-1.1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Hyouhyan\AppData\Local\Temp\arduino\sketches\4E67942EC56764086029F1BDEC48F57B\libraries\SrcWrapper\stm32\low_power.c.o: in function `LowPower_shutdown':
low_power.c:(.text.LowPower_shutdown+0x0): multiple definition of `LowPower_shutdown'; C:\Users\Hyouhyan\AppData\Local\Temp\arduino\sketches\4E67942EC56764086029F1BDEC48F57B\libraries\STM32duino_Low_Power\low_power.c.o:low_power.c:(.text.LowPower_shutdown+0x0): first defined here
c:/users/hyouhyan/appdata/local/arduino15/packages/stm32/tools/xpack-arm-none-eabi-gcc/9.2.1-1.1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Hyouhyan\AppData\Local\Temp\arduino\sketches\4E67942EC56764086029F1BDEC48F57B\libraries\SrcWrapper\stm32\low_power.c.o: in function `LowPower_EnableWakeUpUart':
low_power.c:(.text.LowPower_EnableWakeUpUart+0x0): multiple definition of `LowPower_EnableWakeUpUart'; C:\Users\Hyouhyan\AppData\Local\Temp\arduino\sketches\4E67942EC56764086029F1BDEC48F57B\libraries\STM32duino_Low_Power\low_power.c.o:low_power.c:(.text.LowPower_EnableWakeUpUart+0x0): first defined here
c:/users/hyouhyan/appdata/local/arduino15/packages/stm32/tools/xpack-arm-none-eabi-gcc/9.2.1-1.1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Hyouhyan\AppData\Local\Temp\arduino\sketches\4E67942EC56764086029F1BDEC48F57B\libraries\SrcWrapper\stm32\low_power.c.o: in function `LowPower_stop':
low_power.c:(.text.LowPower_stop+0x0): multiple definition of `LowPower_stop'; C:\Users\Hyouhyan\AppData\Local\Temp\arduino\sketches\4E67942EC56764086029F1BDEC48F57B\libraries\STM32duino_Low_Power\low_power.c.o:low_power.c:(.text.LowPower_stop+0x0): first defined here
c:/users/hyouhyan/appdata/local/arduino15/packages/stm32/tools/xpack-arm-none-eabi-gcc/9.2.1-1.1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Hyouhyan\AppData\Local\Temp\arduino\sketches\4E67942EC56764086029F1BDEC48F57B\libraries\STM32duino_Low_Power\low_power.c.o: in function `SystemClock_ConfigFromStop':
low_power.c:(.text.SystemClock_ConfigFromStop+0x2): undefined reference to `configIPClock'
collect2.exe: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1
lowpower関連を全部削除するべき?
low_power.c, low_power.cを全削除した
c:/users/hyouhyan/appdata/local/arduino15/packages/stm32/tools/xpack-arm-none-eabi-gcc/9.2.1-1.1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Hyouhyan\AppData\Local\Temp\arduino\sketches\4E67942EC56764086029F1BDEC48F57B\libraries\STM32duino_Low_Power\low_power.c.o: in function `SystemClock_ConfigFromStop':
low_power.c:(.text.SystemClock_ConfigFromStop+0x2): undefined reference to `configIPClock'
collect2.exe: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1
STM32duino lowpowerのバージョンを1.1.1に下げることで解消
以下のエラーが発生してコンパイルが通らない。
STM32LowPowerと、Leafonyのボードマネージャーの中にあるLowPower.hが衝突してる。