Skip to content

FCCE fails to run on CY8CKIT_062_WIFI_BT_PSA target with ARMC6 compiler #10613

@evgenibo

Description

@evgenibo

Description

Factory Configurator Client Example (FCCE) application fails to allocate 1KByte on heap shortly after it starts to execute.
setup details:

  • mbed-os: 5.12.3 (#0f959dbe4749c20416236e4fe1dac5692cbe18ab)
  • target: CY8CKIT_062_WIFI_BT_PSA
  • toolchain: ARMC6

when the application runs with the mentioned above setup, it fails to allocate 1KB on the heap for mbed-trace since the heap size is too small (1 KB in total)
The same application with the same configuration runs without issues on version 5.12.2.
While debugging, I've noticed that some stack and heap management implementations were modified in version 5.12.3 in platform/mbed_retarget.cpp. Those changes break the expected behavior with the target.

steps to reproduce:

  1. clone https://github.com/ARMmbed/factory-configurator-client-example
  2. edit mbed-os.lib to https://github.com/ARMmbed/mbed-os/#0f959dbe4749c20416236e4fe1dac5692cbe18ab (version 5.12.3)
  3. deploy the libraries
  4. build: mbed compile --artifact-name fcc-example --app-config mbed_app_psa_conf.json --profile debug -DFCE_SERIAL_INTERFACE -m CY8CKIT_062_WIFI_BT_PSA -t ARM
  5. copy fcc-example.hex under ./BUILD/CY8CKIT_062_WIFI_BT_PSA/ARM-DEBUG/ to the target.
  6. Observe with debugger that the application fails to allocate buffer for mbed-trace :
    https://github.com/ARMmbed/mbed-trace/blob/master/source/mbed_trace.c#L158

Issue request type

[ ] Question
[ ] Enhancement
[x] Bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions