This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Demo complexity

Would it be possible to get simplified versions of the board support package. Following e.g. the macros is veeerry difficult. A simple version of the HeartRate demo with minimum historical baggage, just for the 52832 would be greatly appreciated.

Simple printf debugging support would be nice.

Börje

  • Hello Börje

    Unfortunately, we do not have a simplified version of the BSP module on hand. Making a stripped down version is not a simple task either, as the BSP handles a number of things, and is itself dependent on other modules.

    The BSP module's main responsibility is ensuring the leds of the board indicates the current state (advertising, connected, errors etc.) and that button events are recognized and generated (push, long push and release). To do this the BSP module uses interrupts, the app_timer module, which again uses the real time clock peripheral (RTC1), and app_button module, which again employs GPIOTE, which sets up the GPIO, tasks and events.

    In the examples->peripheral folder you can find a bsp example which shows the basic initialization and use of the bsp module, a description of the example can be found here infocenter.nordicsemi.com/.../bsp_example.html

    More in depth information on the BSP module can be found on Nordic's infocenter

    infocenter.nordicsemi.com/.../lib_bsp.html

    When using BLE you also have the BSP_BLE module with the "bsp_btn_ble_init" function which is typically called after the BSP module is initialized, to allow the buttons to control the BLE behavior. You can find more information on it under the link above.

    Best regards

    Jørn Frøysa

Related