-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Description
Description of defect
When compiling a file below with target -m NUCLEO_F412ZG
it compiles fine, but if I compile with -m test
(custom target) the error below comes up.
Compile [ 99.0%]: hal_tick_overrides.c
[Error] hal_tick_overrides.c@53,56: 'US_TICKER_MASK' undeclared (first use in this function)
[ERROR] .\mbed-os\targets\TARGET_STM\hal_tick_overrides.c: In function 'HAL_GetTick':
.\mbed-os\targets\TARGET_STM\hal_tick_overrides.c:53:56: error: 'US_TICKER_MASK' undeclared (first use in this function)
53 | uint32_t elapsed_time = (((new_time - prev_time) & US_TICKER_MASK) + prev_tick_remainder);
| ^~~~~~~~~~~~~~
.\mbed-os\targets\TARGET_STM\hal_tick_overrides.c:53:56: note: each undeclared identifier is reported only once for each function it appears in
Target(s) affected by this defect ?
Possibly all STM targets
Toolchain(s) (name and version) displaying this defect ?
GCC-ARM: 9.2.1 20191025
What version of Mbed-os are you using (tag or sha) ?
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
mbed-cli: 1.10.1
How is this defect reproduced ?
main.cpp
#include "mbed.h"
int main() {
printf("test\n");
return 0;
}
custom_targets.json
{
"test": {
"inherits": ["NUCLEO_F412ZG"],
"supported_form_factors": [],
"overrides": {
"clock_source": "USE_PLL_HSE_XTAL"
}
}
}