Skip to content

Commit bce0315

Browse files
Merge branch 'main' into chore-addendum
2 parents 61eb728 + fbddd23 commit bce0315

File tree

7 files changed

+97
-41
lines changed

7 files changed

+97
-41
lines changed

README.md

Lines changed: 86 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,124 @@
1-
# xCore Docs
2-
3-
This is the source code for the xCore Docs.
4-
5-
If you find some issues with the documentation or want to add to it, please fork this repo and open a pull request.
6-
7-
It's a good idea to tell me that you are working on some part of the website. This maximises the chance, that your changes will be merged to the website.
8-
9-
## Running the website locally
10-
11-
Building and running the site locally requires a recent `extended` version of [Hugo](https://gohugo.io).
1+
<p align="center">
2+
<a>
3+
<h1 align="center">xCore Docs</h1>
4+
<img align="center" src="./documents/banner.jpg">
5+
</a>
6+
</p>
7+
<br>
8+
<p align="center">
9+
This is the source code for the <a href="https://core.x-tech.online/">xCore Docs</a>.
10+
</p>
11+
12+
<br>
13+
<hr>
14+
<br>
15+
16+
<p align="center">
17+
If you find some issues with the documentation or want to add to it, please fork this repo and open a pull request.<br>It's a good idea to tell me that you are working on some part of the website. This maximises the chance, that your changes will be merged to the website.
18+
</p>
19+
20+
<br>
21+
<hr>
22+
<br>
23+
24+
<ul>
25+
<li><a href="#running-local">Running the website locally...</a></li>
26+
<ul>
27+
<li><a href="#running-local-hugo">on Bare Metal</a></li>
28+
<li><a href="#running-local-container">on Podman/Docker</a></li>
29+
<li><a href="#running-local-docker-compose">on Docker Compose</a></li>
30+
</ul>
31+
<br>
32+
<li><!--<a href="#github-pages">-->Running the website on github pages <i>(To be written)</i><!--</a>--></li>
33+
<br>
34+
<li><a href="#troubleshooting">Troubleshooting...</a></li>
35+
</ul>
36+
37+
<br>
38+
<hr>
39+
<br>
40+
41+
<h2 id="running-local">
42+
Running the website locally...
43+
</h2>
44+
45+
<br>
46+
47+
<h3 id="running-local-hugo">
48+
Running the website locally on Bare Metal
49+
</h3>
50+
51+
Building and running the site locally requires a recent `extended` version of [Hugo](https://gohugo.io).
1252
You can find out more about how to install Hugo for your environment in our
1353
[Getting started](https://www.docsy.dev/docs/getting-started/#prerequisites-and-installation) guide.
1454

1555
Once you've made your working copy of the site repo, change to the repo root folder, install the required modules:
1656

17-
```
57+
```bash
1858
npm install --no-bin-links
1959
```
2060

2161
and finally run:
2262

23-
```
63+
```bash
2464
hugo server
2565
```
2666

27-
## Running a container locally
67+
<br>
2868

29-
You can run this inside a [Docker](https://docs.docker.com/)
30-
container, the container runs with a volume bound to the `docsy-example`
31-
folder. This approach doesn't require you to install any dependencies other
32-
than [Docker Desktop](https://www.docker.com/products/docker-desktop) on
33-
Windows and Mac, and [Docker Compose](https://docs.docker.com/compose/install/)
34-
on Linux.
69+
<h3 id="running-local-container">
70+
Running the website locally on Podman/Docker
71+
</h3>
3572

36-
1. Build the docker image
73+
_to be writen..._
3774

38-
```bash
39-
docker-compose build
40-
```
4175

42-
1. Run the built image
76+
<br>
4377

78+
<h3 id="running-local-docker-compose">
79+
Running the website locally on Docker Compose
80+
</h3>
81+
82+
You can run this inside a container _([Docker](https://docs.docker.com/) or [Podman](https://podman.io/))_, the container runs with a volume bound to the `docsy-example` folder. This approach doesn't require you to install any dependencies other than [Docker Desktop](https://www.docker.com/products/docker-desktop) on Windows and Mac, and [Docker Compose](https://docs.docker.com/compose/install/) on Linux.
83+
84+
- Build the docker image
4485
```bash
45-
docker-compose up
86+
docker compose build
4687
```
4788

48-
> NOTE: You can run both commands at once with `docker-compose up --build`.
89+
- Run the built image
90+
```bash
91+
docker compose up
92+
```
93+
> [!TIP]
94+
> You can run both commands at once with `docker compose up --build`.
4995
50-
1. Verify that the service is working.
96+
- Verify that the service is working.
5197

5298
Open your web browser and type `http://localhost:1313` in your navigation bar,
53-
This opens a local instance of the homepage. You can now make
99+
This opens a local instance of the this homepage. You can now make
54100
changes to the website and those changes will immediately show up in your
55101
browser after you save (not on Windows though. Hot reload only works on the non-dockerized hugo!).
56102

57103
### Cleanup
58104

59-
To stop Docker Compose, on your terminal window, press **Ctrl + C**.
105+
To stop Docker Compose, on your terminal window, press <kbd>Ctrl</kbd>+<kbd>C</kbd>.
60106

61107
To remove the produced images run:
62-
63-
```console
64-
docker-compose rm
108+
```bash
109+
docker compose rm
65110
```
66-
For more information see the [Docker Compose
67-
documentation](https://docs.docker.com/compose/gettingstarted/).
111+
For more information see the [Docker Compose documentation](https://docs.docker.com/compose/gettingstarted/).
68112

69-
## Troubleshooting
113+
<br>
114+
<hr>
115+
<br>
70116

71-
As you run the website locally, you may run into the following error:
117+
<h2 id="troubleshooting">
118+
Troubleshooting
119+
</h2>
72120

121+
As you run the website locally, you may run into the following error:
73122
```
74123
➜ hugo server
75124
@@ -83,7 +132,6 @@ This error occurs if you have not installed the extended version of Hugo.
83132
See this [section](https://www.docsy.dev/docs/get-started/docsy-as-module/installation-prerequisites/#install-hugo) of the user guide for instructions on how to install Hugo.
84133

85134
Or you may encounter the following error:
86-
87135
```
88136
➜ hugo server
89137
@@ -92,4 +140,3 @@ Error: failed to download modules: binary with name "go" not found
92140

93141
This error occurs if you have not installed the `go` programming language on your system.
94142
See this [section](https://www.docsy.dev/docs/get-started/docsy-as-module/installation-prerequisites/#install-go-language) of the user guide for instructions on how to install `go`.
95-

content/en/docs/Tutorials/flashing-stm32-from-cm4/_index.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ the CM4's GPIOs to connect to the STM32's SWD interface.
1010
### Step 1: Building OpenOCD
1111
Execute the following commands in order to install the dependencies, build and install OpenOCD:
1212
```bash
13-
sudo apt install automake autoconf build-essential libtool libftdi-dev libusb-1.0-0-dev texinfo pkg-config rpi.gpio-common curl
13+
sudo apt install autoconf automake build-essential curl libftdi-dev libtool libusb-1.0-0-dev git pkg-config rpi.gpio-common texinfo
1414
git clone https://github.com/raspberrypi/openocd.git --recursive
1515
cd openocd
1616
./bootstrap
@@ -32,3 +32,12 @@ cd ~
3232
openocd -f interface/xcore.cfg -f target/stm32h7x.cfg -c "program openmower.elf verify reset exit"
3333
```
3434
The firmware should be uploaded and the program should be running.
35+
36+
37+
### Debugging via remote GDB
38+
In order to debug the program on your xCore board, run the following command:
39+
```bash
40+
openocd -f interface/xcore.cfg -f target/stm32h7x.cfg -c "bindto 0.0.0.0"
41+
```
42+
43+
Then connect your favorite IDE to port 3333 to upload and debug using GDB

content/en/docs/interfaces/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ In addition to the interfaces available via the SODIMM connector, the xCore boar
5757
- **CSI (Camera Serial Interface)**: Direct connection for a camera module using the CSI interface.
5858
- **DSI (Display Serial Interface)**: Direct connection for a display using the DSI interface.
5959
- **SD Card Interface (for CM4 Lite)**: Provides SD card storage access for Raspberry Pi CM4 Lite models.
60-
- **Fan Connector**: Allows you to connect a cooling fan to manage thermal performance for the CM4.
60+
- **Fan Connector**: Allows you to connect a cooling fan to manage thermal performance for the CM4 _(It is the same connector as the [Pi 5](https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-5-fan-connector-pinout) and controllable by GPIO6)._
6161

6262
These additional interfaces enable the xCore platform to fully leverage the capabilities of the Raspberry Pi CM4, offering high-speed data transfer, camera and display connectivity.
6363

145 KB
Loading

documents/banner.afdesign

27.1 MB
Binary file not shown.

documents/banner.jpg

96.1 KB
Loading
790 KB
Binary file not shown.

0 commit comments

Comments
 (0)