Skip to content

Stack and Heap memory Overlap with ARMCC on Nucleo-F401RE #2618

Closed
@hasnainvirk

Description

@hasnainvirk

While debugging an issue ARMmbed/mbed-os-example-client#37
it was noticed that the application went to a hard-fault with ARMCC on Nucleo F401RE when RAM was exhausted. However same behaviour would not cause a hard fault with GCC.

On further inspection of MAP files, it was noticed that:

  • With ARMCC , the system was crashing because an overlap between Heap and Stack took place.
    Heap and Stack extend towards each other from opposite directions and there is no check to detect the collision.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions