Skip to content

New BLE Preview #329

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

Closed
wants to merge 7 commits into from
Closed

New BLE Preview #329

wants to merge 7 commits into from

Conversation

noelpaz
Copy link
Contributor

@noelpaz noelpaz commented Oct 21, 2016

This is a test of the new BLE from @sgbihu . This is not to be merged.
@SidLeung @calvinatintel @bigdinotech @russmcinnis @eriknyquist Please review.

sgbihu and others added 7 commits October 21, 2016 11:43
Know issues:
1. Memory issue. Some times the memcmp not work correct.
2. Central not complete. But can do scan.
1. Add the auto discover
2. Resolve the connect request was not scheduled issue
3. Implement the read/write request
Note: need change the compiler parameter in platform.txt.
"compiler.c.flags=-c -std=gnu11 -mcpu=quarkse_em -mlittle-endian -g -Os ..." to
"compiler.c.flags=-c -std=gnu11 -mcpu=quarkse_em -mlittle-endian -g -O0"
"compiler.cpp.flags=-c -mcpu=quarkse_em -mlittle-endian -g -Os ..." to
"compiler.cpp.flags=-c -mcpu=quarkse_em -mlittle-endian -g -O0 ..."
Recompile libarc32drv_arduino101.a
 into new_ble

Conflicts:
	variants/arduino_101/libarc32drv_arduino101.a
@noelpaz
Copy link
Contributor Author

noelpaz commented Oct 21, 2016

I apologize for the multiple commits. I will squash them ASAP.

@noelpaz
Copy link
Contributor Author

noelpaz commented Oct 21, 2016

@SidLeung @sgbihu Klockworks is not able finish the scan. I rebuilt libarc32drv_arduin101.a. On the IDE a sketch compiles fine but I am getting the following error from the klockwork Scan.

~/arc32/bin/arc-elf32-g++ -c -I system/libarc32_arduino101/common -I variants/arduino_101 -I system/libarc32_arduino101/drivers -I system/libarc32_arduino101/bootcode -I system/libarc32_arduino101/framework/include -I cores/arduino -I libraries/SPI/src -I libraries/SD/src -I libraries/CurieBLE/src -I libraries/TFT/src -I libraries/CurieIMU/src -I libraries/Ethernet/src -I libraries/Adafruit_Motor_Shield_V2_Library/utility -I libraries/Wire -I libraries/Time -I libraries/CurieSoftwareSerial/src -DARDUINO=10607 -mARCv2EM -mav2em -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 -std=c++11 -DCONFIG_BLUETOOTH_PERIPHERAL -DCONFIG_BLUETOOTH_CENTRAL -DCONFIG_BLUETOOTH_GATT_CLIENT -ffunction-sections -fdata-sections -fsigned-char -MMD -D__ARDUINO_ARC__ -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 -DF_CPU=32000000L -I/var/jenkins/workspace/Pre-merge_KW_Corelibs/corelibs/system/libarc32_arduino101/common -I/var/jenkins/workspace/Pre-merge_KW_Corelibs/corelibs/system/libarc32_arduino101/drivers -I/var/jenkins/workspace/Pre-merge_KW_Corelibs/corelibs/system/libarc32_arduino101/bootcode -I/var/jenkins/workspace/Pre-merge_KW_Corelibs/corelibs/system/libarc32_arduino101/framework/include -fpermissive -c -o libraries/BLE/src/BLEServiceImp.o libraries/BLE/src/BLEServiceImp.cpp
In file included from libraries/BLE/src/BLEServiceImp.cpp:20:0:
libraries/BLE/src/internal/ble_client.h:110:1: error: ‘BLE_STATUS_T’ does not name a type
 BLE_STATUS_T errorno_to_ble_status(int err);
 ^
In file included from libraries/BLE/src/ArduinoBLE.h:33:0,
                 from libraries/BLE/src/BLEServiceImp.h:23,
                 from libraries/BLE/src/BLEServiceImp.cpp:22:
libraries/BLE/src/BLEDevice.h:289:5: error: ‘BLE_STATUS_T’ does not name a type
     BLE_STATUS_T addService(BLEService& attribute);
     ^
libraries/BLE/src/BLEDevice.h:300:5: error: ‘BLE_STATUS_T’ does not name a type
     BLE_STATUS_T startAdvertising();
     ^
make: *** [libraries/BLE/src/BLEServiceImp.o] Error 1
Build step 'Execute shell' marked build as failure
Finished: FAILURE

@eriknyquist
Copy link
Contributor

Hey @noelpaz, I was able to push mine eventually, try it and see if you still get the compile error #328

@noelpaz noelpaz self-assigned this Oct 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants