aster94 / Keyword-Protocol-2000

The KWP2000 is a communications protocol used for on-board vehicle diagnostics systems (OBD) by Suzuki (SDS), Kawasaki (KDS), Yamaha (YDS), Honda (HDS) and possibly more. It is standardized by ISO 14230
GNU General Public License v3.0
237 stars 64 forks source link

Compilation error: 'Serial3' was not declared in this scope #21

Open andru666 opened 1 year ago

andru666 commented 1 year ago

Hi, it doesn't work with arduino nano. Here is such a mistake FQBN: arduino:avr:nano:cpu=atmega328old Using board 'nano' from platform in folder: C:\Users\ANDREAS\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6 Using core 'arduino' from platform in folder: C:\Users\ANDREAS\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

Detecting libraries used... C:\Users\ANDREAS\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\ANDREAS\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\ANDREAS\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs C:\Users\ANDREAS\AppData\Local\Temp\arduino\sketches\DD420099BF8F7ED02C7B25D704E2BE58\sketch\basic_working.ino.cpp -o nul Alternatives for KWP2000.h: [KWP2000@1.3.0] ResolveLibrary(KWP2000.h) -> candidates: [KWP2000@1.3.0] C:\Users\ANDREAS\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\ANDREAS\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\ANDREAS\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -Ic:\Users\ANDREAS\Documents\Arduino\libraries\KWP2000\src C:\Users\ANDREAS\AppData\Local\Temp\arduino\sketches\DD420099BF8F7ED02C7B25D704E2BE58\sketch\basic_working.ino.cpp -o nul C:\Users\ANDREAS\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\ANDREAS\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\ANDREAS\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -Ic:\Users\ANDREAS\Documents\Arduino\libraries\KWP2000\src c:\Users\ANDREAS\Documents\Arduino\libraries\KWP2000\src\KWP2000.cpp -o nul Generating function prototypes... C:\Users\ANDREAS\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\ANDREAS\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\ANDREAS\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -Ic:\Users\ANDREAS\Documents\Arduino\libraries\KWP2000\src C:\Users\ANDREAS\AppData\Local\Temp\arduino\sketches\DD420099BF8F7ED02C7B25D704E2BE58\sketch\basic_working.ino.cpp -o C:\Users\ANDREAS\AppData\Local\Temp\3594476015\sketch_merged.cpp C:\Users\ANDREAS\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\ANDREAS\AppData\Local\Temp\3594476015\sketch_merged.cpp Компиляция скетча... "C:\Users\ANDREAS\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Users\ANDREAS\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\ANDREAS\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs" "-Ic:\Users\ANDREAS\Documents\Arduino\libraries\KWP2000\src" "C:\Users\ANDREAS\AppData\Local\Temp\arduino\sketches\DD420099BF8F7ED02C7B25D704E2BE58\sketch\basic_working.ino.cpp" -o "C:\Users\ANDREAS\AppData\Local\Temp\arduino\sketches\DD420099BF8F7ED02C7B25D704E2BE58\sketch\basic_working.ino.cpp.o" C:\Users\ANDREAS\AppData\Local\Temp.arduinoIDE-unsaved2023813-2476-1h7eo93.5f3c\basic_working\basic_working.ino:12:14: error: 'Serial3' was not declared in this scope

define bike Serial3

          ^

C:\Users\ANDREAS\AppData\Local\Temp.arduinoIDE-unsaved2023813-2476-1h7eo93.5f3c\basic_working\basic_working.ino:19:14: note: in expansion of macro 'bike' KWP2000 ECU(&bike, TX_PIN, YOUR_MOTORBIKE); ^~~~ C:\Users\ANDREAS\AppData\Local\Temp.arduinoIDE-unsaved2023813-2476-1h7eo93.5f3c\basic_working\basic_working.ino:12:14: note: suggested alternative: 'Serial'

define bike Serial3

          ^

C:\Users\ANDREAS\AppData\Local\Temp.arduinoIDE-unsaved2023813-2476-1h7eo93.5f3c\basic_working\basic_working.ino:19:14: note: in expansion of macro 'bike' KWP2000 ECU(&bike, TX_PIN, YOUR_MOTORBIKE); ^~~~ C:\Users\ANDREAS\AppData\Local\Temp.arduinoIDE-unsaved2023813-2476-1h7eo93.5f3c\basic_working\basic_working.ino:19:28: error: 'YOUR_MOTORBIKE' was not declared in this scope KWP2000 ECU(&bike, TX_PIN, YOUR_MOTORBIKE); ^~~~~~

Используем библиотеку KWP2000 версии 1.3.0 из папки: C:\Users\ANDREAS\Documents\Arduino\libraries\KWP2000 exit status 1

Compilation error: 'Serial3' was not declared in this scope

66zai commented 1 year ago

This is an automatic reply, confirming that your e-mail was received.Thank you----------------------------------------------------------您的E-mail我已经收到,如果看到定会很快给您答复。