-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Description
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:
- clone https://github.com/ARMmbed/factory-configurator-client-example
- edit mbed-os.lib to https://github.com/ARMmbed/mbed-os/#0f959dbe4749c20416236e4fe1dac5692cbe18ab (version 5.12.3)
- deploy the libraries
- 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
- copy
fcc-example.hex
under./BUILD/CY8CKIT_062_WIFI_BT_PSA/ARM-DEBUG/
to the target. - 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