Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'--build' option breaks memory table generation for at least ARM and IAR toolchains #2608

Closed
tommikas opened this issue Sep 2, 2016 · 3 comments

Comments

@tommikas
Copy link
Contributor

tommikas commented Sep 2, 2016

For example when compiling mbed-os-example-blinky

mbed compile --build .build/K64F_ARM_BLINKY/ -t ARM -m K64F -j0 -c

Link: mbed-os-example-blinky
Elf2Bin: mbed-os-example-blinky
Warning: specified toolchain doesn't match with path to the memory map file.
+-----------+-------+-------+-------+
| Module    | .text | .data |  .bss |
+-----------+-------+-------+-------+
| Misc      | 41946 |   792 | 10288 |
| Subtotals | 41946 |   792 | 10288 |
+-----------+-------+-------+-------+
Allocated Heap: unknown
Allocated Stack: unknown
Total Static RAM memory (data + bss): 11080 bytes
Total RAM memory (data + bss + heap + stack): 11080 bytes
Total Flash memory (text + data + misc): 42738 bytes
Image: .build/K64F_ARM_BLINKY/mbed-os-example-blinky.bin

Without --build or with for example mbed compile --build .build/K64F/ARM/BLINKY/ -t ARM -m K64F -j0 -c:

Link: mbed-os-example-blinky
Elf2Bin: mbed-os-example-blinky
+---------------------+-------+-------+-------+
| Module              | .text | .data |  .bss |
+---------------------+-------+-------+-------+
| Misc                | 13569 |    20 |  1372 |
| features/frameworks |  4315 |   572 |   296 |
| hal/common          |  3666 |    28 |   168 |
| hal/targets         | 13904 |    76 |   136 |
| rtos/rtos           |   114 |     4 |     0 |
| rtos/rtx            |  6378 |    92 |  8316 |
| Subtotals           | 41946 |   792 | 10288 |
+---------------------+-------+-------+-------+
Allocated Heap: unknown
Allocated Stack: unknown
Total Static RAM memory (data + bss): 11080 bytes
Total RAM memory (data + bss + heap + stack): 11080 bytes
Total Flash memory (text + data + misc): 42738 bytes
Image: .build/K64F/ARM/BLINKY/mbed-os-example-blinky.bin

So it seems that when the path doesn't start .build/<target>/<toolchain>/, it doesn't work properly.

mbed-cli: 0.9.1
mbed-os: 9111aa4

@sg-
Copy link
Contributor

sg- commented Sep 19, 2016

@tommikas Is this resolved?

@ciarmcom
Copy link
Member

ARM Internal Ref: IOTMORF-486

@tommikas
Copy link
Contributor Author

Yep, seems to work fine now. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants