mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2025-12-16 13:05:27 +08:00
* Add vitepress tree * Update existing workflows so they dont trigger on changes in the docs path * Add nojekyll, package.json, LICENCE etc * Add crowdin docs upload/download scripts * Add docs flaw checker workflows * Used docs prefix for docs workflows * Crowdin obvious fixes * ci: docs move to self hosted runner runs on a beefy server for faster builds Signed-off-by: Ramon Roche <mrpollo@gmail.com> * ci: don't run build action for docs or ci changes Signed-off-by: Ramon Roche <mrpollo@gmail.com> * ci: update runners Signed-off-by: Ramon Roche <mrpollo@gmail.com> * Add docs/en * Add docs assets and scripts * Fix up editlinks to point to PX4 sources * Download just the translations that are supported * Add translation sources for zh, uk, ko * Update latest tranlsation and uorb graphs * update vitepress to latest --------- Signed-off-by: Ramon Roche <mrpollo@gmail.com> Co-authored-by: Ramon Roche <mrpollo@gmail.com>
40 lines
1.0 KiB
Markdown
40 lines
1.0 KiB
Markdown
# 常见问题
|
|
|
|
## 编译错误
|
|
|
|
### 闪存溢出
|
|
|
|
可以加载到主板上的代码量受到其具有的闪存量的限制。
|
|
当添加其他模块或代码时,添加可能会超过闪存。
|
|
这将导致 "闪存溢出"。 The upstream version will always build, but depending on what a developer adds it might overflow locally.
|
|
|
|
```sh
|
|
region `flash' overflowed by 12456 bytes
|
|
```
|
|
|
|
若要解决此问题,请使用较新的硬件或从生成中删除对您的用例不重要的模块。
|
|
The configuration is stored in **/PX4-Autopilot/boards/px4** (e.g. [PX4-Autopilot/boards/px4/fmu-v5/default.px4board](https://github.com/PX4/PX4-Autopilot/blob/main/boards/px4/fmu-v5/default.px4board)).
|
|
要删除模块,只需将其注释掉:
|
|
|
|
```cmake
|
|
#drivers/trone
|
|
```
|
|
|
|
#### Identifying large memory consumers
|
|
|
|
The command below will list the largest static allocations:
|
|
|
|
```sh
|
|
sudo apt-get remove modemmanager
|
|
```
|
|
|
|
## USB 错误
|
|
|
|
### 上传从不成功
|
|
|
|
On Ubuntu, uninstall the modem manager:
|
|
|
|
```sh
|
|
sudo apt-get remove modemmanager
|
|
```
|