winIDEA SDK
test_memory_fill.py
1# This script is licensed under BSD License, see file LICENSE.txt.
2#
3# (c) TASKING Germany GmbH, 2023
4
5import isystem.connect as ic
6
7
8winidea_id = 'sdk_samples_id'
9
10
11def test_memory_fill():
12 conn_mgr = ic.ConnectionMgr()
13 conn_mgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
14
15 vect = ic.VectorBYTE([1, 2, 3, 4])
16
17 sess_ctrl = ic.CSessionCtrl(conn_mgr)
18 sess_ctrl.begin_reset()
19
20 soc = sess_ctrl.get_SoC('')
21
22 core_ctrl = soc.get_core(0)
23 core_ctrl.memory_fill(0, 0x200000A0, 4, vect)
24
25
26if __name__ == '__main__':
27 test_memory_fill()