-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
software installation problem: 'D6' was not declared in this scope" #228
Comments
Please check the steps carefully and try again. If it helps, type out what you are doing in a bullet list here and see where you get stuck. Then we can help. |
I have done it 3 times... Which step can be involved in " D6 is not declared in this scope" error msg? |
Please make sure you have selected the correct board in Arduino software: Tools > Board menu https://shmups.system11.org/viewtopic.php?f=6&t=52172&start=3180 |
i used "generic 8266 module", an d when i use LOLIN(WEMOS) D1 R2 & mini", i have another error message at the same step: |
If you’re using the Arduino IDE you should set your Preferences to verbose output for compile and upload. A description of the exact error will be present. Paste it here, or add a screenshot! |
does it help? I think just the last part in french was the las t test , or? |
Hey, |
ok ill try, thanks! |
I think i used the 2.7.4 version, so it should be ok, am i correct?? |
Use github gist or pastebin, for freakings sake, next time. |
If you aren't sure which board you have, select "LOLIN(WEMOS) D1 R2 & mini". |
Sorry i knwo it is probably a toolong error message and it is bad for the forum, but I don t know what is useful.... |
Arduino : 1.8.13 (Windows 8), Carte : "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600" E:\Games\arduino\arduino-builder -dump-prefs -logger=machine -hardware E:\Games\arduino\hardware -hardware E:\Users\Guillaume\AppData\Local\Arduino15\packages -tools E:\Games\arduino\tools-builder -tools E:\Games\arduino\hardware\tools\avr -tools E:\Users\Guillaume\AppData\Local\Arduino15\packages -built-in-libraries E:\Games\arduino\libraries -libraries E:\Users\Guillaume\Documents\Arduino\libraries -fqbn=esp8266:esp8266:d1_mini:xtal=80,vt=flash,exception=legacy,ssl=all,eesz=4M2M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=921600 -vid-pid=0000_0000 -ide-version=10813 -build-path E:\Users\GUILLA E:\Games\arduino\arduino-builder -compile -logger=machine -hardware E:\Games\arduino\hardware -hardware E:\Users\Guillaume\AppData\Local\Arduino15\packages -tools E:\Games\arduino\tools-builder -tools E:\Games\arduino\hardware\tools\avr -tools E:\Users\Guillaume\AppData\Local\Arduino15\packages -built-in-libraries E:\Games\arduino\libraries -libraries E:\Users\Guillaume\Documents\Arduino\libraries -fqbn=esp8266:esp8266:d1_mini:xtal=80,vt=flash,exception=legacy,ssl=all,eesz=4M2M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=921600 -vid-pid=0000_0000 -ide-version=10813 -build-path E:\Users\GUILLA Using board 'd1_mini' from platform in folder: E:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.3 Using core 'esp8266' from platform in folder: E:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.3 Detecting libraries used... "E:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IE:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.3/tools/sdk/include" "-IE:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.3/tools/sdk/lwip2/include" "-IE:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.3/tools/sdk/libc/xtensa-lx106-elf/include" "-IE:\Users\GUILLA Generating function prototypes... "E:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IE:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.3/tools/sdk/include" "-IE:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.3/tools/sdk/lwip2/include" "-IE:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.3/tools/sdk/libc/xtensa-lx106-elf/include" "-IE:\Users\GUILLA "E:\Games\arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "E:\Users\GUILLA~1\AppData\Local\Temp\arduino_build_656773\preproc\ctags_target_for_gcc_minus_e.cpp" Compilation du croquis... "E:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1/python3" "E:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.3/tools/signing.py" --mode header --publickey "E:\Users\GUILLA "E:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IE:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.3/tools/sdk/include" "-IE:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.3/tools/sdk/lwip2/include" "-IE:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.3/tools/sdk/libc/xtensa-lx106-elf/include" "-IE:\Users\GUILLA Compiling libraries... Compiling core... Using precompiled core: E:\Users\GUILLA~1\AppData\Local\Temp\arduino_cache_810326\core\core_afb80d15568dee19379481b29749d3e4.a Linking everything together... "E:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506/bin/xtensa-lx106-elf-gcc" -CC -E -P -DVTABLES_IN_FLASH "E:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.3/tools/sdk/ld/eagle.app.v6.common.ld.h" -o "E:\Users\GUILLA~1\AppData\Local\Temp\arduino_build_656773/local.eagle.app.v6.common.ld" "E:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506/bin/xtensa-lx106-elf-gcc" -fno-exceptions -Wl,-Map "-Wl,E:\Users\GUILLA e:/users/guillaume/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: E:\Users\GUILLA~1\AppData\Local\Temp\arduino_cache_810326\core\core_afb80d15568dee19379481b29749d3e4.a(core_esp8266_main.cpp.o): in function `__loop_end': E:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.3\cores\esp8266/core_esp8266_main.cpp:185: undefined reference to `setup' e:/users/guillaume/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: E:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.3\cores\esp8266/core_esp8266_main.cpp:185: undefined reference to `loop' e:/users/guillaume/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: E:\Users\GUILLA~1\AppData\Local\Temp\arduino_cache_810326\core\core_afb80d15568dee19379481b29749d3e4.a(core_esp8266_main.cpp.o): in function `loop_wrapper()': E:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.3\cores\esp8266/core_esp8266_main.cpp:191: undefined reference to `setup' e:/users/guillaume/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: E:\Users\Guillaume\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.3\cores\esp8266/core_esp8266_main.cpp:192: undefined reference to `loop' collect2.exe: error: ld returned 1 exit status exit status 1 Erreur de compilation pour la carte LOLIN(WEMOS) D1 R2 & mini |
I tried with LOLIN(WEMOS) D1 R2 & mini and a shorter version of the report... |
I think D6 (along with D1 and D2) is supposed to be a C language definition that maps a digital pin number to a pin numeric identifier that the Arduino IDE recognizes. The enabling code for some ESP8266 boards provides this, but the code for others (Adafruit Feather HUZZAH ESP8266, for example) apparently does not. You should be able to add the missing definitions to the top of the
|
Hello , I a am trying to set up the software for the gbs control but when I try to upload the soft ware in the board (ctrl+U) i have got this message "D6 wa&s not de"clared inthis scope".
Can you help me , i am a real noob for Arduino things...
The text was updated successfully, but these errors were encountered: