請教DSI2598+編譯出現如下錯誤,如何解決?
ARDUINO 重裝也沒有用
==============================================
Arduino:1.8.13 (Windows 10), 開發板:"Generic STM32F103C series, STM32F103C8 (20k RAM. 64k Flash), STM32duino bootloader, 72Mhz (Normal), Smallest (default)"
libraries\OneWireSTM\OneWireSTM.cpp.o: In function `OneWire::skip()':
C:\Users\mcas\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\OneWireSTM\src/OneWireSTM.cpp:138: multiple definition of `OneWire::reset()'
libraries\OneWire\OneWire.cpp.o:C:\Users\mcas\Documents\Arduino\libraries\OneWire/OneWire.cpp:165: first defined here
libraries\OneWireSTM\OneWireSTM.cpp.o: In function `OneWire::search(unsigned char*)':
C:\Users\mcas\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\OneWireSTM\src/OneWireSTM.cpp:176: multiple definition of `OneWire::write_bit(unsigned char)'
libraries\OneWire\OneWire.cpp.o:C:\Users\mcas\Documents\Arduino\libraries\OneWire/OneWire.cpp:203: first defined here
libraries\OneWireSTM\OneWireSTM.cpp.o: In function `OneWire::read_bit()':
C:\Users\mcas\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\OneWireSTM\src/OneWireSTM.cpp:200: multiple definition of `OneWire::read_bit()'
libraries\OneWire\OneWire.cpp.o:C:\Users\mcas\Documents\Arduino\libraries\OneWire/OneWire.cpp:227: first defined here
libraries\OneWireSTM\OneWireSTM.cpp.o: In function `OneWire::write(unsigned char, unsigned char)':
C:\Users\mcas\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\OneWireSTM\src/OneWireSTM.cpp:224: multiple definition of `OneWire::write(unsigned char, unsigned char)'
libraries\OneWire\OneWire.cpp.o:C:\Users\mcas\Documents\Arduino\libraries\OneWire/OneWire.cpp:251: first defined here
libraries\OneWireSTM\OneWireSTM.cpp.o: In function `OneWire::write_bytes(unsigned char const*, unsigned short, bool)':
C:\Users\mcas\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\OneWireSTM\src/OneWireSTM.cpp:238: multiple definition of `OneWire::write_bytes(unsigned char const*, unsigned short, bool)'
libraries\OneWire\OneWire.cpp.o:C:\Users\mcas\Documents\Arduino\libraries\OneWire/OneWire.cpp:265: first defined here
libraries\OneWireSTM\OneWireSTM.cpp.o: In function `OneWire::read()':
C:\Users\mcas\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\OneWireSTM\src/OneWireSTM.cpp:252: multiple definition of `OneWire::read()'
libraries\OneWire\OneWire.cpp.o:C:\Users\mcas\Documents\Arduino\libraries\OneWire/OneWire.cpp:279: first defined here
libraries\OneWireSTM\OneWireSTM.cpp.o: In function `OneWire::read_bytes(unsigned char*, unsigned short)':
C:\Users\mcas\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\OneWireSTM\src/OneWireSTM.cpp:262: multiple definition of `OneWire::read_bytes(unsigned char*, unsigned short)'
libraries\OneWire\OneWire.cpp.o:C:\Users\mcas\Documents\Arduino\libraries\OneWire/OneWire.cpp:289: first defined here
libraries\OneWireSTM\OneWireSTM.cpp.o: In function `OneWire::select(unsigned char const*)':
C:\Users\mcas\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\OneWireSTM\src/OneWireSTM.cpp:271: multiple definition of `OneWire::select(unsigned char const*)'
libraries\OneWire\OneWire.cpp.o:C:\Users\mcas\Documents\Arduino\libraries\OneWire/OneWire.cpp:298: first defined here
libraries\OneWireSTM\OneWireSTM.cpp.o: In function `OneWire::skip()':
C:\Users\mcas\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\OneWireSTM\src/OneWireSTM.cpp:284: multiple definition of `OneWire::skip()'
libraries\OneWire\OneWire.cpp.o:C:\Users\mcas\Documents\Arduino\libraries\OneWire/OneWire.cpp:311: first defined here
libraries\OneWireSTM\OneWireSTM.cpp.o: In function `OneWire::depower()':
C:\Users\mcas\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\OneWireSTM\src/OneWireSTM.cpp:288: multiple definition of `OneWire::depower()'
libraries\OneWire\OneWire.cpp.o:C:\Users\mcas\Documents\Arduino\libraries\OneWire/OneWire.cpp:315: first defined here
libraries\OneWireSTM\OneWireSTM.cpp.o: In function `OneWire::reset_search()':
C:\Users\mcas\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\OneWireSTM\src/OneWireSTM.cpp:303: multiple definition of `OneWire::reset_search()'
libraries\OneWire\OneWire.cpp.o:C:\Users\mcas\Documents\Arduino\libraries\OneWire/OneWire.cpp:330: first defined here
libraries\OneWireSTM\OneWireSTM.cpp.o: In function `OneWire::target_search(unsigned char)':
C:\Users\mcas\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\OneWireSTM\src/OneWireSTM.cpp:318: multiple definition of `OneWire::target_search(unsigned char)'
libraries\OneWire\OneWire.cpp.o:C:\Users\mcas\Documents\Arduino\libraries\OneWire/OneWire.cpp:345: first defined here
libraries\OneWireSTM\OneWireSTM.cpp.o: In function `OneWire::crc8(unsigned char const*, unsigned char)':
C:\Users\mcas\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\OneWireSTM\src/OneWireSTM.cpp:497: multiple definition of `OneWire::crc8(unsigned char const*, unsigned char)'
libraries\OneWire\OneWire.cpp.o:C:\Users\mcas\Documents\Arduino\libraries\OneWire/OneWire.cpp:509: first defined here
libraries\OneWireSTM\OneWireSTM.cpp.o: In function `OneWire::crc16(unsigned char const*, unsigned short, unsigned short)':
C:\Users\mcas\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\OneWireSTM\src/OneWireSTM.cpp:535: multiple definition of `OneWire::crc16(unsigned char const*, unsigned short, unsigned short)'
libraries\OneWire\OneWire.cpp.o:C:\Users\mcas\Documents\Arduino\libraries\OneWire/OneWire.cpp:551: first defined here
libraries\OneWireSTM\OneWireSTM.cpp.o: In function `OneWire::check_crc16(unsigned char const*, unsigned short, unsigned char const*, unsigned short)':
C:\Users\mcas\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\OneWireSTM\src/OneWireSTM.cpp:529: multiple definition of `OneWire::check_crc16(unsigned char const*, unsigned short, unsigned char const*, unsigned short)'
libraries\OneWire\OneWire.cpp.o:C:\Users\mcas\Documents\Arduino\libraries\OneWire/OneWire.cpp:545: first defined here
collect2.exe: error: ld returned 1 exit status
exit status 1
開發板 Generic STM32F103C series 編譯錯誤。
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.