ARMmbed / target-nordic-nrf51822

Various mbed-official yotta target descriptions for compiling for nrf51822.
Other
4 stars 6 forks source link

building ble-cliapp results in a warning about low HEAP #3

Open rgrover opened 8 years ago

rgrover commented 8 years ago
[10/10] Linking CXX executable source/ble-cliapp
Memory usage for 'ble-cliapp'
section              size
RW_IRAM1              120
RW_IRAM1             4544
ARM_LIB_HEAP            0
ARM_LIB_HEAP        15544
ARM_LIB_STACK        2048
WARNING: Available heap < 1024 bytes.

Could it be that there's actually enough heap but we're mis-interpreting the build output?

andresag01 commented 8 years ago

@rgrover There is enough heap, the problem is that from that table it is very difficult to identify which is the actual heap section because of the symbols that have been used. So the reason why the message is printed is because the script checked:

ARM_LIB_HEAP            0
rgrover commented 8 years ago

is the actual heap-size a MAX() of ARM_LIB_HEAP lines?