Skip to content

Commit d9dd7cd

Browse files
committed
mbed2_porting: explain Greentea errors due to small memory size
1 parent a154da9 commit d9dd7cd

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/program-setup/bare_metal/mbed2_porting.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,19 @@ If you haven't used Greentea before, [you can learn more in our documentation](.
140140
141141
<span class="tips">**Tip:** You can append `--compile` and fix build issues before running tests with `--run`.</span>
142142
143-
1. All tests should pass (or be automatically skipped).
143+
1. All tests should pass (or be automatically skipped), with exceptions when the target being ported is ultra-constrained (with 32KB of flash memory or less) in which case linking may fail for only _a few_ tests. For example,
144+
145+
ARM toolchain:
146+
```
147+
Error: L6407E: Sections of aggregate size 0x318 bytes could not fit into .ANY selector(s).
148+
```
149+
150+
GCC_ARM toolchain:
151+
```
152+
region `FLASH' overflowed by 792 bytes
153+
```
154+
155+
Please ignore tests with similar errors for now.
144156
145157
Further optimisations for targets with small flash memories:
146158
- Append `--profile release` to the command above. Use of the release profile helps keep some tests within the size limit.

0 commit comments

Comments
 (0)