Skip to content

Commit 9699df2

Browse files
Documentation: Minor update and cleanup
1 parent 67432ce commit 9699df2

6 files changed

Lines changed: 70 additions & 63 deletions

File tree

documentation/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ The following section lists the communication speeds that can be achieved on dif
6262
- ULINKplus (SWD clock: 10 MHz): 250 kB/s
6363
- J-Link Pro (SWD clock: auto): 800 kB/s
6464

65-
[Using the FileSystem](layer-sdsio_fs) on the STM32H7B3_DK board with SYSCLK 280 MHz, SDMMC with 4-bit bus: 5 MB/s
65+
[Using the FileSystem](layer-sdsio_fs) on the STM32H7B3_DK board with CPU running at 280 MHz, SDMMC with 4-bit bus: 5 MB/s

documentation/sdsio.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SDSIO Interface
22

3-
The SDSIO components offer flexible SDS communication interfaces. You may choose between these interface components that are stored in the folders: `./sds/sdsio/client`, `./sds/sdsio/fs` or `./sds/sdsio/vsi`. You may use one of the following CMSIS software components for integration of the SDSIO interface into the target system:
3+
The SDSIO components offer flexible SDS communication interfaces. You may choose between these interface components that are stored in the folders: `sds/sdsio/client`, `sds/sdsio/fs` or `sds/sdsio/vsi`. You may use one of the following CMSIS software components for integration of the SDSIO interface into the target system:
44

55
```yml
66
- component: SDS:IO:Socket # IoT Socket Interface (Ethernet or WiFi)
@@ -32,10 +32,12 @@ To access [SDS data files](theory.md#sds-data-files), configure the `*.sdsio.yml
3232

3333
```bash
3434
>python sdsio-server.py -c myproject.sdsio.yml
35+
SDSIO-Server v3.0.0
3536
Press 'Ctrl+C' or 'X' to exit.
36-
Working directory: ...\SDS_data.
37-
SDSIO configuration YAML: ...\myproject.sdsio.yml.
37+
Working directory: ...\SDS_data
38+
SDSIO configuration YAML: ...\myproject.sdsio.yml
3839
SDSIO command input: R=Record, P=playback, S/s=stop, T/t=reset, X/x=exit, A-H=set flags 0-7, a-h=clear flags 0-7.
40+
SDSIO-Server waiting for USB SDSIO-Client...
3941
SDSIO-Client USB device connected.
4042
```
4143

