Skip to content

Commit 34ac080

Browse files
committed
nrf hals copy memory.x automatically
1 parent 31f0520 commit 34ac080

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,16 @@ Now that you have selected a HAL, fix the HAL import in `src/lib.rs`
103103
+use nrf52840_hal as _; // memory layout
104104
```
105105

106-
#### 6. Get a linker script
106+
#### (6. Get a linker script)
107107

108-
Some HAL crates require that you copy over a file called `memory.x` from the HAL to the root of your project. For nrf52840-hal, the file is in the folder `nrf-hal/nrf52840-hal/`. You can get it from your local Cargo folder, the default location is:
108+
Some HAL crates require that you manually copy over a file called `memory.x` from the HAL to the root of your project. For nrf52840-hal, this is done automatically so no action is needed. For other HAL crates, you can get it from your local Cargo folder, the default location is under:
109109

110110
```
111-
~/.cargo/registry/src/github.com-<long number>/nrf-hal/nrf52840-hal/memory.x
111+
~/.cargo/registry/src/
112112
```
113113

114-
You can also get the file from nrf-hal's [Github repository]. If you are using another HAL, you may need to write the file yourself. Check the documentation for the HAL you are using!
114+
Not all HALs provide a memory.x file, you may need to write it yourself. Check the documentation for the HAL you are using.
115115

116-
[Github repository]: https://github.com/nrf-rs/nrf-hal/tree/master/nrf52840-hal/
117116

118117
#### 7. Run!
119118

0 commit comments

Comments
 (0)