Skip to content

Commit 6544208

Browse files
authored
Merge pull request #457 from dani-clo/update_readme
docs: clarify installation steps and folder naming
2 parents c1a900b + 5a70691 commit 6544208

1 file changed

Lines changed: 26 additions & 9 deletions

File tree

README.md

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ To get started with your board:
7272
#### **Q: I get an out of memory error**
7373
**A:** Since collecting bug reports is very important at this time, we are keeping Zephyr's shell enabled to allow loading a full sketch (which requires a large stack). Adjust your board's `.conf` file to reduce the stack size if your platform doesn't have enough RAM.
7474

75+
---
76+
77+
#### **Q: I get a compilation error during library detection, but the mentioned libraries are installed**
78+
**A:** If you have installed the core locally in your Arduino sketchbook, make sure the Zephyr core is installed in a folder named `zephyr` (`${sketchbook}/hardware/arduino-git/zephyr`).
79+
See the [Using the Core in Arduino IDE/CLI](#using-the-core-in-arduino-idecli) section for further details on the installation.
80+
7581
## 📚 Libraries
7682

7783
### Included with the core: ###
@@ -131,11 +137,6 @@ In this section, we’ll guide you through setting up your environment to work o
131137

132138
Shell scripts are available to simplify the installation process (Windows is not directly supported at the moment 😔, but there are some tricks - see below).
133139

134-
### Clone the repository
135-
```bash
136-
mkdir my_new_zephyr_folder && cd my_new_zephyr_folder
137-
git clone https://github.com/arduino/ArduinoCore-zephyr
138-
```
139140
### Pre-requirements
140141
Before running the installation script, ensure that Python, `pip` and `venv` are installed on your system. The script will automatically install `west` and manage the necessary dependencies.
141142

@@ -155,7 +156,7 @@ brew install python cmake ninja zstd jq git
155156
```
156157
Note: Homebrew’s Python installation already includes `pip`, `setuptools` and `venv`.
157158

158-
### On Windows
159+
#### On Windows
159160
Building natively on Windows is not currently supported; however, it is possible to setup and build the loader using [WSL](https://learn.microsoft.com/windows/wsl/about). Once you have that installed, you will need to follow these instructions as if you had Ubuntu.
160161

161162
There are two strategies to set up the sources for building the loader on Windows:
@@ -168,6 +169,12 @@ There are pros and cons to both strategies:
168169

169170
After `bootstrap.sh` has completed, you may also have to update the `cores\arduino\api` link to the path of the ArduinoCore-API's `api` folder.
170171

172+
### Clone the repository
173+
```bash
174+
mkdir my_new_zephyr_folder && cd my_new_zephyr_folder
175+
git clone https://github.com/arduino/ArduinoCore-zephyr
176+
```
177+
171178
### Run the ```bootstrap``` script
172179
```bash
173180
cd ArduinoCore-zephyr
@@ -234,9 +241,19 @@ This can also be performed via the "Burn bootloader" action in the IDE if the co
234241
### Using the Core in Arduino IDE/CLI
235242

236243
After running the `bootstrap.sh` script, you can create a symlink from the
237-
`ArduinoCore-zephyr` folder to `${sketchbook}/hardware/arduino-git/zephyr`, so
238-
that the `boards.txt` file in this repository will be also available as
239-
`${sketchbook}/hardware/arduino-git/zephyr/boards.txt`.
244+
`ArduinoCore-zephyr` folder to `${sketchbook}/hardware/arduino-git/zephyr`,
245+
or manually copy the whole folder to that location.
246+
247+
> [!IMPORTANT]
248+
> Make sure the final location of the `boards.txt` file is exactly
249+
> `${sketchbook}/hardware/arduino-git/zephyr/boards.txt`.
250+
>
251+
> The `zephyr` folder name above is used as part of the FQBN architecture
252+
> (`packager:architecture:board`) and is considered for library
253+
> compatibility checks.
254+
> Using a different architecture folder name may result in:
255+
> - an unsupported FQBN (e.g. `arduino-git:wrong_zephyr_folder:unoq`)
256+
> - architecture-specific libraries (e.g. `architectures=zephyr`) not being selected
240257
241258
Once this is done, your development folder will appear in the IDE/CLI package
242259
list as `arduino-git:zephyr`, and the Fully Qualified Board Name (FQBN) to use

0 commit comments

Comments
 (0)