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

NRFJPROG_rtt_write in nrf52_nrfjprog.dll won't write more than 15 characters

I'm trying to pass a string longer than 15 characters to NRFJPROG_rtt_write (it's 17 characters, including null-termination), but the data_written parameter is set to 15 after the call. In addition, only 15 characters get sent down to the nRF52. I check that with the debugger. There's only 15 characters in the receive buffer on my target device.

Parents
  • Hello CurtisHx,

    The length of the buffer which directs from terminal to the device can be configured in the 'SEGGER_RTT_Conf.h', which located in 'nRF5_SDK_11/external/segger_rtt/'

    In the header file, you can find :

    #define BUFFER_SIZE_DOWN                          (16)    // Size of the buffer for terminal input to target from host (Usually keyboard input) (Default: 16)
    

    Update the the 'BUFFER_SIZE_DOWN' can increase the buffer length which may solve the problem.

Reply
  • Hello CurtisHx,

    The length of the buffer which directs from terminal to the device can be configured in the 'SEGGER_RTT_Conf.h', which located in 'nRF5_SDK_11/external/segger_rtt/'

    In the header file, you can find :

    #define BUFFER_SIZE_DOWN                          (16)    // Size of the buffer for terminal input to target from host (Usually keyboard input) (Default: 16)
    

    Update the the 'BUFFER_SIZE_DOWN' can increase the buffer length which may solve the problem.

Children
Related