-
Notifications
You must be signed in to change notification settings - Fork 3k

Description
Description
- Type: Bug
- Priority: Major | Minor
Bug
Target
Toshiba TMPM066
Toolchain:
GCC_ARM
Expected behavior
Greentea testsuites (features-tests-filesystem-mbr_block_device & tests-mbedmicro-rtos-mbed-threads) should pass without change in main stack
Actual behavior
Greentea testsuites (features-tests-filesystem-mbr_block_device & tests-mbedmicro-rtos-mbed-threads) fails due to not enough memory (Operator new[] out of memory).
Steps to reproduce
- Download master from https://github.com/ganesh-ramachandran/mbed-os (since Toshiba TMPM066 is yet to be merged)
- mbed test -t GCC_ARM -m TMPM066 -v -n features-tests-filesystem-mbr_block_device,tests-mbedmicro-rtos-mbed-threads
Details
Not enough memory is the message from the log - "Operator new[] out of memory" - Line numbers 191 & 289 from the attached log "M066_GCC_ARM_GreenTea_MainStack_4K.txt". Did not face this memory issue with ARM and IAR.
M066 Memory : RAM - 16K and Flash - 128K.
If main stack memory is reduced to 2K for GCC_ARM in mbed_rtx.h, then Greentea tests are passed (16af199).
Attached below the GCC_ARM logs with 4K and 2K main stack size.
M066_GCC_ARM_GreenTea_MainStack_4K.txt
M066_GCC_ARM_GreenTea_MainStack_2K.txt
Related Discussion are in #4840