Skip to content

Latest commit

 

History

History
43 lines (40 loc) · 1.75 KB

workflow.md

File metadata and controls

43 lines (40 loc) · 1.75 KB

One-off setup

  • Install zephyr following this page.
    • In theory, only west is needed. The other contents (including zephyr) will be cloned into the project by west.
    • To use west, each shell needs $ source ~/zephyrproject/.venv/bin/activate.
  • Clone this git repo locally:
    mkdir -p ~/MyProjects
    cd ~/MyProjects
    west init -m https://github.com/jeru/blue-cat blue-cat-west-ws
    cd blue-cat-west-ws
    west update
  • For the blue-cat module:
    cd blue-cat/apps/blue_cat
    west build -b blue_cat .
  • For the blue-cat module:
    cd blue-cat/apps/chihuahua
    west build -b chihuahua .
  • nRF52840 dongle accessibility by the nRF Connect Desktop BLE app (since I never got any luck on nRF Connect Moible when setting up the advertising): NordicSemi has a packet for the udev rules. Install it.

Each edit-test iteration

For the blue-cat module (after setting up the SWO messages in the codelab):

apps/blue_cat$ west flash && west view-swo

For the chihuahua module:

apps/chihuahua$ west flash && west espressif monitor

Codelabs

Major reason to write these codelabs: a way for the future "me" to resume the project after things are forgotten.

  1. Blink an nRF52840 module.
  2. west flash and SWO messages.
  3. Connection of the nRF52840 module.
  4. Blink an ESP32C3 module.
  5. Connection of the ESP32C3 module (as central) is similar to the other (as peripheral), major difference being switching advertising to scanning.