@@ -58,15 +60,16 @@ To access [SDS data files](theory.md#sds-data-files), configure the `*.sdsio.yml
5860

5961
```bash
6062
>python sdsio-server.py -c myproject.sdsio.yml
63+
SDSIO-Server v3.0.0
6164
Press 'Ctrl+C' or 'X' to exit.
62-
Working directory: ...\SDS_data.
63-
SDSIO configuration YAML: ...\myproject.sdsio.yml.
65+
Working directory: ...\SDS_data
66+
SDSIO configuration YAML: ...\myproject.sdsio.yml
6467
SDSIO command input: R=Record, P=playback, S/s=stop, T/t=reset, X/x=exit, A-H=set flags 0-7, a-h=clear flags 0-7.
65-
Socket server listening on 172.20.10.2:5050
68+
SDSIO-Server listening on 172.20.10.2:5050
6669
```
6770

6871
!!! Note
69-
The SDSIO Server prints the IP address on which it is listening. The target hardware must connect to this IP address. Configure the target by updating the `SDSIO_SOCKET_SERVER_IP` macro in `./layer/sdsio/network/RTE/SDS/sdsio_client_socket_config.h`.
72+
The SDSIO-Server prints the IP address on which it is listening. The target hardware must connect to this IP address. Configure the target by updating the `SDSIO_SOCKET_SERVER_IP` macro in `layer/sdsio/network/RTE/SDS/sdsio_client_socket_config.h`.
7073

7174
## Layer: sdsio_rtt
7275

@@ -79,7 +82,7 @@ The [`layer/sdsio/rtt/sdsio_rtt.clayer.yml`](https://github.com/ARM-software/SDS
7982
The SDSIO layer communicates with the host computer via an RTT socket exposed by the
8083
debug probe software. The [SDSIO-Server](https://arm-software.github.io/SDS-Framework/main/utilities.html#sdsio-server)
8184
runs on the host and connects to the debug probe socket using
82-
[socket connect mode](https://arm-software.github.io/SDS-Framework/main/utilities.html#socket-mode).
85+
[socket connect mode](https://arm-software.github.io/SDS-Framework/main/utilities.html#socket-mode-command-line).
8386

8487
#### Connect with SEGGER J-Link
8588

@@ -216,7 +219,7 @@ Playback: Test_In (Test_In.0.sds).
216219
Record: Test_Out (Test_Out.0.p.sds).
217220
Closed: Test_In (Test_In.0.sds).
218221
Closed: Test_Out (Test_Out.0.p.sds).
219-
sdsControl: auto playback terminate.
222+
Playback complete - no more steps remaining.
220223
sdsFlags = 0x30000000.
221224
sdsFlags = 0x70000000.
222225
sdsFlags = 0x30000000.

documentation/template.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ With a custom SDSIO interface, alternative I/O configurations are possible.
2323

2424
## SDS Template Structure
2525

26-
The structure of the SDS template application is shown below. Two projects let you choose between a data communication test and a user algorithm test. Two target types let you deploy the test application either on hardware (evaluation board) or on an AVH FVP (simulation model).
26+
The structure of the SDS template application is shown below. Two projects let you choose between a data communication test and a user algorithm test. Three target types are available, allowing the test application to be deployed either on hardware (an evaluation board) or on one of two AVH FVP simulation models.
2727

2828
A standard board layer, provided by several BSPs, implements the hardware interface. For communication, the SDSIO layer uses the MDK-Middleware or (for the AVH FVP target) a virtual simulation interface (VSI).
2929

@@ -33,7 +33,9 @@ The `Debug` and `Release` build types differ only in the optimization level and
3333
Both build types support recording and playback, controlled via `sdsFlags`. The `sdsFlags` value can be modified by the SDS application (using the function `sdsFlagsModify`) or by the SDSIO-Server, making it easy to switch between Record Mode and Playback Mode.
3434

3535
!!! Note
36-
Implementations using a file system support only recording mode.
36+
The template-based file system implementation natively supports recording mode only.
37+
Playback mode can be enabled by adapting the provided template code.
38+
For example, an additional button on the board can be used to toggle between recording and playback modes.
3739

3840
### Record Mode
3941

@@ -95,7 +97,7 @@ In the [**Create a new solution**](https://mdk-packs.github.io/vscode-cmsis-solu
9597
After the *csolution project* loads, VS Code displays a dialog where you can select a compatible software layer and an installed compiler toolchain.
9698

9799
!!! Note
98-
- If no compatible software layer is available for SDS, use the `V2M-MPS3-SSE-300-FVP` board. Then adapt `sds.csolution.yml` and create a software layer for your target hardware as outlined in [Compile for Custom Hardware](#compile-for-custom-hardware). The [layer: sdsio_rtt](sdsio.md#layer-sdsio_rtt) has minimal requirements because it uses the debug adapter as the communication interface to the SDSIO-Server.
100+
- If no compatible software layer is available for SDS, use the `V2M-MPS3-SSE-300-FVP` board. Then adapt `SDS.csolution.yml` and create a software layer for your target hardware as outlined in [Compile for Custom Hardware](#compile-for-custom-hardware). The [layer: sdsio_rtt](sdsio.md#layer-sdsio_rtt) has minimal requirements because it uses the debug adapter as the communication interface to the SDSIO-Server.
99101

100102
![Configure Solution](images/ConfigureSolution.png)
101103

@@ -157,7 +159,7 @@ The **DataTest** project validates the communication channel.
157159
Activate recording from the SDSIO-Server by pressing the `R` key. To stop recording, press the `S` key.
158160
Alternatively, recording can be started or stopped by pressing the user button on the board.
159161

160-
This run should generate the files `Test_In.1.sds` and `Test_Out.1.sds` in the folder `datatest\SDS Recordings`. The `DataTest` project is configured to record 1000 data records at an interval of 10 ms.
162+
This run should generate the files `Test_In.1.sds` and `Test_Out.1.sds` in the folder `datatest/SDS Recordings`. The `DataTest` project is configured to record 1000 data records at an interval of 10 ms.
161163

162164
To verify correctness of the recording using the SDS-Check utility, use the following commands:
163165

@@ -175,7 +177,7 @@ When recording is started again, new files with different names are created: `Te
175177

176178
Activate the playback from the SDSIO-Server by pressing the `P` key.
177179

178-
This run should read the `Test_In.0.sds` file and generate the `Test_Out.0.p.sds` file in the folder `datatest\SDS Recordings`. The `Test_Out.0.sds` file generated during recording is identical to `Test_Out.0.p.sds`, which is generated in playback mode.
180+
This run should read the `Test_In.0.sds` file and generate the `Test_Out.0.p.sds` file in the folder `datatest/SDS Recordings`. The `Test_Out.0.sds` file generated during recording is identical to `Test_Out.0.p.sds`, which is generated in playback mode.
179181

180182
To verify correctness of the recording using the SDS-Check utility, use the following command:
181183

documentation/theory.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,18 @@ The actual files used when opening a stream depend on the presence of the [`*.sd
7474

7575
**Recording:**
7676

77-
`<label>` is a sequential number starting at 0 and incremented by 1. The first value for which no corresponding file exists is used to create a new file.
78-
After recording completes, the process continues from the last `<label>` value.
77+
`<label>` is a sequential integer starting at 0. The value is incremented until no file exists with the corresponding name, at which point a new file is created.
78+
79+
Each subsequent recording session uses the next `<label>` value in the sequence. If a file with the selected name already exists, it is preserved by renaming it with
80+
a .bak extension before a new file is created with the original name.
7981

8082
**Playback:**
8183

8284
When a [`*.sdsio.yml` control file](utilities.md#sdsio-control-file-sdsioyml) is used and contains a [`play:`](utilities.md#play) node, the filename follows the pattern `<stream-name>.<label>.sds`, where `<label>` is specified in the corresponding
8385
[`step:`](utilities.md#play).
8486

85-
When no `*.sdsio.yml` control file is used, the `<label>` is a sequential number starting at 0. If the corresponding file does not exist, the open operation fails.
86-
After playback completes, the process repeats with the `<label>` incremented by one.
87+
When `*.sdsio.yml` control file is not used, the `<label>` is a sequential number starting at 0. If the corresponding file does not exist, the open operation fails.
88+
After playback session completes, the process repeats with the `<label>` incremented by one.
8789

8890
!!! Note
8991
- Files recorded during playback include an additional `.p` before the `.sds` extension to
@@ -256,7 +258,7 @@ The size of the data stream buffer depends on several factors such as:
256258
- the frequency of the algorithm execution. Fast execution speeds may require a larger buffer.
257259

258260
As a guideline, the buffer size should be at least **(2 × block size) + 2 KB**.
259-
The minimum recommended buffer size is **0x1000 (4 KB)**.
261+
The minimum recommended buffer size is **4 KB**.
260262

261263
## SDSIO-Server Protocols
262264

0 commit comments

Comments
 (0)