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

Test development using CLI/python/RTT

Hi,

I'd like to start developing automated tests for my custom NRF52840 board.

Currently I use the CLI library (with RTT backend) for communicating with the board.

Any ideas for how I could communicate with my board via a python script?

Thanks

Tim

Parents Reply
  • Hi Jørgen,

    I would like to avoid the middleman (CLI) and just use pynrfjprog directly.

    1. I plan to use the pynrfjprog read and write functions directly as you suggested. However, on the firmware side, I'm considering one potential issue: my logger uses the RTT backend. Would I have to disable  the logger?
    2. As for implmentation, would it make sense to use a repeating timer to call SEGGER_RTTRead() and have a task (I'm using FreeRTOS) decode the command, since there is no interrupt to tell when data is received in the RTT buffer?


    Tim

Children
No Data
Related