Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

CLI 16 character limit?

I have a small program that is to be used in production to test my device. It has to be scriptable so I'm using teraterm over rtt.

No external IO for a serial port.

Everything is working great until I try to issue a long command, anything > 16 characters

So 'mfg led all on' is OK but 'mfg led all off' fails. When I press enter the first time I just see a CR, no LF, if I press enter a second time the command works.

if I change the command to 'mfg led all of' it works again!

I've looked through nrf_cli.c but I don't see anything.

SO there looks like a limit of 15 characters?

Oh, so this only happens in teraterm and putty, it works in the Segger IDE and in rtt viewer. So I'm now thinking it's a issue with the terminal programs??

Thanks for any insight

Keith

Parents Reply Children
  • found it, there IS a setting in the sdk_config:

    // <o> SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN - Size of downstream buffer. 
    #ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN
    #define SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN 16
    #endif

    Change that to something bigger, I went to 32 and it all works as expected.

    I suspect that the RTT viewer does a retry if the max number of characters is hit, while teraterm just throws it over the wall and hopes for the best

Related