This firmware project is made as counterpart to the Immunity App. It uses the Nordic UART Service (NUS) to receive data and directly mirroring it back to the sender.
-
Install Visual Studio Code (VS Code)
-
Open VS Code
-
Open the "Extensions" menu - using the icon in the left vertical menu bar or by pressing CTRL+SHIFT+X
-
Search and start installation of the "nRF Connect Extension Pack" extension.
-
Install nRF Connect for Desktop
-
Open nRF Connect for Desktop
-
In the Apps part install and open "Toolchain Manager"
-
In the Toolchain Manager install current nRF Connect SDK
-
Clone this repository with
git clone https://github.com/panasonic-industry-europe/immunity_firmware.git -
Open the created folder with VS Code.
-
VS Code will ask if the project should be added to the list of visible applications. Select Yes. Please note that this question will disappear after a few seconds. If you miss to click on yes in time you have to close VS Code and open the project again to trigger this dialog again.
-
VS Code will ask for an installation of nRF Connect SDK. Click on "Select" and select your nRF Connect SDK version.
-
VS Code will ask for a toolchain installation. Click on Select and chose the version you are using.
-
Open the "nRF Connect" menu - using the icon in the left vertical menu bar or by pressing CTRL+ALT+N
-
In the "Applications" menu click on "Add Build Configuration"
-
A form will open where the board configuration can be selected. Following Options can be selected depending of which Bluetooth module should be used:
- PAN1780: nrf52840dk_nrf52840
- PAN1781: nrf52833dk_nrf52820
- PAN1782: nrf52833dk_nrf52833
-
Click on "Generate Config". Now all dependencies will be setup and the project is ready for build, flash and debug tasks.
- Open the "nRF Connect" menu - using the icon in the left vertical menu bar or by pressing CTRL+ALT+N
- In the "ACTIONS" menu click on build
- After build the result is available under /build/zephyr/zephyr.bin
-
Connect the Bluetooth Module to a debugger.
-
Open the "nRF Connect" menu - using the icon in the left vertical menu bar or by pressing CTRL+ALT+N
-
In the "ACTIONS" menu click on "Flash" or "Erase and Flash". If these actions are not visible click on the "Refresh Applications" icon in the "APPLICATIONS" menu.

