winIDEA SDK
Loading...
Searching...
No Matches
service_functions.py
1# This script is licensed under BSD License, see file LICENSE.txt, or search for `License` in the SDK online help.
2#
3# (c) TASKING Germany GmbH, 2023
4
5import isystem.connect as ic
6
7
8def main():
9 winidea_id = ''
10 cmgr = ic.ConnectionMgr()
11 cmgr.connect(ic.CConnectionConfig().instanceId(winidea_id)) # use the latest workspace used in winIDEA
12
13 data = ic.CDataController(cmgr)
14
15 print('securing FLASH')
16 data.secureFlash()
17
18 print('unsecuring FLASH')
19 data.unsecureFlash()
20
21
22if __name__ == "__main__":
23 main()