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: docs/program-setup/bare_metal/mbed2_porting.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -34,19 +34,19 @@ Configure your target to support Mbed OS 6:
34
34
35
35
1. Remove the `release_versions` property; it is no longer required:
36
36
37
-
```
37
+
```json
38
38
"release_versions": ["2"]
39
39
```
40
40
41
41
1. To indicate that the application profile supported by this target is bare metal, add the `supported_application_profiles` property:
42
42
43
-
```
43
+
```json
44
44
"supported_application_profiles" : ["bare-metal"]
45
45
```
46
46
47
47
1. Override `supported_c_libs` property to link with the smaller C libraries. The default for all targets is defined as follows:
48
48
49
-
```
49
+
```json
50
50
"supported_c_libs": {
51
51
"arm": ["std"],
52
52
"gcc_arm": ["std", "small"],
@@ -56,7 +56,7 @@ Configure your target to support Mbed OS 6:
56
56
57
57
Both the ARM and GCC_ARM toolchains support optimized versions of the C standard libraries - microlib and newlib-nano, respectively. We recommend using them with the bare metal profile for lower memory footprints. Ultraconstrained targets should override `supported_c_libs`:
58
58
59
-
```
59
+
```json
60
60
"supported_c_libs": {
61
61
"arm": ["small"],
62
62
"gcc_arm": ["small"]
@@ -67,7 +67,7 @@ Configure your target to support Mbed OS 6:
67
67
68
68
For each toolchain, if there is enough memory to link with the standard library, add the corresponding `std` library to the list. For example:
69
69
70
-
```
70
+
```json
71
71
"supported_c_libs": {
72
72
"arm": ["std", "small"],
73
73
"gcc_arm": ["std", "small"],
@@ -92,7 +92,7 @@ Configure your target to support Mbed OS 6:
92
92
93
93
1. If your board does not have a low power ticker, ensure that tickless is enabled using the microsecond ticker:
94
94
95
-
```
95
+
```json
96
96
"overrides": {
97
97
"tickless-from-us-ticker": true
98
98
}
@@ -102,7 +102,7 @@ Configure your target to support Mbed OS 6:
102
102
103
103
The stack size is configured by setting a value for the `boot-stack-size` attribute; this value must be a multiple of 8 for alignment purposes. We recommend that you reduce the boot stack size to 0x400 (1,024 bytes) if your target has 8KB of RAM and to 0x300 (768 bytes) if your target has 4KB of RAM.
104
104
105
-
```
105
+
```json
106
106
"overrides": {
107
107
"boot-stack-size": "0x400"
108
108
}
@@ -160,7 +160,7 @@ Further optimisations for targets with small flash memories:
160
160
161
161
Modify `TESTS/configs/baremetal.json` for your target:
0 commit comments