Comments (10)
Is BLE Nano supposed to work stand-alone or only as an add-on to an Arduino UNO (or similar) board?
It's suppose to work stand-alone.
I can reproduce the error with Arduino IDE 1.6.6, but 1.6.5 is fine:
1.6.5
/Users/smistry/Library/Arduino15/packages/RFduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -DBLE_STACK_SUPPORT_REQD -DDEBUG_NRF_USER -DNRF51 -DBOARD_PCA10001 -mcpu=cortex-m0 -DF_CPU=16000000 -DARDUINO=10605 -mthumb -I/Users/smistry/Documents/Arduino/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822 -I/Users/smistry/Documents/Arduino/hardware/RBL/RBL_nRF51822/variants/BLE_Nano -I/Users/smistry/Documents/Arduino/libraries/MemoryFree -I/Users/smistry/Documents/Arduino/hardware/RBL/RBL_nRF51822/libraries/SPI -I/Users/smistry/Documents/Arduino/libraries/BLEPeripheral -I/Users/smistry/Documents/Arduino/hardware/RBL/RBL_nRF51822/system/CMSIS/CMSIS/Include -I/Users/smistry/Documents/Arduino/hardware/RBL/RBL_nRF51822/nrf51822_SDK/Include -I/Users/smistry/Documents/Arduino/hardware/RBL/RBL_nRF51822/nrf51822_SDK/Include/app_common -I/Users/smistry/Documents/Arduino/hardware/RBL/RBL_nRF51822/nrf51822_SDK/Include/ble -I/Users/smistry/Documents/Arduino/hardware/RBL/RBL_nRF51822/nrf51822_SDK/Include/ble/ble_services -I/Users/smistry/Documents/Arduino/hardware/RBL/RBL_nRF51822/nrf51822_SDK/Include/ble/rpc -I/Users/smistry/Documents/Arduino/hardware/RBL/RBL_nRF51822/nrf51822_SDK/Include/gcc -I/Users/smistry/Documents/Arduino/hardware/RBL/RBL_nRF51822/nrf51822_SDK/Include/s110 -I/Users/smistry/Documents/Arduino/hardware/RBL/RBL_nRF51822/nrf51822_SDK/Include/sd_common -I/Users/smistry/Documents/Arduino/hardware/RBL/RBL_nRF51822/nrf51822_SDK/Include/sdk /var/folders/5d/pmvtw7p579n5npm6p421qf540000gn/T/build3721415366949437813.tmp/test.cpp -o /var/folders/5d/pmvtw7p579n5npm6p421qf540000gn/T/build3721415366949437813.tmp/test.cpp.o
1.6.6
"/Users/smistry/Library/Arduino15/packages/RFduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -w -x c++ -M -MG -MP -DF_CPU=16000000 -DARDUINO=10606 -DARDUINO_RBL_NRF51822_NANO -DARDUINO_ARCH_RBL_NRF51822 -mthumb "-I/Users/smistry/Documents/Arduino/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822" "-I/Users/smistry/Documents/Arduino/hardware/RBL/RBL_nRF51822/variants/BLE_Nano" "-I/Users/smistry/Documents/Arduino/hardware/RBL/RBL_nRF51822/libraries/SPI" "-I/Users/smistry/Documents/Arduino/libraries/BLEPeripheral" "/var/folders/5d/pmvtw7p579n5npm6p421qf540000gn/T/build8ed0b53cabcea151c31d778349f0b8b7.tmp/sketch/test.ino.cpp"
Something has changed between IDE versions, -DNRF51
is no longer passed in. BLEPeripheral use this define to determine nRF51822 or nRF8001 compile mode.
It is set in platforms.txt
here: https://github.com/RedBearLab/nRF51822-Arduino/blob/S130/arduino-1.6.x/hardware/RBL/RBL_nRF51822/platform.txt#L20
A workaround for now is to use 1.6.5 of the IDE until this is resolved in this library or the RBL core.
from arduino-bleperipheral.
Thanks for the info, this made me happy, BLEPeripheral API is much nicer than the rest :) I'll try to debug this issue, though my experience is a bit lacking.
From 1.6.6 Changelog:
- Introducing arduino-builder, a command line tool that properly calls gcc. Fixes lots of issues about buggy preprocessing.
from arduino-bleperipheral.
I have tried Arduino 1.6.7 hourly build and the issue disappears. However, to compile successfully I had to add /core/
to the paths used by the combining step of compilation: ncr/nRF51822-Arduino@2ad87fe. Not sure why.
from arduino-bleperipheral.
@ncr awesome progress so far!
Any suggestions on how to move forward? Are you planning on submitting a pull request to RBL?
What error do you get without using your forked version?
from arduino-bleperipheral.
Without the patch, the following lengthy line fails because both syscalls.c.o
and startup_nrf51822.c.o
are placed in the {build.path}/core
directory.
"/Users/ncr/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -Os -Wl,--gc-sections -mcpu=cortex-m0 -mthumb "-T/Users/ncr/Documents/Arduino/hardware/RBL/RBL_nRF51822/variants/BLE_Nano/linker_scripts/gcc/RBL_nRF51822.ld" --specs=nano.specs "-Wl,-Map,/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/blego.ino.map" -o "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/blego.ino.elf" "-L/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp" -lm -lgcc -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/syscalls.c.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/sketch/blego.ino.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/SPI/SPI.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLEAttribute.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLEBondStore.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLECentral.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLECharacteristic.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLEConstantCharacteristic.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLEDescriptor.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLEDevice.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLEFixedLengthCharacteristic.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLEHID.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLEHIDPeripheral.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLEHIDReportMapCharacteristic.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLEHIDReportReferenceDescriptor.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLEKeyboard.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLELocalAttribute.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLEMouse.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLEMultimedia.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLEPeripheral.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLEProgmemConstantCharacteristic.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLERemoteAttribute.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLERemoteCharacteristic.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLERemoteService.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLEService.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLESystemControl.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLETypedCharacteristics.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLEUtil.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/BLEUuid.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/EddystoneBeacon.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/iBeacon.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/nRF51822.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/nRF8001.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/utility/aci_queue.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/utility/acilib.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/utility/hal_aci_tl.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/BLEPeripheral/utility/lib_aci.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/libraries/Servo/Servo.cpp.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/startup_nrf51822.c.o" "/var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/core/core.a" -Wl,--end-group
arm-none-eabi-g++: error: /var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/syscalls.c.o: No such file or directory
arm-none-eabi-g++: error: /var/folders/6w/rlm_5ddx4tx4qc_b1dlcx9zm0000gn/T/build5cf3396e0223707169cc3a6f5fd954d1.tmp/startup_nrf51822.c.o: No such file or directory
The PR: RedBearLab/nRF51822-Arduino#39
from arduino-bleperipheral.
@ncr thanks!
I belive RBL is no longer supporting the master branch and S130 is published via the board manager. @Cheong2K is this correct?
from arduino-bleperipheral.
We support S130 branch and will add to the board manager very soon for the 1.6.6 IDE.
from arduino-bleperipheral.
@sandeepmistry Glad to be of help!
from arduino-bleperipheral.
I'm still getting this. I'm trying to use GitHub actions with this workflow. Does anybody know how to fix this problem?
from arduino-bleperipheral.
Never mind, I was running code in the examples, I just removed that code.
from arduino-bleperipheral.
Related Issues (20)
- Can't detect remote devices
- NRF5: CCCDs aren't persisted for bonded peers
- How to set service name ? HOT 1
- ANCS Implementation canWrite is false
- Speed / baudrate of the BLE connection?
- Numpad key codes, anyone?
- How to send more than 20bytes in each transaction with bleSerial.write()?
- Olimexino-nano + Olimexino-nano-ble freezes after begin()
- Why is my BLE Service not appearing after a successful flash? HOT 2
- [Question] Sending long string BLECharacteristic
- Abandoned project?
- nrf52840 HOT 4
- Freeze on blePeripheral.begin(); HOT 7
- BLE Scan
- softdevice_sys_evt_handler_set()
- RFDuino using BLEPerfipheralObserver to scan for iBeacons - Issue HOT 2
- Update iBeacon broadcast packet after starting
- Setting chip to idle state in between measurements
- nRF52832 Supported?
- UART Rx hangs after a few seconds when BLEPeripheral.begin(); is called on nRF51802
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-bleperipheral.