winIDEA SDK
Loading...
Searching...
No Matches
test_get_function_names.py
# This script is licensed under BSD License, see file LICENSE.txt, or search for `License` in the SDK online help.
# (c) TASKING Germany GmbH, 2023
import isystem.connect as ic
winidea_id = ''
def test_getFunctionNames():
connMgr = ic.ConnectionMgr()
connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
# for STM32 use
ADDRESS = 0x08001F84 # main()
# for TC399xe use
# ADDRESS = 0xA0080ED8
addCtrl = ic.CAddressController(connMgr)
addresses = ic.AddressVector()
addresses.append(ADDRESS)
names = ic.StrVector()
types = ic.IntVector()
addCtrl.getFunctionNames(addresses, names, types)
print(f"Address '{ADDRESS}' belong to a function '{names[0]}'")
if __name__ == "__main__":
test_getFunctionNames()