error from Ada_CurieBot_RC

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
jimhorning
 
Posts: 5
Joined: Sat Apr 08, 2017 8:12 pm

Re: error from Ada_CurieBot_RC

Post by jimhorning »

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.

User avatar
smslaughter78
 
Posts: 4
Joined: Sat Apr 15, 2017 4:20 pm

Re: error from Ada_CurieBot_RC

Post by smslaughter78 »

Success!

Thanks Jim. It seems like the lines were correct, just swapped... 29 should have been at 50 and vice versa...

User avatar
z246800
 
Posts: 4
Joined: Thu Apr 13, 2017 1:41 am

Re: error from Ada_CurieBot_RC

Post by z246800 »

Worked for me too. Thanks Jim. Yea not sure exactly why that worked, but glad it did.

User avatar
jimhorning
 
Posts: 5
Joined: Sat Apr 08, 2017 8:12 pm

Re: error from Ada_CurieBot_RC

Post by jimhorning »

Adafruit_Curie_Bot.7z
Update Curiebot sketches
(8.07 KiB) Downloaded 31 times
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.

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: error from Ada_CurieBot_RC

Post by adafruit2 »

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

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: error from Ada_CurieBot_RC

Post by adafruit2 »

ok right code written - please try the latest codebase from github

https://github.com/adafruit/Adafruit_Curie_Bot

thank you :) :) :)

User avatar
ihelpu2c
 
Posts: 3
Joined: Sat Jun 10, 2017 3:26 pm

Re: error from Ada_CurieBot_RC

Post by ihelpu2c »

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.

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: error from Ada_CurieBot_RC

Post by Franklin97355 »

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.

User avatar
ihelpu2c
 
Posts: 3
Joined: Sat Jun 10, 2017 3:26 pm

Re: error from Ada_CurieBot_RC

Post by ihelpu2c »

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.

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: error from Ada_CurieBot_RC

Post by adafruit2 »

Code: Select all

fatal error: Adafruit_MotorShield.h: No such file or directory
 #include <Adafruit_MotorShield.h>
did you follow this guide to install the libraries?
https://learn.adafruit.com/curiebot-ard ... the-basics

User avatar
ihelpu2c
 
Posts: 3
Joined: Sat Jun 10, 2017 3:26 pm

Re: error from Ada_CurieBot_RC

Post by ihelpu2c »

Thank you. Now my bot is working. I didn't know what I was doing wrong.

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: error from Ada_CurieBot_RC

Post by adafruit2 »

awesome :)

User avatar
jmellon2
 
Posts: 3
Joined: Wed Jan 03, 2018 2:16 pm

Re: error from Ada_CurieBot_RC

Post by jmellon2 »

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.

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: error from Ada_CurieBot_RC

Post by adafruit2 »

hiya post some screenshots of what you see on your computer, what errors do you get?

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”