Closed PR2403 closed 3 months ago
edited: you do not have to answer this ;-)
Ok... can confirm that there is something: config in Zephyr
CONFIG_SEGGER_RTT_MAX_NUM_DOWN_BUFFERS=2
CONFIG_SEGGER_RTT_MAX_NUM_UP_BUFFERS=3
is ok, but
CONFIG_SEGGER_RTT_MAX_NUM_DOWN_BUFFERS=2
CONFIG_SEGGER_RTT_MAX_NUM_UP_BUFFERS=2
is not. Output is as follows for NOT OK:
4.421 ( 1) - (II) ---- RTT_CB found at 0x20004f10
4.421 ( 0) - (II) rtt_check_channel_from_target: 0 2000808C 8192 0 62
4.422 ( 1) - (II) rtt_check_channel_to_target : 0 2000A170 8 0 0
4.422 ( 0) - (II) rtt_check_channel_from_target: 1 2000A178 16384 0 16383
and for OK:
4.416 ( 0) - (II) rtt_check_channel_from_target: 0 200080A4 8192 0 62
4.417 ( 1) - (II) rtt_check_channel_to_target : 0 20008094 16 0 0
4.417 ( 0) - (II) rtt_check_channel_from_target: 1 2000A190 16384 0 16382
4.418 ( 1) - (II) rtt_check_channel_to_target : 1 2000A188 8 0 0
which means, that the second rtt_check_channel_to_target
is not found.
I will look into this.
There is an obvious bug in rtt_io.c: number of aUp[] is not/wrong taken into account for access to aDown[]. Previous functionality is more or less luck.
released probe firmware 1.21: https://github.com/rgrr/yapicoprobe/releases/tag/v1.21
Thank you for the bug report & analysis
In SEGGER_RTT_Conf.h
default is 3, I change it to 2 for less ram useage this cause rtt and systemview not work, no out put, channel reconizating error
0x20004C14 is channel 1 down buffer address not channel 0