- Download SEGGER from here
- Follow this video to install the Espressif IDF VS Code Extension
- Download the nRF5 SDK compatible with your SEGGER version from here
-
Navigate to your nRF5 SDK path and create a new folder named
myexp
or any name of your choice:cd /your_nrf_sdk_path/examples/myexp
Note: This repository only includes the SoftDevice for nRF52833. For other PCA numbers, copy the SoftDevice files from the nRF5 SDK and modify the
main.c
functions accordingly. -
Clone the repository:
git clone https://github.com/Mio-Atse/nRF-to-ESP-BLE.git
-
Open SEGGER, select "Open Solution" and load the project file:
myexp/nRF-to-ESP-BLE/pca10100/s113/ses/ble_app_uart_pca_10100_s113.emProject
-
Build the project and flash it to the nRF52833 using the "Connect J-Link" and "Download" options.
-
Use JlinkRTT Viewer to monitor the USB serial port and ensure the flashing process is successful.
-
Open the folder:
myexp/nRF-to-ESP-BLE/spp_client
-
In the bottom section, select your ESP device and type. Then, run
>menuconfig
from the VSCode command palette. -
Click on "Build, Flash and Monitor" from the menu.
-
If connected correctly, you should see the following log in the terminal:
I (3411) NimBLE: Successfully subscribed to notifications
- Press
1
or2
to switch between data transmitted from nRF52833 to ESP32. - Modify the
main.c
file on the nRF52833 according to your data transmission needs. - The last data sent from nRF52833 can be saved to ESP Flash NVM and observed in terminal logs after a reset.