![]() To do this, we’ll first start by selecting the “Add Folder to Workspace” from the File menu. Now we’re ready to create our VS Code workspace and add the nRF52 example application to it. Search for “C/C++” and install the official Extension provided by Microsoft: Navigate to the Extension tab highlighted in the screenshot:Īlternatively, you could access the Extensions by navigating to the following menu: Next, we need to install the C/C++ Extension within VS Code. You should see the VS Code window appear: ![]() Now we’re ready to launch VS Code via our shell script by double-clicking the shell script file: ![]() Open up a Terminal window in the same folder and run the following command The next step is to make the shell script executable so you can launch it from the Finder (by double-clicking). I named mine nRF_VSCode.sh and placed it on the Desktop for easy access. You can place this script anywhere on your machine. This allows us to define the locations of the SDK and Arm Toolchain in one place rather than in multiple places in the VS Code workspace, tasks, and configurations. Next, we’ll be creating a shell script to launch VS Code with the appropriate environment variables defined. Setting up the development environmentīefore we run VS Code, we need to perform a few configuration steps to make development easier.Įdit the file named /components/toolchain/gcc/Makefile.posix and change the GNU_INSTALL_ROOT to point to the location of your GNU Arm Embedded Toolchain installation: zip package and move the Application binary to your Applications folder. Once you’ve downloaded VS Code, extract the. Make sure you make note of this folder as well. Once you’ve downloaded the nRF5 SDK, place it in a folder of your choice and make note of the location ( /Users/mafaneh/nRF52/ in my case):ĭownloading and installing the GNU Arm Embedded Toolchain is also as simple as extracting the package ( 2 in my case) into a folder of your choice. Here’s a great tutorial on how to do that: After you install it, you need to make sure you have Xcode Command Line Tools installed. Apple Xcode (needed for GNU command-line development tools)ĭownloading Xcode and installing it is simple and can be done from the Mac App Store.The first step you need to do is download the following: Flashing the sample application to the nRF52 development kit.Creating the workspace and adding a sample nRF52 BLE app. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |