error from Ada_CurieBot_RC
For other supported Arduino products from Adafruit: Shields, accessories, etc.
Please be positive and constructive with your questions and comments.
jimhorning
Posts: 5 Joined: Sat Apr 08, 2017 8:12 pm
Post
by jimhorning » Sun Apr 16, 2017 5:35 am
I am able to reproduce error being seen by z246800 and smslaughter78 with the library I downloaded a few hours ago.
1) The patch I documented here is still required to compile:
jimhorning wrote: Open the file BLESerial.cpp under the Ada_CurieBot_RC project and change line 50 from
Code: Select all
this->_rxCharacteristic.setEventHandler(BLEWritten, NULL);
to
Code: Select all
this->_rxCharacteristic.setEventHandler(BLEWritten, (void(*)(BLECentral&, BLECharacteristic&))NULL);
2) The following additional change is required in order to get the sketch working again, change line 29 from
Code: Select all
this->_rxCharacteristic.setEventHandler(BLEWritten, (void(*)(BLECentral&, BLECharacteristic&))NULL);
to
Code: Select all
this->_rxCharacteristic.setEventHandler(BLEWritten, BLESerial::_received);
This is with the 2.0.2 version of board library for Intel Curie Arduino 101, I have not tested with the 1.0.7 version.
Note to Adafruit: The BLESerial.cpp looks like a step backwards to what you had published previously which had the line above "correct" in that it at least works; what was your source for it? This will need to be updated in all of your sketches unless you find another way to achieve it; I don't claim to understand the why of it, only that it works for me.
smslaughter78
Posts: 4 Joined: Sat Apr 15, 2017 4:20 pm
Post
by smslaughter78 » Sun Apr 16, 2017 10:29 am
Success!
Thanks Jim. It seems like the lines were correct, just swapped... 29 should have been at 50 and vice versa...
z246800
Posts: 4 Joined: Thu Apr 13, 2017 1:41 am
Post
by z246800 » Sun Apr 16, 2017 11:53 am
Worked for me too. Thanks Jim. Yea not sure exactly why that worked, but glad it did.
jimhorning
Posts: 5 Joined: Sat Apr 08, 2017 8:12 pm
Post
by jimhorning » Sun Apr 16, 2017 2:51 pm
Your both welcome, and now I think I see what happened thanks to the comment about the lines being swapped, I guess I was too tired to really look at what I was dong at the time. When the file was updated I think the cast that was supposed to go at line 50 as defined by my original post was accidentally applied at line 29, all this change is doing then is restoring the line 29 that was supposed to be there and putting the cast where it is really needed on line 50. Mystery solved. Adafruit, here is the library with these changes applied in all the sketches, I have only tested the Ada_CurieBot_RC sketch specifically, but the rest are just repeats of the same edit so I wouldn't anticipate a problem.
adafruit2
Posts: 22148 Joined: Fri Mar 11, 2005 7:36 pm
Post
by adafruit2 » Mon Apr 17, 2017 3:27 pm
woops - thats what i get for fixing code over the weekend
will take a look at it today, have a curibot on my desk :D
ihelpu2c
Posts: 3 Joined: Sat Jun 10, 2017 3:26 pm
Post
by ihelpu2c » Wed Jun 14, 2017 12:12 am
I have the curie bot and I'm trying to upload the software to be able to control it with my phone app. I'm getting this error " error compiling for board arduino/genuino 101.
I don't have experience with coding.
Please help to fix this.
Thanks.
Franklin97355
Posts: 23910 Joined: Mon Apr 21, 2008 2:33 pm
Post
by Franklin97355 » Wed Jun 14, 2017 2:04 am
In file preferences set the compile and upload options to verbose and then post the output here using the </> button in the reply box to add code tags and paste your code between them.
ihelpu2c
Posts: 3 Joined: Sat Jun 10, 2017 3:26 pm
Post
by ihelpu2c » Wed Jun 14, 2017 8:26 am
thank you for trying to help me. I am using a mac, but I did click both boxes to show verbose output during compilation and upload. I believe this is what you ask me for next but I am not sure. You want to see the complete error I am getting?
Code: Select all
Arduino: 1.8.3 (Mac OS X), Board: "Arduino/Genuino 101"
/private/var/folders/61/y8t759ms0f5934qhbz2qb21r0000gn/T/AppTranslocation/A909E7EA-354C-4D85-B5D6-FB7C7A278F9B/d/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /private/var/folders/61/y8t759ms0f5934qhbz2qb21r0000gn/T/AppTranslocation/A909E7EA-354C-4D85-B5D6-FB7C7A278F9B/d/Arduino.app/Contents/Java/hardware -hardware /Users/ihelpu2c/Library/Arduino15/packages -tools /private/var/folders/61/y8t759ms0f5934qhbz2qb21r0000gn/T/AppTranslocation/A909E7EA-354C-4D85-B5D6-FB7C7A278F9B/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/61/y8t759ms0f5934qhbz2qb21r0000gn/T/AppTranslocation/A909E7EA-354C-4D85-B5D6-FB7C7A278F9B/d/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/ihelpu2c/Library/Arduino15/packages -built-in-libraries /private/var/folders/61/y8t759ms0f5934qhbz2qb21r0000gn/T/AppTranslocation/A909E7EA-354C-4D85-B5D6-FB7C7A278F9B/d/Arduino.app/Contents/Java/libraries -libraries /Users/ihelpu2c/Desktop/libraries -fqbn=Intel:arc32:arduino_101 -vid-pid=0X8087_0X0AB6 -ide-version=10803 -build-path /var/folders/61/y8t759ms0f5934qhbz2qb21r0000gn/T/arduino_build_348850 -warnings=none -build-cache /var/folders/61/y8t759ms0f5934qhbz2qb21r0000gn/T/arduino_cache_490843 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=/Users/ihelpu2c/Library/Arduino15/packages/Intel/tools/openocd/0.9.0+0.1 -prefs=runtime.tools.flashpack.path=/Users/ihelpu2c/Library/Arduino15/packages/Intel/tools/flashpack/2.0.0 -prefs=runtime.tools.dfu-util.path=/Users/ihelpu2c/Library/Arduino15/packages/arduino/tools/dfu-util/0.9.0-arduino1 -prefs=runtime.tools.arc-elf32.path=/Users/ihelpu2c/Library/Arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1 -prefs=runtime.tools.arduino101load.path=/Users/ihelpu2c/Library/Arduino15/packages/Intel/tools/arduino101load/2.0.1 -verbose /Users/ihelpu2c/Desktop/Adafruit_Curie_Bot-master/Ada_CurieBot_RC/Ada_CurieBot_RC.ino
/private/var/folders/61/y8t759ms0f5934qhbz2qb21r0000gn/T/AppTranslocation/A909E7EA-354C-4D85-B5D6-FB7C7A278F9B/d/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /private/var/folders/61/y8t759ms0f5934qhbz2qb21r0000gn/T/AppTranslocation/A909E7EA-354C-4D85-B5D6-FB7C7A278F9B/d/Arduino.app/Contents/Java/hardware -hardware /Users/ihelpu2c/Library/Arduino15/packages -tools /private/var/folders/61/y8t759ms0f5934qhbz2qb21r0000gn/T/AppTranslocation/A909E7EA-354C-4D85-B5D6-FB7C7A278F9B/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/61/y8t759ms0f5934qhbz2qb21r0000gn/T/AppTranslocation/A909E7EA-354C-4D85-B5D6-FB7C7A278F9B/d/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/ihelpu2c/Library/Arduino15/packages -built-in-libraries /private/var/folders/61/y8t759ms0f5934qhbz2qb21r0000gn/T/AppTranslocation/A909E7EA-354C-4D85-B5D6-FB7C7A278F9B/d/Arduino.app/Contents/Java/libraries -libraries /Users/ihelpu2c/Desktop/libraries -fqbn=Intel:arc32:arduino_101 -vid-pid=0X8087_0X0AB6 -ide-version=10803 -build-path /var/folders/61/y8t759ms0f5934qhbz2qb21r0000gn/T/arduino_build_348850 -warnings=none -build-cache /var/folders/61/y8t759ms0f5934qhbz2qb21r0000gn/T/arduino_cache_490843 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=/Users/ihelpu2c/Library/Arduino15/packages/Intel/tools/openocd/0.9.0+0.1 -prefs=runtime.tools.flashpack.path=/Users/ihelpu2c/Library/Arduino15/packages/Intel/tools/flashpack/2.0.0 -prefs=runtime.tools.dfu-util.path=/Users/ihelpu2c/Library/Arduino15/packages/arduino/tools/dfu-util/0.9.0-arduino1 -prefs=runtime.tools.arc-elf32.path=/Users/ihelpu2c/Library/Arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1 -prefs=runtime.tools.arduino101load.path=/Users/ihelpu2c/Library/Arduino15/packages/Intel/tools/arduino101load/2.0.1 -verbose /Users/ihelpu2c/Desktop/Adafruit_Curie_Bot-master/Ada_CurieBot_RC/Ada_CurieBot_RC.ino
Using board 'arduino_101' from platform in folder: /Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2
Using core 'arduino' from platform in folder: /Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2
Detecting libraries used...
"/Users/ihelpu2c/Library/Arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-g++" -c -mcpu=quarkse_em -mlittle-endian -g -Os -Wall -fno-reorder-functions -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -fno-defer-pop -Wno-unused-but-set-variable -Wno-main -ffreestanding -fno-stack-protector -mno-sdata -ffunction-sections -fdata-sections -fsigned-char -fno-rtti -fno-exceptions -fcheck-new -D__ARDUINO_ARC__ -std=c++11 -DCONFIG_BLUETOOTH_PERIPHERAL -DCONFIG_BLUETOOTH_CENTRAL -DCONFIG_BLUETOOTH_GATT_CLIENT -w -x c++ -E -CC -DF_CPU=32000000L -DARDUINO=10803 -DARDUINO_ARC32_TOOLS -DARDUINO_ARCH_ARC32 -D__CPU_ARC__ -DCLOCK_SPEED=32 -DCONFIG_SOC_GPIO_32 -DCONFIG_SOC_GPIO_AON -DINFRA_MULTI_CPU_SUPPORT -DCFW_MULTI_CPU_SUPPORT -DHAS_SHARED_MEM "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/system/libarc32_arduino101/common" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/system/libarc32_arduino101/drivers" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/system/libarc32_arduino101/bootcode" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/system/libarc32_arduino101/framework/include" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/cores/arduino" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/variants/arduino_101" "/var/folders/61/y8t759ms0f5934qhbz2qb21r0000gn/T/arduino_build_348850/sketch/Ada_CurieBot_RC.ino.cpp" -o "/dev/null"
"/Users/ihelpu2c/Library/Arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-g++" -c -mcpu=quarkse_em -mlittle-endian -g -Os -Wall -fno-reorder-functions -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -fno-defer-pop -Wno-unused-but-set-variable -Wno-main -ffreestanding -fno-stack-protector -mno-sdata -ffunction-sections -fdata-sections -fsigned-char -fno-rtti -fno-exceptions -fcheck-new -D__ARDUINO_ARC__ -std=c++11 -DCONFIG_BLUETOOTH_PERIPHERAL -DCONFIG_BLUETOOTH_CENTRAL -DCONFIG_BLUETOOTH_GATT_CLIENT -w -x c++ -E -CC -DF_CPU=32000000L -DARDUINO=10803 -DARDUINO_ARC32_TOOLS -DARDUINO_ARCH_ARC32 -D__CPU_ARC__ -DCLOCK_SPEED=32 -DCONFIG_SOC_GPIO_32 -DCONFIG_SOC_GPIO_AON -DINFRA_MULTI_CPU_SUPPORT -DCFW_MULTI_CPU_SUPPORT -DHAS_SHARED_MEM "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/system/libarc32_arduino101/common" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/system/libarc32_arduino101/drivers" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/system/libarc32_arduino101/bootcode" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/system/libarc32_arduino101/framework/include" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/cores/arduino" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/variants/arduino_101" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/libraries/SPI/src" "/var/folders/61/y8t759ms0f5934qhbz2qb21r0000gn/T/arduino_build_348850/sketch/Ada_CurieBot_RC.ino.cpp" -o "/dev/null"
"/Users/ihelpu2c/Library/Arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-g++" -c -mcpu=quarkse_em -mlittle-endian -g -Os -Wall -fno-reorder-functions -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -fno-defer-pop -Wno-unused-but-set-variable -Wno-main -ffreestanding -fno-stack-protector -mno-sdata -ffunction-sections -fdata-sections -fsigned-char -fno-rtti -fno-exceptions -fcheck-new -D__ARDUINO_ARC__ -std=c++11 -DCONFIG_BLUETOOTH_PERIPHERAL -DCONFIG_BLUETOOTH_CENTRAL -DCONFIG_BLUETOOTH_GATT_CLIENT -w -x c++ -E -CC -DF_CPU=32000000L -DARDUINO=10803 -DARDUINO_ARC32_TOOLS -DARDUINO_ARCH_ARC32 -D__CPU_ARC__ -DCLOCK_SPEED=32 -DCONFIG_SOC_GPIO_32 -DCONFIG_SOC_GPIO_AON -DINFRA_MULTI_CPU_SUPPORT -DCFW_MULTI_CPU_SUPPORT -DHAS_SHARED_MEM "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/system/libarc32_arduino101/common" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/system/libarc32_arduino101/drivers" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/system/libarc32_arduino101/bootcode" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/system/libarc32_arduino101/framework/include" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/cores/arduino" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/variants/arduino_101" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/libraries/SPI/src" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/libraries/Wire/src" "/var/folders/61/y8t759ms0f5934qhbz2qb21r0000gn/T/arduino_build_348850/sketch/Ada_CurieBot_RC.ino.cpp" -o "/dev/null"
"/Users/ihelpu2c/Library/Arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-g++" -c -mcpu=quarkse_em -mlittle-endian -g -Os -Wall -fno-reorder-functions -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -fno-defer-pop -Wno-unused-but-set-variable -Wno-main -ffreestanding -fno-stack-protector -mno-sdata -ffunction-sections -fdata-sections -fsigned-char -fno-rtti -fno-exceptions -fcheck-new -D__ARDUINO_ARC__ -std=c++11 -DCONFIG_BLUETOOTH_PERIPHERAL -DCONFIG_BLUETOOTH_CENTRAL -DCONFIG_BLUETOOTH_GATT_CLIENT -w -x c++ -E -CC -DF_CPU=32000000L -DARDUINO=10803 -DARDUINO_ARC32_TOOLS -DARDUINO_ARCH_ARC32 -D__CPU_ARC__ -DCLOCK_SPEED=32 -DCONFIG_SOC_GPIO_32 -DCONFIG_SOC_GPIO_AON -DINFRA_MULTI_CPU_SUPPORT -DCFW_MULTI_CPU_SUPPORT -DHAS_SHARED_MEM "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/system/libarc32_arduino101/common" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/system/libarc32_arduino101/drivers" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/system/libarc32_arduino101/bootcode" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/system/libarc32_arduino101/framework/include" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/cores/arduino" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/variants/arduino_101" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/libraries/SPI/src" "-I/Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/libraries/Wire/src" "/var/folders/61/y8t759ms0f5934qhbz2qb21r0000gn/T/arduino_build_348850/sketch/Ada_CurieBot_RC.ino.cpp" -o "/var/folders/61/y8t759ms0f5934qhbz2qb21r0000gn/T/arduino_build_348850/preproc/ctags_target_for_gcc_minus_e.cpp"
/Users/ihelpu2c/Desktop/Adafruit_Curie_Bot-master/Ada_CurieBot_RC/Ada_CurieBot_RC.ino:20:34: fatal error: Adafruit_MotorShield.h: No such file or directory
#include <Adafruit_MotorShield.h>
^
compilation terminated.
Using library SPI at version 1.0 in folder: /Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/libraries/SPI
Using library Wire at version 1.0 in folder: /Users/ihelpu2c/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/libraries/Wire
exit status 1
Error compiling for board Arduino/Genuino 101.
ihelpu2c
Posts: 3 Joined: Sat Jun 10, 2017 3:26 pm
Post
by ihelpu2c » Thu Jun 15, 2017 10:58 am
Thank you. Now my bot is working. I didn't know what I was doing wrong.
adafruit2
Posts: 22148 Joined: Fri Mar 11, 2005 7:36 pm
Post
by adafruit2 » Thu Jun 15, 2017 2:13 pm
awesome :)
jmellon2
Posts: 3 Joined: Wed Jan 03, 2018 2:16 pm
Post
by jmellon2 » Sun Jan 07, 2018 9:42 pm
I am also trying to connect the curiebot to bluetooth and have followed along with the directions, but I cannot get the downloaded sketchbook into my library. Specifically, this step: "Then, place this folder in your Arduino sketches directory and open the sketch Ada_CurieBot_RC." I have tried multiple ways, but nothing works. Thanks.
adafruit2
Posts: 22148 Joined: Fri Mar 11, 2005 7:36 pm
Post
by adafruit2 » Mon Jan 08, 2018 3:24 pm
hiya post some screenshots of what you see on your computer, what errors do you get?
Please be positive and constructive with your questions and comments.