Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

AIROC™ CYW55573: Using Linux host processor to build and execute the Bluetooth® Linux-based code example - KBA238155

AIROC™ CYW55573: Using Linux host processor to build and execute the Bluetooth® Linux-based code example - KBA238155

Infineon_Team
Employee
Employee
50 replies posted 25 likes received 25 replies posted

This KBA describes the procedure to build and execute the Bluetooth® Linux-based code examples.

Ensure that the native Linux PC has the necessary build essentials to build the code examples. Pass the following command to install the build essentials, cross compiler, and build tools:

# sudo apt-get install git cmake gcc-aarch64-linux-gnu build-essential -y

Use any one of the following procedures to build the Bluetooth® Linux-based code examples:

  1. Command Line Interface (CLI)

Use the following github repo (which gives details on the CLI) to build the code examples:
https://github.com/Infineon/linux-example-btstack-wakeonle

  1. Using the shell script
  • Download the attached shell script to build and generate the executables.

- Select the appropriate option from the list to build and compile the code examples.

Infineon_Team_0-1690354062967.png

Figure 1 Linux code example

Infineon_Team_1-1690354143012.png

Figure 2 Wake-on-LE

- Copy the Bin_Files to the host device using the scp command.

$scp -r $HOME/Linux_CE/Bin_Files  

<TARGET_USER>@<TARGET_IP>:<TARGET_PATH>/

  • Use the following commands to execute the code example on the host device:

$cd  <TARGET_PATH>

$chmod + x  <APP_NAME>

$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<BTSTACK_LIB_PATH>

$ ./<APP_NAME> -c <COM_PORT> -b <HCI_BAUDRATE> -f <FW_DL_BAUDRATE> -r <GPIOCHIPx> <REGONPIN> -n -p <FW_FILE_NAME>.hcd -d 112233221144 -w <GPIOCHIPx> <DEV-WAKE> -h <GPIOCHIPx> <HOST-WAKE>

0 Likes
300 Views