## 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 ``` ## Serial server ``` socat -d -d /dev/ttyACM0,b115200,raw,echo=0 tcp-listen:7777,reuseaddr ``` ## 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 ```