Merge remote-tracking branch 'knurling/main' into v2

This commit is contained in:
datdenkikniet
2023-04-22 22:16:47 +02:00
6 changed files with 16 additions and 62 deletions
+10
View File
@@ -110,6 +110,10 @@ For the nRF52840 you'll want to use the [`nrf52840-hal`].
+nrf52840-hal = "0.16.0"
```
⚠️ Note for RP2040 users ⚠️
You will need to not just specify the `rp-hal` HAL, but a BSP (board support crate) which includes a second stage bootloader. Please find a list of available BSPs [here](https://github.com/rp-rs/rp-hal-boards#packages).
#### 6. Import your HAL
Now that you have selected a HAL, fix the HAL import in `src/lib.rs`
@@ -165,6 +169,12 @@ $ echo $?
0
```
If you're running out of memory (`flip-link` bails with an overflow error), you can decrease the size of the device memory buffer by setting the `DEFMT_RTT_BUFFER_SIZE` environment variable. The default value is 1024 bytes, and powers of two should be used for optimal performance:
``` console
$ DEFMT_RTT_BUFFER_SIZE=64 cargo rb hello
```
#### (10. Set `rust-analyzer.linkedProjects`)
If you are using [rust-analyzer] with VS Code for IDE-like features you can add following configuration to your `.vscode/settings.json` to make it work transparently across workspaces. Find the details of this option in the [RA docs].