Other Parts Discussed in Thread: CC2650, CC2640, BLE-STACK
Tool/software: Code Composer Studio
I have been unsuccessful getting any BLE sample apps to run on the Launchpad CC2650 board. (we cannot use the 2nd gen part) The pre-loaded code seems to work but of course there is no source reference for that. I suspect it is an old binary that might not even build correctly today with the latest tool versions.
I am beginning to suspect backwards-compatibility tool/library issues since you consider the CC2640/50 legacy products.
I have tried the simple_peripheral_cc2650lp_app, simple_peripheral_cc2650lp_app, simple_peripheral_cc2650lp_stack, sensortag_cc2650lp_app, and sensortag_cc2650lp_stack. Nothing works.
Focusing on simple_peripheral_cc2650lp_stack:
Compiler: TI v5.2.6
RTOS: Tried 2.21.0.06 and 2.20.1.08
XDCTools: 3.32.2.25_core (also tried 3.32.1.22 and 3.32.0.06)
BLE_SDK: 2_2_1_18
2) There is no linker file associated with this project when loaded:
A) Searching the project, there is no main() to be found and the debugger starts at startup_entry(). The arg values passed to it are invalid which is probably the reason for:
* The code does not return from CommonROM_Init(), probably because we are missing setup info
* If I skip that call, the code seems to progress - but the call to stack_main(arg1) is clearly invalid since arg1 is bad.
B) The BLE code looks like it needs missing definitions. I added HOST_CONFIG=1 and PERIPHERAL_CFG=1, just because it looked like they should be there, but I am not sure. What is the deal here?
C) If I add the appropriate linker file I get a "missing ResetISR() error" which occurs because the link script calls that out as a starting point. Without a main() this cannot work because we still don't have the parameters to pass to startup_entry().
3) Can you verify that the packages still work with this board?
All I need is to get one successful build that makes the Launchpad work. If you can, A list of EXACTLY what versions of the various libraries and packages that are used would probably solve the issue.
I have scanned your guides until I am dizzy and I have found no path to victory. Guides that are for the CC2650 refer to the 2nd gen part etc.
4) What is the difference between the BLE _app and _stack sample applications?
simple_peripheral project files: