Closed ccli8 closed 3 years ago
@ccli8 Thanks for raising this issue. It turns out that CMSDK_TIMER0_DEV_S
is really undefined, but its caller is unused either so we don't need this CMSDK_TIMER0_DEV_S
in the final application binary. The Arm linker doesn't handle this scenario.
To have that symbol defined, we can enable the macro CMSDK_TIMER0_S
in https://github.com/ARMmbed/mbed-os/blob/36df9d10436487625810a43f922b7fb975e5eec7/targets/TARGET_ARM_SSG/TARGET_MUSCA_B1/device/device_definition.c#L358-L364
Environment
mbed-os-tf-m-regression-tests 57a5054383965c0a297133de0030e5d6046e5ae8
mbed-os 0db72d0cf26539016efbe38f80d6f2cb7a3d4414 (mbed-os-6.3.0-rc2)
ARMCLANG ARM Compiler 6.13.1
Steps to reproduce
Build TF-M and regression test OK:
Build Mbed OS+TF-M regression test failed:
If I change toolchain to GCC, it is OK.