You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/quickstart/firmware/hardware.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,8 @@ nav_order: 2
9
9
10
10
This guide covers building and flashing the Ocre runtime onto actual development boards. While simulated environments are great for initial testing, deploying to real hardware allows you to test your applications under authentic conditions and take advantage of board-specific features like sensors and networking capabilities.
11
11
12
-
Please refer to the board-specific documentation in our [Board Support](../../../board-support) section for detailed setup instructions and requirements for your board before attempting to flash Ocre.
12
+
{: .note}
13
+
Please refer to the "Building and Flashing the Ocre Runtime" section for your board in our in our [Board Support](../../../board-support) section for your boards name, as well as any additional setup instructions should you need them.
See the [Board Support](../../../board-support) section in your docs to see if your board is currently supported. If your board is listed, check the "Building and Flashing the Ocre Runtime" section for your `BOARD_NAME` and other relevant info for flashing the Ocre Runtime to your particular device.
78
+
You can also run the **West Build** task directly from the **Ocre Workspace** file as defined in the [Ocre Workspace File](../../../reference/workspacefile) reference. If you do, be sure to select your board as your build target from the dropdown list of available boards.
Copy file name to clipboardExpand all lines: docs/quickstart/firmware/index.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,18 +3,18 @@ title: Building and Flashing the Ocre Runtime
3
3
layout: default
4
4
parent: Quickstart
5
5
nav_order: 1
6
-
has_children: true
6
+
has_children: true
7
+
has_toc: false
7
8
---
8
9
9
10
# Building and Flashing the Ocre Runtime
10
11
11
-
This section will guide you through the process of building the Ocre runtime from source. Whether you're using a simulated environment for testing or deploying to physical hardware, the initial setup and build steps are identical. The paths diverge only at the final stage: simulated devices simply run the runtime directly, while physical devices require an additional flashing step to load the runtime onto the board.
12
-
13
-
{: .note}
14
-
To streamline your development workflow, check out our section on [Setting Up Your Development Environment](dev-environment) just before continuing. There, we walk you through using the "Ocre Workspace" file provided in our repository. This VS Code workspace file includes preconfigured `west` build commands for all supported boards, along with debugging utilities and other helpful settings to make building and flashing the Ocre runtime easier.
12
+
Learn how to build and deploy the Ocre runtime on your chosen development environment. The runtime serves as the foundation for running containerized applications on your target device, whether simulated or physical.
15
13
16
14
---
17
15
18
-
## Sample App
16
+
## Getting Started
17
+
Choose your target platform to begin building and testing the Ocre runtime:
19
18
20
-
To help you get started, we've included a sample application (`./src/main.c`) that demonstrates basic Ocre runtime usage by writing a simple hello world application to flash and directing the runtime to load and execute it.
19
+
> *[Using a Simulated Device](simulated) (Recommended for first-time users)
You can also run the **West Build** task directly from the **Ocre Workspace** file as defined in the [Setting Up Your Development Environment](../dev-environment) section. If you do, be sure to select `native_sim` as your build target.
86
+
You can also run the **West Build** task directly from the **Ocre Workspace** file as defined in the [Ocre Workspace File](../../../reference/workspacefile) reference. If you do, be sure to select `native_sim` as your build target from the dropdown list of available boards.
Copy file name to clipboardExpand all lines: docs/quickstart/first-app/dev-environment/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ nav_order: 0
7
7
8
8
# Setting Up Your Development Environment
9
9
10
-
The Ocre toolchain for C/C++ is provided as a Docker container image to ensure a consistent development environment for building containerzied applications with Ocre. You can utilize this container in two ways:
10
+
The Ocre toolchain for C/C++ is provided as a Docker container image to ensure a consistent development environment for building containerized applications with Ocre. You can utilize this container in two ways:
11
11
12
12
1.[Using Visual Studio Code with Dev Containers](#developing-with-visual-studio-code): Provides an integrated development experience with full IDE support and container management.
13
13
@@ -38,7 +38,7 @@ The dev container can also be run directly in GitHub via [CodeSpaces](https://do
Copy file name to clipboardExpand all lines: docs/quickstart/first-app/first-container/index.md
+12-28Lines changed: 12 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,56 +3,40 @@ title: Building And Deploying Your First Container
3
3
layout: default
4
4
parent: Your First Container
5
5
nav_order: 1
6
-
7
-
nav_exclude: false
8
-
search_exclude: true
9
6
---
10
7
11
8
# Building and Deploying Your First App
12
9
13
-
Now that you have set up your development environment, you're ready to build and deploy your first container-based application with Ocre. This guide will walk you through the process of building a sample application from our getting-started repository.
10
+
Now that you have set up your development environment, you're ready to build and deploy your first container-based application with Ocre.
14
11
15
12
---
16
13
17
14
## Prerequisites
18
15
19
16
Before proceeding, ensure you have:
20
17
- Completed the [Setting Up Your Development Environment](../dev-environment) guide
21
-
- Cloned the [`getting-started`](https://github.com/project-ocre/getting-started) repository
22
18
23
19
---
24
20
25
21
## Building Your First Container
26
22
27
-
Let's build your first Ocre container using one of our sample applications.
23
+
Let's build your first Ocre container using the "*hello-world*" sample application.
28
24
29
-
1.**Navigate to the Samples Directory**
25
+
1.**Navigate to *hello-world* sample in the *samples* directory**
30
26
```
31
-
cd getting-started/samples
27
+
cd samples/hello-world
32
28
```
33
-
2.**Choose a Sample Application:** Browse through the available samples and choose one that interests you. Each sample demonstrates different capabilities of the Ocre platform.
34
-
35
-
3.**Create and Enter Build Directory:** Once you have jumped into the sample of your choosing, lets create the build directory.
After successful compilation, you'll find a `sample.nbx` file in your build directory (where "sample" matches your chosen sample name). This is your containerized application, ready for deployment.
Copy file name to clipboardExpand all lines: docs/reference/workspacefile.md
+18-16Lines changed: 18 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,27 @@
1
1
---
2
-
title: Setting Up Your Development Environment
2
+
title: Ocre Workspace File
3
3
layout: default
4
-
parent: Building and Flashing the Ocre Runtime
5
-
nav_order: 0
4
+
parent: Reference
6
5
---
7
6
8
-
# Setting Up Your Development Environment
7
+
# Ocre Workspace File
9
8
10
9
This page will guide you through setting up your development environment for the Ocre runtime using our preconfigured VS Code workspace file. The workspace file provides everything you need to build, flash, and debug the runtime with minimal configuration.
11
10
12
11
---
13
12
14
13
## What is a VS Code Workspace?
15
14
16
-
A Visual Studio Code workspace allows you to manage multiple folders, settings, and tasks as a single, cohesive environment. Workspaces can save you time by automatically loading recommended settings, extensions, and tasks suited for your project. If you're new to workspaces, we recommend reviewing the [VS Code Workspaces documentation](https://code.visualstudio.com/docs/editor/workspaces) to learn more about their features and usage.
15
+
A Visual Studio Code workspace allows you to manage multiple folders, settings, and tasks as a single, cohesive environment. Workspaces can save you time by automatically loading recommended settings, extensions, and tasks suited for your project.
16
+
17
+
{: .note}
18
+
If you're new to workspaces, we recommend reviewing the [VS Code Workspaces documentation](https://code.visualstudio.com/docs/editor/workspaces) to learn more about their features and usage.
17
19
18
20
---
19
21
20
22
## What’s in the "Ocre Workspace" File?
21
23
22
-
The Ocre runtime workspace file, [**`ocre.code-workspace`**](https://github.com/project-ocre/ocre-runtime/blob/main/ocre.code-workspace), is specifically tailored to help you set up and work with the Ocre runtime efficiently. Located in the root of the repository, this file includes:
24
+
The Ocre runtime workspace file, [**`ocre.code-workspace`**](https://github.com/project-ocre/ocre-runtime/blob/main/ocre.code-workspace), located in the root of the `ocre-runtime` repo, is specifically tailored to help you set up and work with the Ocre runtime efficiently. This file includes:
23
25
24
26
1.**West Tasks:**
25
27
The workspace file includes a predefined West tasks, which simplifies the process of building and flashing the Ocre runtime. These tasks support several board options, which can be selected directly within VS Code.
@@ -36,6 +38,15 @@ The workspace file also includes debugging profiles specifically for Ocre-compat
36
38
37
39
This section will guide you through running the essential pre-defined tasks in the Ocre workspace file, including build, flash, and debug operations. These tasks make it easy to quickly set up your development environment for various Ocre-compatible boards without needing to configure each setting manually.
38
40
41
+
### Loading the Workspace File
42
+
43
+
1. Navigate to the `application` folder in your `ocre-runtime` project directory.
44
+
2. Locate `ocre.code-workspace`
45
+
3. Double-click the file in your file explorer, then
46
+
4. Click the blue "Open Workspace" button that appears in the bottom right of your editor.
47
+
48
+
Once loaded, you'll have access to all preconfigured tasks, debug profiles, and recommended extensions.
49
+
39
50
### Running Build and Flash Tasks
40
51
41
52
The workspace file includes tasks for both building and flashing the Ocre runtime. Follow these instructions to access and run these tasks:
@@ -54,13 +65,4 @@ The workspace also includes debugging profiles configured for Ocre-compatible bo
54
65
2. In the dropdown menu, select the debug profile that matches your target board.
55
66
3. Click "Start Debugging" or press `F5` to begin a session. The debugger will launch with the appropriate settings for your board, streamlining the process for testing and troubleshooting.
56
67
57
-
With these tasks, you can easily build, flash, and debug the Ocre runtime in a consistent and streamlined manner across different Ocre-compatible devices.
58
-
59
-
---
60
-
61
-
## Next Steps
62
-
63
-
With your development environment configured, you're ready to start building the Ocre runtime. Choose your development path below:
64
-
65
-
-[Build for a Simulated Device](../simulated)
66
-
-[Build for a Physical Device](../hardware)
68
+
With these tasks, you can easily build, flash, and debug the Ocre runtime in a consistent and streamlined manner across different Ocre-compatible devices.
0 commit comments