energia / msp432r-core

MSP432 EMT core for the production silicon (RED LaunchPad only)
2 stars 5 forks source link

Porting BLE Library to MSP432 Red #38

Open rei-vilo opened 4 years ago

rei-vilo commented 4 years ago

This is a continuation of #10.

The BLE library used to work with release 5.23.1 but no longer with latest release 5.29.0.

Building the example SerialOverBLE against the MSP432P401R fails with the following error:

In file included from /Users/ReiVilo/Documents/Projets/Energia/libraries/BLE/src/BLE.cpp:13:0:
/Users/ReiVilo/Documents/Projets/Energia/libraries/BLE/src/BLEBoard.h:16:44: fatal error: variants/MSP_EXP432P401R/Board.h: No such file or directory
 #include "variants/MSP_EXP432P401R/Board.h"
                                            ^
compilation terminated.
StefanSch commented 4 years ago

i think this should be solved in the library side, e.g. with

replace in BLEboard.h

include "variants/MSP_EXP432P401R/Board.h"

with

include "Board.h"

and delete board.h

Does compile without errors (on windows)

rei-vilo commented 4 years ago

Thank you for the answer.

Yes, I did three changes:

The SerialOverBLE now builds. However, the CC2650 doesn't show up on the list of BLE devices of a BLE utility like nRF Connect.

rei-vilo commented 4 years ago

I refreshed the CC2650 with the default NP image, as it was programmed with the specific version for the edX course Real-Time Bluetooth Networks: Shape the World — MOOC edX UTAustinX UT.RTBN.12.01x.

rei-vilo commented 4 years ago

I created the pull request https://github.com/ti-simplelink/ble_energia/pull/8 with the three fixes, after testing it on a MSP432P401R LaunchPad (red) with MSP432P401R board package 5.29.0.

@robertinant Feel free to validate it.