Skip to main content

XIAO nRF52840-Sense with PlatformIO

Seeed Studio XIAO nRF52840 with PlatformIO

PlatformIO is a development platform that integrates many types of development boards and has good scalability. If the platform does not have the type you need, you can manually add the type of development board yourself. The code you write on Arduino can use it, just add the corresponding library

In this wiki , we wiil introduce how to install and run the sample code in PlatformIO

Use PlatformIO For XIAO nRF52840

Setup 1 . Install PlatformIO in official website

if you have not install software of PlatformIO , you can click on the link above.

Setup 2 . Creat any project in PlatformIO

Because the platform already has our XIAO ESP32S3 and XIAO ESP32C3 development board options, we can choose one of them to create our files. Of course, other files are also fine, it doesn't matter. The project name can also be chosen arbitrarily.

Operation oneOperation two
tip

Before this, I had already installed the XIAO ESP32C6 and XIAO nRF52840 installation package, so you can see that the image in operation two has the option for XIAO ESP32C6 and XIAO nRF52840, but you don't have it when you perform the operation

Setup 3 . Modify platformio.ini file

When you successfully create the PlatformIO file, there will be many files appearing in the left column. We can see a file named platform.ini. Next, we need to replace the contents inside it

Operation three

You need to copy the following code and replace the content in platform.ini file

[env]
platform = https://github.com/maxgerhardt/platform-nordicnrf52
framework = arduino

[env:xiaoblesense_arduinocore_mbed]
board = xiaoblesense

[env:xiaoble_arduinocore_mbed]
board = xiaoble
tip

Remember save the file , ctrl+s , it will loading

Setup 4 . Compile and Burn

Operation four

In the end of , if you have the same result following picture , that mean you add it XIAO nRF52840 Development Board successfuly.when you creat project again , the XIAO nRF52840 operations

Tech Support & Product Discussion

Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.

Loading Comments...