I am working with the peripheral/flash_fds in SDK14. I need to adapt it to use RTT instead of uart
I have made the obvious changes to switch from uart to RTT, eg substituting rtt/nrf_cli_rtt.c for uart/nrf_cli_uart.c
However, when I build it (with armgcc) I get these errors:
Compiling file: cli.c
../../../cli.c:87:28: error: expected ')' before numeric constant
NRF_CLI_UART_DEF(cli_uart, 0, 64, 16);
^
In file included from ../../../cli.c:45:0:
../../../cli.c:88:45: error: 'cli_uart' undeclared here (not in a function)
NRF_CLI_DEF(m_cli_uart, "fds example:~$ ", &cli_uart.transport, '\r', 4);
^
../../../../../../components/libraries/cli/nrf_cli.h:460:24: note: in definition of macro 'NRF_CLI_DEF'
.p_iface = p_transport_iface,
^
This is surprising because there is only one version of cli.c in the SDK. If really generic, why would it make reference to uart things.
I suspect that a version of cli.c for use with RTT has been omitted or exists somewhere else?
Any suggestions pls?