Remote Features

If your local machine is a Windows system and the development board is connected to it, but you choose to put the SDK on a Linux server and develop through the VS Code Remote-SSH extension, follow these steps:

  1. Download AmebaRemoteService on your local machine and run it. By default it starts without a password; if security is a concern, you can set one.

  2. In VS Code, press F1, type ameba: Manage Remote Servers, and click the corresponding option.

  3. Click the Add New Remote Server option.

Server Name:

Enter a custom name for the server. It must not duplicate an existing server name.

Server Address:

Enter the IPv4 address of your local Windows machine. The same address cannot be added twice.

Server Password:

If a password is configured in the Windows AmebaRemoteService software, enter it here. Otherwise, press Enter to skip.

  1. After successful configuration, the serial port list is updated with the remote serial ports, and remote ports are prefixed with R:/: when only one remote server provides serial ports they are shown as R:/COM3; when several do, they are shown as R:/<server IP>/COM3 to tell the sources apart.

  2. Pressing F1 again in VS Code and entering ameba: Manage Remote Servers lets you view the existing servers. You can click an existing server to delete it.

Remote Serial Port Flashing

  1. Select the target chip and target remote serial port.

  2. Set the flashing parameters as described in Optional Plugin Settings (Flash).

  3. Click the Flash button to start the firmware flashing process.

  4. Real-time flashing progress and detailed logs are provided.

Remote Serial Port Monitoring

  1. Select the target remote serial port.

  2. Set the monitoring parameters as described in Optional Plugin Settings (Monitor).

  3. Click the Monitor button to open the integrated serial monitor. It automatically selects the baud rate and connects to the serial port.

  4. Display and receive serial data in real time.

  5. The monitoring features are the same as local monitoring.

Remote Debugging

The remote debugging framework is illustrated as follows:

../_images/vsix_diagram_remote.svg
  1. The target chip is connected to the local Windows PC via a debug adapter.

  2. VS Code installed on the Windows PC connects to the remote server via SSH.

  3. When debugging starts, OpenOCD (GDB server) is launched on the local Windows PC by AmebaRemoteService. You can view the OpenOCD output logs and status in the AmebaRemoteService window.

  4. The toolchain’s built-in GDB, deployed on the remote server, connects to the locally launched OpenOCD, after which debugging operations can proceed.

Steps to start debugging:

  1. Complete the hardware connections and basic configuration as required in Code Debugging.

  2. In the extension, select the target chip for debugging and the remote serial port.

  3. Click the Debug button to launch the integrated debugger.

  4. Start code debugging; the debugging tips are the same as described in Code Debugging.