You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -39,11 +39,11 @@ To install ARM build tools, use the `Boards Manager` option in the Arduino IDE t
39
39
40
40
## mbed-os-to-arduino script
41
41
42
-
The backbone of the packaging process is https://github.com/arduino/ArduinoCore-mbed/blob/master/mbed-os-to-arduino script. It basically compiles a blank mbed-os project for any supported target board, recovering the files that will be needed at compile time and copying them to the right location.
42
+
The backbone of the packaging process is the https://github.com/arduino/ArduinoCore-mbed/blob/master/mbed-os-to-arduino script. It basically compiles a blank Mbed OS project for any supported target board, recovering the files that will be needed at compile time and copying them to the right location.
43
43
44
44
It can be used for a variety of tasks including:
45
45
46
-
**Recompiling libmbed with source level debug support**
46
+
### Recompiling libmbed with source level debug support
47
47
48
48
```
49
49
cd $sketchbook/hardware/arduino-git/mbed
@@ -52,7 +52,7 @@ cd $sketchbook/hardware/arduino-git/mbed
52
52
53
53
In this case `-a` applies all the patches from `patches` folder into a mainline `mbed-os` tree, and `-g` restores the debug info.
54
54
55
-
**Selecting a different optimization profile**
55
+
### Selecting a different optimization profile
56
56
57
57
```
58
58
cd $sketchbook/hardware/arduino-git/mbed
@@ -61,7 +61,7 @@ PROFILE=release ./mbed-os-to-arduino -a NANO_RP2040_CONNECT:NANO_RP2040_CONNECT
61
61
62
62
The `PROFILE` environment variable tunes the compilation profiles (defaults to `DEVELOP`). Other available profiles are `DEBUG` and `RELEASE`.
63
63
64
-
**Selecting a different mbed-os tree**
64
+
### Selecting a different Mbed OS tree
65
65
66
66
```
67
67
cd $sketchbook/hardware/arduino-git/mbed
@@ -70,11 +70,11 @@ cd $sketchbook/hardware/arduino-git/mbed
70
70
71
71
`-r` flag allows using a custom `mbed-os` fork in place of the mainline one; useful during new target development.
72
72
73
-
**Adding a new target (variant)**
73
+
### Adding a new target ([core variant](https://arduino.github.io/arduino-cli/latest/platform-specification/#core-variants))
74
74
75
75
Adding a target is a mostly automatic procedure.
76
76
77
-
For boards already supported by `mbed-os`, the bare minimum is
77
+
For boards already supported by Mbed OS, the bare minimum is:
This will produce almost all the files needed. To complete the port, add the board specifications to `boards.txt` (giving it an unique name) and provide `pins_arduino.h` and `variants.cpp` in `variants/$ALREADY_SUPPORTED_BOARD_NAME` folder.
88
+
This will produce almost all the files needed. To complete the port, add the board specifications to [`boards.txt`](https://arduino.github.io/arduino-cli/latest/platform-specification/#boardstxt) (giving it a unique ID) and provide `pins_arduino.h` and `variants.cpp` in `variants/$ALREADY_SUPPORTED_BOARD_NAME` folder.
89
89
Feel free to take inspirations from the existing variants :)
90
90
91
-
For boards not supported by mainline `mbed-os`, the same applies but you should provide the path of your `mbed-os` fork
91
+
For boards not supported by mainline Mbed OS, the same applies but you should provide the path of your Mbed OS fork
0 commit comments