A lot of stuff

This commit is contained in:
Your Name
2026-05-27 14:50:26 +03:00
parent efd00cf6f7
commit 26f3e99d8a
22 changed files with 20137 additions and 48 deletions
+35 -3
View File
@@ -1,16 +1,48 @@
## client
## Serial client
Prefer socat to support arrow keys
```
nc 192.168.1.154 7777
socat -d -d -,raw,echo=0 TCP:192.168.1.154:7777
```
## server
## Serial server
```
socat -d -d /dev/ttyACM0,b115200,raw,echo=0 tcp-listen:7777,reuseaddr
```
## openocd
## openocd server
```
openocd -f interface/cmsis-dap.cfg -f target/nrf52.cfg -c "bindto 0.0.0.0"
```
## VScode launch.json
```json
{
"version": "0.2.0",
"configurations": [
{
"name": "Zephyr Remote Cortex-Debug (OpenOCD)",
"type": "cortex-debug",
"request": "launch",
"executable": "${workspaceFolder}/build/zephyr/zephyr.elf",
"servertype": "external",
"gdbTarget": "192.168.1.154:3333",
"gdbPath": "/usr/bin/arm-none-eabi-gdb",
"runToEntryPoint": "main",
"preLaunchCommands": [
"monitor reset halt"
]
}
]
}
```
## generate key
```
openssl genrsa -out key.pem 2048
```