You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
would it be possible to add to the input of the rtt_start() a option to set the search range. Similarly to the option in the Rtt-viewer or the rtt command SetRTTSearchRanges .
--
We are using chipset that doesn't work well with the auto detection and the placement in the ram is not always a exact number. We are currently doing workaround by having a while loop that searches for the block address but it seems way slower then it needs to be.
The text was updated successfully, but these errors were encountered:
We are using chipset that doesn't work well with the auto detection and the placement in the ram is not always a exact number. We are currently doing workaround by having a while loop that searches for the block address but it seems way slower then it needs to be.
Here is a temporary workaround : You can use elftools in python to find out exactly what the rtt address is. This way you know where to connect to.
def get_symbol_address(elf_file_path, symbol_name):
try:
with open(elf_file_path, 'rb') as f:
elf = ELFFile(f)
# Iterate through all sections in the ELF file
for section in elf.iter_sections():
if section['sh_type'] == 'SHT_SYMTAB':
# Iterate through all symbols in the section
for symbol in section.iter_symbols():
if symbol.name == symbol_name:
return symbol['st_value']
except Exception as e:
print(f"Error reading ELF file: {e}")
return None
print(f"Symbol '{symbol_name}' not found")
return None
get_symbol_address("abc.elf", "_SEGGER_RTT")
Hi,
would it be possible to add to the input of the rtt_start() a option to set the search range. Similarly to the option in the Rtt-viewer or the rtt command SetRTTSearchRanges .
--
We are using chipset that doesn't work well with the auto detection and the placement in the ram is not always a exact number. We are currently doing workaround by having a while loop that searches for the block address but it seems way slower then it needs to be.
The text was updated successfully, but these errors were encountered: