NRF24L+ STM8 Compatible Library
NRF24L+ STM8 Compatible Library (Linux, Windows)

This was ported from the mirf library in esp-idf-mirf, which is a port in itself. This only works with the STM8 peripherals library usinng Platformio's SDCC compatible version.

Documentation

Documentation at https://nicogutz.github.io/NRF24_STM8_Library

How to build STM8 MIRF

  1. (Windows) Install STLink Drivers
  2. Install PlatformIO
  3. Install the platformio extension on VSCode.
  4. Clone this repo and open with VSCode.
    $ git clone https://github.com/nicogutz/NRF24_STM8_Library
  5. Make sure [env:stm8sblack] is selected on the PlatformIO environments.
  6. Connect STLink and STM8, build and upload using the buttons at the bottom.

Usage

Please see MIRF for information.

Debugging

Debugging is currently only possible using Linux, there is a core issue with SDCC. This might get fixed in the future.

Notes regarding SPL Setup

Please see the src/stm8s_conf.h file for activating more SPL modules, if you wish to expand the functionality of this example. Only modules (like ADC, UART, etc.) that are activated in the configuration file are compiled in. In this example, only the GPIO module is active. Activating unused modules will result in a higher flash usage that will make even compilation even impossible for smaller chips, care must be taken.