From 368a302c89c0223e57ef701eb0597eace903b8dc Mon Sep 17 00:00:00 2001 From: "r.rozmann@jung-electronic.de" Date: Thu, 14 Aug 2025 16:37:18 +0200 Subject: [PATCH] stm32mems-studio added (replaces unicleogui and algobuilder) added to VIN recipe --- roles/VN-63728/meta/main.yml | 7 ++--- roles/stm32mems-studio/tasks/main.yml | 4 +++ roles/stm32mems-studio/tasks/main_lin.yml | 4 +++ roles/stm32mems-studio/tasks/main_win.yml | 31 +++++++++++++++++++++++ 4 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 roles/stm32mems-studio/tasks/main.yml create mode 100644 roles/stm32mems-studio/tasks/main_lin.yml create mode 100644 roles/stm32mems-studio/tasks/main_win.yml diff --git a/roles/VN-63728/meta/main.yml b/roles/VN-63728/meta/main.yml index 04abcca..3bced19 100644 --- a/roles/VN-63728/meta/main.yml +++ b/roles/VN-63728/meta/main.yml @@ -8,7 +8,8 @@ dependencies: - role: ltspice - role: pulseview - role: putty - - role: stm32algobuilder #(ni še exe. Datoteke - ne dobim iz ST portala) - - role: stm32unicleogui - + - role: stm32mems-studio # replaces algobuilder and unicleogui +# - role: stm32algobuilder #(ni še exe. Datoteke - ne dobim iz ST portala) +# - role: stm32unicleogui + #TODO Writable d:\RAVINOR directory diff --git a/roles/stm32mems-studio/tasks/main.yml b/roles/stm32mems-studio/tasks/main.yml new file mode 100644 index 0000000..55203f6 --- /dev/null +++ b/roles/stm32mems-studio/tasks/main.yml @@ -0,0 +1,4 @@ +- import_tasks: main_win.yml + when: ansible_connection == 'winrm' +- import_tasks: main_lin.yml + when: ansible_connection == 'ssh' diff --git a/roles/stm32mems-studio/tasks/main_lin.yml b/roles/stm32mems-studio/tasks/main_lin.yml new file mode 100644 index 0000000..fccdf44 --- /dev/null +++ b/roles/stm32mems-studio/tasks/main_lin.yml @@ -0,0 +1,4 @@ +- name: Do not install UnicleoGUI + debug: + msg: "Do not install UnicleoGUI on Linux" + diff --git a/roles/stm32mems-studio/tasks/main_win.yml b/roles/stm32mems-studio/tasks/main_win.yml new file mode 100644 index 0000000..8a1ea31 --- /dev/null +++ b/roles/stm32mems-studio/tasks/main_win.yml @@ -0,0 +1,31 @@ +# TODO +- name: Check MEMS-Studio install status + win_stat: + path: C:\Program Files (x86)\STMicroelectronics\Unicleo-GUI\Unicleo-GUI.exe + register: file +- when: not file.stat.exists + block: + - name: Download MEMS-Studio + win_command: wget "https://unilj-my.sharepoint.com/:u:/g/personal/rozman_fri1_uni-lj_si/EXgZSDD5LgtMrikaKszPliwB1vXrwUxea3eYYObT3zXBaQ?e=eNJyLA" -O C:\mems-studio-2.1.2.exe + args: + creates: C:\mems-studio-2.1.2.exe + #win_get_url: + # follow_redirects: all + # http_agent: Wget/1.21.3 + # url: https://unilj-my.sharepoint.com/:u:/g/personal/rozman_fri1_uni-lj_si/EQG4vStF7ApBsN2TDm5AjGQBiU0iFbZZiz91UqGeHKX9FA?e=QOQky2?download=1 + # dest: C:\Unicleo-GUI_Setup.exe + #register: download + + - name: Install MEMS-Studio + win_package: + path: C:\mems-studio-2.1.2.exe + # path: "{{ download.dest }}" + arguments: /Verysilent /AllUsers + + - name: Remove temporary files + win_file: + path: C:\mems-studio-2.1.2.exe + # path: "{{ download.dest }}" + state: absent + +