OverviewReal Connect is a VS Code extension designed to simplify the development workflows of wireless applications based on Realtek BT/WiFi SDKs. It provides a streamlined interface to import SDKs, create projects, download images and monitor the console output of the target device. Dependency Extensions Installation
Quick Start
Build Environment SetupIntroductionThis chapter illustrates how to build Realtek's SDK under GCC environment. It focuses on both Windows platform and Linux distribution. The build and download procedures are quite similar between Windows and Linux operating systems. For Windows, Windows 10 64-bit is used as a platform. For Linux server, Ubuntu 16.04 64-bit is used as a platform. Preparing GCC EnvironmentWindowsPowerShell can be used as a GCC build environment on Windows after the following software list is installed.
There are two ways to install these Windows software. Install software list by Chocolatey (Recommend).Chocolatey is a package manager for Windows, which can manage the complete lifecycle of software packages. If you can run PowerShell with administrator privileges, using Chocolatey to install packages is more convenient. Install Chocolatey. First, run Windows PowerShell as administrator. If you have correct privilege, the title of opening terminal will be "Administrator: Windows PowerShell". Execute the following two commands in Administrator mode:
Install packages.
Install software manually (For users without admin rights)If do not have administrator privileges, you will need to download each binary zip file one by one. Remember to add the installation paths to the Windows environment variables after unzipping them.
LinuxOn Linux, 32-bit Linux is not supported because of the toolchain. The packages listed below should be installed for the GCC environment:
Some of the packages above may have been pre-installed in your operating system. You can either use package manager or type the corresponding version command on terminal to check whether these packages have already existed. If not, make them installed. $ ls -l /bin/sh Starting from Ubuntu 6.10, dash is used by default instead of bash. You can use $ ls -l /bin/sh command to check whether the system shell is bash or dash. (Optional) If the system shell is dash, use $ sudo dpkg-reconfigure dash command to switch from dash to bash. If the system shell is bash, continue to do the subsequent operations.
Use ld -v command to check if binutils has been installed. If not, the following error may occur TroubleshootingChoco is responsible for managing and installing software, which is similar to apt-get in ubuntu. When " cannot find ***.exe, make sure you typed the name correctly and then try again" appears, you can try instruction "choco install <package_name>" to install. If error messages such as "access denied" or "permission denied" appears when using "choco install", please ensure that you have opened Windows PowerShell as administrator. In the event not have the required administrator access, you will need to install the packages manually. Additionally, remember to add the paths to Windows environment variables after installing manually. For multi-version Python host, command "update-alternatives --install /usr/bin/python python /usr/bin/python3.x 1" can be used to select Python of specific version 3.x on Linux, where x represents a desired version number. On Windows, you can adjust the priority of the Python environment variables to ensure the correct version is used. This involves modifying the system's PATH environment variable to prioritize the desired Python installation. If the error "command 'python' not found" appears on Linux during compilation, type command "ln -s /usr/bin/python3 /usr/bin/python" first to make sure that Python3 is used when running Python. Install ToolchainWindowsThis section introduces the steps to prepare the toolchain environment.
The unzip folders should stay the same with the figure above and do NOT change them, otherwise you need to type -D TOOLCHAIN_DIR=xxx each time or modify the toolchain directory in cmake/toolchain/ameba-toolchain-xxx.cmake to customize the path. If toolchain path don't match to cmake definition, a downloading task will be created automatically. The toolchain will be downloaded and extracted to default directory. LinuxThis section introduces the steps to prepare the toolchain environment.
The unzip folders should stay the same with the figure above and do NOT change them, otherwise you need to type -D TOOLCHAIN_DIR=xxx each time or modify the toolchain directory in cmake/toolchain/ameba-toolchain-xxx.cmake to customize the path. |