Skip to content

Commit d77ca69

Browse files
AhmedIsmail02urutva
authored andcommitted
docs: General documentation improvements
Signed-off-by: Ahmed Ismail <[email protected]>
1 parent ea344d4 commit d77ca69

File tree

7 files changed

+35
-35
lines changed

7 files changed

+35
-35
lines changed

docs/applications/aws_iot/aws_iot_cloud_connection.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ of the verification fails, then MCUBoot stops the booting process.
3939

4040
To see messages being sent by the application:
4141
1. Login to your account and browse to the [AWS IoT console](https://console.aws.amazon.com/iotv2/).
42-
1. In the left navigation panel, choose **Manage**, and then choose **Things**.
42+
1. In the left navigation panel, choose **Manage**, followed by **All devices**, and then choose **Things**.
4343
1. Select the thing you created, and open the **Activity** tab. This will show
4444
the application connecting and subscribing to a topic.
4545
1. Click on the **MQTT test client** button. This will open a new page.
4646
1. Click on **Subscribe to a topic**.
4747
1. In the **Subscription topic** field enter the topic name
48-
`pubsub/<mqtt-client-identifier>/task_0`
48+
`<mqtt-client-identifier>/ml/inference.`
4949
> `mqtt-client-identifier` value is defined in
50-
`configs/aws_configs/aws_clientcredential.h` as
50+
`applications/<application_name>/configs/aws_configs/aws_clientcredential.h` as
5151
`clientcredentialIOT_THING_NAME`.
5252
1. In the **MQTT payload display** combo box select `Display payloads as
5353
strings (more accurate)`
@@ -90,8 +90,7 @@ in the next step.
9090
* For simplicity, use the same region for the bucket as where your Instance
9191
is located.
9292
1. Follow the instructions at: [Create an OTA Update service role](https://docs.aws.amazon.com/freertos/latest/userguide/create-service-role.html)
93-
1. Follow the instructions at: [Create an OTA user policy](https://docs.aws.amazon.com/freertos/latest/userguide/create-ota-user-policy.html)
94-
1. Go to AWS IoT web interface and choose **Manage** and then **Jobs**
93+
1. Go to AWS IoT web interface and choose **Manage** followed by **Remote actions**, and then **Jobs**
9594
1. Click the create job button and select **Create FreeRTOS OTA update job**
9695
1. Give it a name and click next
9796
1. Select the device to update (the Thing you created in earlier steps)
@@ -109,10 +108,8 @@ in the next step.
109108
1. For **Path name of file on device** put in `non_secure image`
110109
1. As the role, select the OTA role you created in step 2.
111110
1. Click next
112-
1. Create an ID for you Job
113-
1. Add a description
114111
1. **Job type**, select
115112
*Your job will complete after deploying to the selected devices/groups
116113
(snapshot).*
117-
1. Click next, your update job is ready and running - next time your
118-
application connects it will perform the update.
114+
1. Click next, now your update job is ready and running
115+
* If your application is connected to AWS, the update will begin immediately. If not, next time your application connects to AWS it will perform the update.

docs/applications/aws_iot/setting_up_aws_connectivity.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ via MQTT as well as enable an over-the-air update.
2323
1. Login to your account and browse to the [AWS IoT console](https://console.aws.amazon.com/iotv2/).
2424
* If this takes you to AWS Console, click on **Services** above and then
2525
click on **IoT Core**.
26-
* Ensure your **Region** is correct.
2726
1. In the left navigation pane **Manage** section, expand **All devices** then
2827
select **Things**.
2928
* These instructions assume you do not have any IoT things registered in

docs/applications/blinky.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ setup correctly before proceeding.
1919

2020
To build the blinky example, run the following command:
2121
```bash
22-
./tools/scripts/build.sh blinky
22+
./tools/scripts/build.sh blinky --target <corstone300/corstone310/corstone315> --toolchain <ARMCLANG/GNU>
2323
```
2424

2525
Run the command below to perform a clean build:
2626
```bash
27-
./tools/scripts/build.sh blinky -c
27+
./tools/scripts/build.sh blinky --target <corstone300/corstone310/corstone315> --toolchain <ARMCLANG/GNU> -c
2828
```
2929

3030
## Running the application
3131

3232
To run the blinky example, run the following command:
3333
```bash
34-
./tools/scripts/run.sh blinky
34+
./tools/scripts/run.sh blinky --target <corstone300/corstone310/corstone315>
3535
```
3636

3737
### Expected output

docs/applications/keyword_detection.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Follow the instructions described in [Setting Up AWS Connectivity](./aws_iot/set
4747
To build the Keyword-Detection example, run the following command:
4848

4949
```bash
50-
./tools/scripts/build.sh keyword-detection --certificate_path <certificate pem's path> --private_key_path <private key pem's path> --target <corstone300/corstone310> --inference <ETHOS/SOFTWARE> --audio <ROM/VSI>
50+
./tools/scripts/build.sh keyword-detection --certificate_path <certificate pem's path> --private_key_path <private key pem's path> --target <corstone300/corstone310/corstone315> --inference <ETHOS/SOFTWARE> --audio <ROM/VSI> --toolchain <ARMCLANG/GNU>
5151
```
5252
* The `certificate pem's path` and `private key pem's path` should be the downloaded key's and certificate's path if you chose the **Auto-generate a new certificate** during the Thing creation. If you chose **Skip creating a certificate at this time** then these paths should locate the generated credential files that were created by the `./tools/scripts/generate_credentials.py` script in the previous step.
5353

@@ -58,7 +58,7 @@ To build the Keyword-Detection example, run the following command:
5858
Or, run the command below to perform a clean build:
5959

6060
```bash
61-
./tools/scripts/build.sh keyword-detection --certificate_path <certificate pem's path> --private_key_path <private key pem's path> --target <corstone300/corstone310> --inference <ETHOS/SOFTWARE> --audio <ROM/VSI> -c
61+
./tools/scripts/build.sh keyword-detection --certificate_path <certificate pem's path> --private_key_path <private key pem's path> --target <corstone300/corstone310/corstone315> --inference <ETHOS/SOFTWARE> --audio <ROM/VSI> --toolchain <ARMCLANG/GNU> -c
6262
```
6363

6464
## Provisioning the device credentials into Protected Storage
@@ -68,12 +68,16 @@ Check [Device Provisioning](./device_provisioning/device_provisioning.md) for de
6868
## Running the application
6969

7070
### Note:
71-
If you would like to run the keyword detection application using VSI configuration as the input audio source, you must run the [setup_python_vsi.sh](../../tools/scripts/setup_python_vsi.sh) script to setup the needed Python environment for VSI prior to running the application.
71+
If you would like to run the keyword detection application using VSI configuration as the input audio source, you must run the [setup_python_vsi.sh](../../tools/scripts/setup_python_vsi.sh) script to setup the needed Python environment for VSI prior to running the application:
72+
73+
```bash
74+
./tools/scripts/setup_python_vsi.sh
75+
```
7276

7377
To run the Keyword-Detection example, run the following command:
7478

7579
```bash
76-
./tools/scripts/run.sh keyword-detection --target <corstone300/corstone310> --audio <ROM/VSI>
80+
./tools/scripts/run.sh keyword-detection --target <corstone300/corstone310/corstone315> --audio <ROM/VSI>
7781
```
7882

7983
### Expected output
@@ -131,16 +135,11 @@ Creating an empty PS flash layout.
131135
30 8376 [OTA Task ] [INFO] Received: 0 Queued: 0 Processed: 0 Dropped: 0
132136
31 8388 [OTA Agent Task] [WARN] Index: 0. OTA event id: 0
133137
32 8397 [OTA Agent Task] [WARN] Index: 1. OTA event id: 2
134-
33 8446 [MQTT PUB SUB] [INFO] Subscribed to topic pubsub/<mqtt-client-identifier>/task_0.
135-
34 8464 [MQTT PUB SUB] [INFO] Successfully subscribed to topic: pubsub/<mqtt-client-identifier>/task_0
136138
35 9279 [OTA Agent Task] [INFO] Subscribed to topic $aws/things/<mqtt-client-identifier>/jobs/notify-next.
137139
36 9300 [OTA Agent Task] [INFO] Subscribed to MQTT topic: $aws/things/<mqtt-client-identifier>/jobs/notify-next
138-
37 10029 [MQTT Agent Task] [INFO] Publishing message to pubsub/<mqtt-client-identifier>/task_0.
139-
38 10084 [MQTT PUB SUB] [INFO] Sent PUBLISH packet to broker pubsub/<mqtt-client-identifier>/task_0 to broker.
140140
39 10105 [MQTT Agent Task] [INFO] De-serialized incoming PUBLISH packet: DeserializerResult=MQTTSuccess.
141141
40 10119 [MQTT Agent Task] [INFO] State record updated. New state=MQTTPublishDone.
142142
41 10131 [MQTT Agent Task] [INFO] Received incoming publish message Task 0 publishing message 0
143-
42 10145 [MQTT PUB SUB] [INFO] Successfully sent QoS 0 publish to topic: pubsub/<mqtt-client-identifier>/task_0 (PassCount:1, FailCount:0).
144143
43 10894 [MQTT Agent Task] [INFO] Publishing message to $aws/things/<mqtt-client-identifier>/jobs/$next/get.
145144
44 10986 [MQTT Agent Task] [INFO] Ack packet deserialized with result: MQTTSuccess.
146145
45 10998 [MQTT Agent Task] [INFO] State record updated. New state=MQTTPublishDone.

docs/applications/speech_recognition.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Follow the instructions described in [Setting Up AWS Connectivity](./aws_iot/set
2727
To build the Speech-Recognition example, run the following command:
2828

2929
```bash
30-
./tools/scripts/build.sh speech-recognition --certificate_path <certificate pem's path> --private_key_path <private key pem's path> --target <corstone300/corstone310> --inference <ETHOS/SOFTWARE> --audio <ROM/VSI>
30+
./tools/scripts/build.sh speech-recognition --certificate_path <certificate pem's path> --private_key_path <private key pem's path> --target <corstone300/corstone310/corstone315> --inference ETHOS --audio <ROM/VSI> --toolchain <ARMCLANG/GNU>
3131
```
3232
* The `certificate pem's path` and `private key pem's path` should be the downloaded key's and certificate's path if you chose the **Auto-generate a new certificate** during the Thing creation. If you chose **Skip creating a certificate at this time** then these paths should locate the generated credential files that were created by the `./tools/scripts/generate_credentials.py` script in the previous step.
3333

@@ -36,7 +36,7 @@ To build the Speech-Recognition example, run the following command:
3636
Or, run the command below to perform a clean build:
3737

3838
```bash
39-
./tools/scripts/build.sh speech-recognition --certificate_path <certificate pem's path> --private_key_path <private key pem's path> --target <corstone300/corstone310> --inference <ETHOS/SOFTWARE> --audio <ROM/VSI> -c
39+
./tools/scripts/build.sh speech-recognition --certificate_path <certificate pem's path> --private_key_path <private key pem's path> --target <corstone300/corstone310/corstone315> --inference ETHOS --audio <ROM/VSI> --toolchain <ARMCLANG/GNU> -c
4040
```
4141

4242
## Provisioning the device credentials into Protected Storage
@@ -46,12 +46,16 @@ Check [Device Provisioning](./device_provisioning/device_provisioning.md) for de
4646
## Running the application
4747

4848
### Note:
49-
If you would like to run the speech recognition application using VSI configuration as the input audio source, you must run the [setup_python_vsi.sh](../../tools/scripts/setup_python_vsi.sh) script to setup the needed Python environment for VSI prior to running the application.
49+
If you would like to run the speech recognition application using VSI configuration as the input audio source, you must run the [setup_python_vsi.sh](../../tools/scripts/setup_python_vsi.sh) script to setup the needed Python environment for VSI prior to running the application:
50+
51+
```bash
52+
./tools/scripts/setup_python_vsi.sh
53+
```
5054

5155
To run the Speech-Recognition example, run the following command:
5256

5357
```bash
54-
./tools/scripts/run.sh speech-recognition --target <corstone300/corstone310> --audio <ROM/VSI>
58+
./tools/scripts/run.sh speech-recognition --target <corstone300/corstone310/corstone315> --audio <ROM/VSI>
5559
```
5660

5761
### Expected output
@@ -110,16 +114,11 @@ Creating an empty PS flash layout.
110114
31 9281 [OTA Task ] [INFO] Received: 0 Queued: 0 Processed: 0 Dropped: 0
111115
32 9292 [OTA Agent Task] [WARN] Index: 0. OTA event id: 0
112116
33 9300 [OTA Agent Task] [WARN] Index: 1. OTA event id: 2
113-
34 9663 [MQTT PUB SUB] [INFO] Subscribed to topic pubsub/<mqtt-client-identifier>/task_0.
114-
35 9680 [MQTT PUB SUB] [INFO] Successfully subscribed to topic: pubsub/<mqtt-client-identifier>/task_0
115117
36 10857 [OTA Agent Task] [INFO] Subscribed to topic $aws/things/<mqtt-client-identifier>/jobs/notify-next.
116118
37 10876 [OTA Agent Task] [INFO] Subscribed to MQTT topic: $aws/things/<mqtt-client-identifier>/jobs/notify-next
117-
38 11607 [MQTT Agent Task] [INFO] Publishing message to pubsub/<mqtt-client-identifier>/task_0.
118-
39 11824 [MQTT PUB SUB] [INFO] Sent PUBLISH packet to broker pubsub/<mqtt-client-identifier>/task_0 to broker.
119119
40 11844 [MQTT Agent Task] [INFO] De-serialized incoming PUBLISH packet: DeserializerResult=MQTTSuccess.
120120
41 11859 [MQTT Agent Task] [INFO] State record updated. New state=MQTTPublishDone.
121121
42 11870 [MQTT Agent Task] [INFO] Received incoming publish message Task 0 publishing message 0
122-
43 11884 [MQTT PUB SUB] [INFO] Successfully sent QoS 0 publish to topic: pubsub/<mqtt-client-identifier>/task_0 (PassCount:1, FailCount:0).
123122
44 12634 [MQTT Agent Task] [INFO] Publishing message to $aws/things/<mqtt-client-identifier>/jobs/$next/get.
124123
45 13021 [MQTT Agent Task] [INFO] Ack packet deserialized with result: MQTTSuccess.
125124
46 13032 [MQTT Agent Task] [INFO] State record updated. New state=MQTTPublishDone.
@@ -276,9 +275,7 @@ Creating an empty PS flash layout.
276275
...
277276
278277
8740 1522485 [MQTT Agent Task] [INFO] Received incoming publish message Task 0 publishing message 255
279-
8741 1522499 [MQTT PUB SUB] [INFO] Sent PUBLISH packet to broker pubsub/<mqtt-client-identifier>/task_0 to broker.
280278
8742 1522520 [OTA Agent Task] [WARN] Index: 9. OTA event id: 6
281-
8743 1522529 [MQTT PUB SUB] [INFO] Successfully sent QoS 0 publish to topic: pubsub/<mqtt-client-identifier>/task_0 (PassCount:256, FailCount:0).
282279
8744 1522554 [OTA Agent Task] [INFO] Received final block of the update.
283280
8745 1524214 [OTA Agent Task] [INFO] Received entire update and validated the signature.
284281

docs/development_environment/linux_dev_env.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ Follow the intructions in the [document](./pre_commit_and_towncrier_setup.md)
7676
to setup pre-commit hooks and towncrier.
7777

7878
Run the [setup_python_vsi.sh](../../tools/scripts/setup_python_vsi.sh) script
79-
to setup the needed Python environment for VSI to work.
79+
to setup the needed Python environment for VSI to work:
80+
81+
```bash
82+
./tools/scripts/setup_python_vsi.sh
83+
```
8084

8185
## Cloning the Repository
8286

docs/development_environment/vscode_dev_env_build_and_debug.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ Follow the intructions in the [document](./pre_commit_and_towncrier_setup.md)
8787
to setup pre-commit hooks and towncrier.
8888

8989
Run the [setup_python_vsi.sh](../../tools/scripts/setup_python_vsi.sh) script
90-
to setup the needed python environment for VSI to work.
90+
to setup the needed python environment for VSI to work:
91+
92+
```bash
93+
./tools/scripts/setup_python_vsi.sh
94+
```
9195

9296
## Building a reference application
9397

0 commit comments

Comments
 (0)