* Add information on targetting the Pico W Based on comments in https://github.com/raspberrypi/pico-sdk/issues/895 which pointed here: https://datasheets.raspberrypi.com/picow/connecting-to-the-internet-with-pico-w.pdf I didn't add the pdf link as there are no links to other pdfs. * Rewording * stray comma Co-authored-by: Graham Sanderson <graham.sanderson@gmail.com>
This commit is contained in:
parent
0ef07e5215
commit
616e120558
11
README.md
11
README.md
@ -159,7 +159,6 @@ instructions for other platforms, and just in general, we recommend you see [Ras
|
|||||||
Note this example uses the default UART for _stdout_;
|
Note this example uses the default UART for _stdout_;
|
||||||
if you want to use the default USB see the [hello-usb](https://github.com/raspberrypi/pico-examples/tree/master/hello_world/usb) example.
|
if you want to use the default USB see the [hello-usb](https://github.com/raspberrypi/pico-examples/tree/master/hello_world/usb) example.
|
||||||
|
|
||||||
|
|
||||||
1. Setup a CMake build directory.
|
1. Setup a CMake build directory.
|
||||||
For example, if not using an IDE:
|
For example, if not using an IDE:
|
||||||
```
|
```
|
||||||
@ -168,6 +167,16 @@ instructions for other platforms, and just in general, we recommend you see [Ras
|
|||||||
$ cmake ..
|
$ cmake ..
|
||||||
```
|
```
|
||||||
|
|
||||||
|
When building for a board other than the Raspberry Pi Pico, you should pass `-DPICO_BOARD=board_name` to the `cmake` command above, e.g. `cmake -DPICO_BOARD=pico_w ..`
|
||||||
|
to configure the SDK and build options accordingly for that particular board.
|
||||||
|
|
||||||
|
Doing so sets up various compiler defines (e.g. default pin numbers for UART and other hardware) and in certain
|
||||||
|
cases also enables the use of additional libraries (e.g. wireless support when building for `PICO_BOARD=pico_w`) which cannot
|
||||||
|
be built without a board which provides the requisite functionality.
|
||||||
|
|
||||||
|
For a list of boards defined in the SDK itself, look in [this directory](src/boards/include/boards) which has a
|
||||||
|
header for each named board.
|
||||||
|
|
||||||
1. Make your target from the build directory you created.
|
1. Make your target from the build directory you created.
|
||||||
```sh
|
```sh
|
||||||
$ make hello_world
|
$ make hello_world
|
||||||
|
Loading…
Reference in New Issue
Block a user