From 55efa06842f8c2c3cc7032868ad8c38b27e50d3f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tobiasz=20Dryja=C5=84ski?= <tobdryja@pg.edu.pl>
Date: Wed, 15 May 2024 20:57:33 +0000
Subject: [PATCH] Dodanie komend konsolowych zamiast VSC

---
 Commands.txt | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 Commands.txt

diff --git a/Commands.txt b/Commands.txt
new file mode 100644
index 0000000..765fb15
--- /dev/null
+++ b/Commands.txt
@@ -0,0 +1,14 @@
+"windows: make (pca10059)"
+make all
+
+"windows: flashNordic"
+scp -P 120%SWIM_NRF_GROUP% pca10059/s140/armgcc/_build/nrf52840_xxaa.hex ${config:userName}@153.19.49.102:/var/tmp && ssh -p 120%SWIM_NRF_GROUP% ${config:userName}@153.19.49.102 curl http://153.19.49.102:3001/resetNRF52v2/%SWIM_NRF_GROUP% && ssh -p 120%SWIM_NRF_GROUP% ${config:userName}@153.19.49.102 nrfutil pkg generate --hw-version 52 --sd-req 0x00 --debug-mode --application /var/tmp/nrf52840_xxaa.hex /var/tmp/dfu.zip && ssh -p 120%SWIM_NRF_GROUP% ${config:userName}@153.19.49.102 nrfutil dfu usb-serial -pkg /var/tmp/dfu.zip -p ${config:NrfMain} -b 115200 && ssh -p 120%SWIM_NRF_GROUP% ${config:userName}@153.19.49.102 rm /var/tmp/*.hex
+
+"windows: flashNordicSD"
+scp -P 120%SWIM_NRF_GROUP% pca10059/s140/armgcc/_build/nrf52840_xxaa.hex ${config:nrf52SDKPath}/components/softdevice/s140/hex/s140_nrf52_7.0.1_softdevice.hex ${config:userName}@153.19.49.102:/var/tmp && ssh -p 120%SWIM_NRF_GROUP% ${config:userName}@153.19.49.102 curl http://153.19.49.102:3001/resetNRF52v2/%SWIM_NRF_GROUP% && ssh -p 120%SWIM_NRF_GROUP% ${config:userName}@153.19.49.102 nrfutil pkg generate --hw-version 52 --sd-req 0x00 --sd-id 0xCA --softdevice /var/tmp/s140_nrf52_7.0.1_softdevice.hex  --debug-mode --application /var/tmp/nrf52840_xxaa.hex /var/tmp/dfu.zip && ssh -p 120%SWIM_NRF_GROUP% ${config:userName}@153.19.49.102 nrfutil dfu usb-serial -pkg /var/tmp/dfu.zip -p ${config:NrfMain} -b 115200 && ssh -p 120%SWIM_NRF_GROUP% ${config:userName}@153.19.49.102 rm /var/tmp/*.hex
+
+"windows: readUSB"
+"ssh -p 120%SWIM_NRF_GROUP% ${config:userName}@153.19.49.102 -t minicom -D /dev/ttyACM0
+
+"windows: readUsbSecondary"
+ssh -p 120%SWIM_NRF_GROUP% ${config:userName}@153.19.49.102 -t minicom -D /dev/ttyACM1
-- 
GitLab