SWRU581 March   2021 CC2564C , CC2564MODA , CC2564MODN , WL1831

 

  1.   Trademarks
  2. Introduction
  3. Bluetopia
  4. Bluetopia Platform Manager (BluetopiaPM)
  5. Hardware Requirements
  6. Software Requirements
  7. Stack Supported Features
  8. TI BluetopiaPM Stack Linux Architecture
  9. Installing Bluetopia Platform Manager
  10. BluetopiaPM Architecture
    1. 9.1 Installation Directory Structure
    2. 9.2 BluetopiaPM Structure
  11. 10The BluetopiaPM Server – Pairing Mode
  12. 11Platform Integration
    1. 11.1 Build BluetopiaPM
      1. 11.1.1 Modification of the PM Build Environment
  13. 12Adding BluetopiaPM to the SD Card
    1. 12.1 Sample Applications
    2. 12.2 Gstreamer Plugin
    3. 12.3 VNET Plugin
      1. 12.3.1 Voice Over BLE Python Script
    4. 12.4 Init-scripts
    5. 12.5 Bluetooth Hardware Configuration Script
  14. 13Terminal Connection
  15. 14Running a Sample Application
  16. 15BluetopiaPM Samples
  17.   A C256X EVM Modifications for COM8 Connector
  18.   B Bluetopia Build Log for Reference
  19.   C Sample Run
  20.   D Using the CC256x Service Pack With Linux (TI-BT-4-2-STACK-LINUX-ADDON)

Modification of the PM Build Environment

When making changes in the PM environment, such as, adding files or when wanting to remove sample applications from the distribution, you will need to change the following files: In <INSTALLATION_DIR>/build/proj.

  • plat-rules.mak - This file compile the sample apps and the libraries, you'll need to add/remove the section that you want.
Note: Some of the sample applications have generic build process so they are being held in variable in the platform.mak file.
$(PMBINDIR)/%:  $(OBJDIR)/%_C.o $(PMLIBDIR)/libBTPM_C.a
$(PMLIBDIR)/libBTPM_HAL_C.a
	@echo LN $(^F) -o $(@F)
	@$(CC)  -L$(LIBDIR) $^ $(LDFLAGS) -o $@

when using %, the % will be replaced with the sample apps from the variable.

a) example for deleting sample application:

$(PMBINDIR)/LinuxAUDM:  $(OBJDIR)/LinuxAUDM_C.o
$(OBJDIR)/AudioDecoderPM_C.o $(OBJDIR)/AudioEncoderPM_C.o
$(PMLIBDIR)/libBTPM_C.a $(PMLIBDIR)/libBTPM_HAL_C.a  
	@echo LN $(^F) -o $(@F)
	@$(CC)  -L$(LIBDIR) $^ $(LDFLAGS) -o $@

removing this section will disable the compilation of the LinuxAUDM sample application.

b) example for adding sample application:

$(PMBINDIR)/LinuxYOURAPP:  $(OBJDIR)/LinuxYOURAPP_C.o
$(PMLIBDIR)/libBTPM_C.a   $(PMLIBDIR)/libBTPM_HAL_C.a
	@echo LN $(^F) -o $(@F)
	@$(CC)  -L$(LIBDIR) $^ $(LDFLAGS) -o $@

be sure to add all the libs and object that you need to compile your application.

Note: Make sure not to remove libBTPS* files.
  • platform.mak - This file creates some variables that hold the sample apps in order to compile them in the plat-rules.mak file, you'll need to add/remove the sample that you want.

Build

  • Run make command to build the environment in the ~/build directory