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
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
Hi Tim,
If you want to continue using CLI over RTT for your communication with the board, you can look into our pynrfjprog library. This enables you to read and write RTT channels from a python script.
Best regards,
Jørgen
Hi Jørgen,
I would like to avoid the middleman (CLI) and just use pynrfjprog directly.
Tim
What does it take to use a different channel? I just read this post: https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/multiple-channels-in-rtt
Does it paint the full picture?
Okay, so I tried using Channel 1 (both in my python script and firmware), Everytime I run the script, I hit a breakpoint in the code. Specifically, this breakpoint (in cmsis_gcc.h) is hit everytime I send a string from the script:
__attribute__((always_inline)) __STATIC_INLINE void __SEV(void)
{
__ASM volatile ("sev");
}
And the program halts. Is this expected?