Giter Site home page Giter Site logo

Comments (10)

sandeepmistry avatar sandeepmistry commented on July 30, 2024

@ncr

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.

ncr avatar ncr commented on July 30, 2024

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.

ncr avatar ncr commented on July 30, 2024

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.

sandeepmistry avatar sandeepmistry commented on July 30, 2024

@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.

ncr avatar ncr commented on July 30, 2024

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.

sandeepmistry avatar sandeepmistry commented on July 30, 2024

@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.

Cheong2K avatar Cheong2K commented on July 30, 2024

We support S130 branch and will add to the board manager very soon for the 1.6.6 IDE.

from arduino-bleperipheral.

ncr avatar ncr commented on July 30, 2024

@sandeepmistry Glad to be of help!

from arduino-bleperipheral.

KTibow avatar KTibow commented on July 30, 2024

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.

KTibow avatar KTibow commented on July 30, 2024

Never mind, I was running code in the examples, I just removed that code.

from arduino-bleperipheral.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.