-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STM32 target inherit: US_TICKER_MASK not defined #12990
Comments
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. |
It's only ok up to no later than d058586 |
ping @jeromecoutant |
It's working on my side... |
@pilotak Do you find the issue on your side ? |
Sorry for delay. I did an investigation and it only works if there in no
#ifndef MBED_DEVICE_H
#define MBED_DEVICE_H
#include "objects.h"
#define CONF_BOARD_TYPE 1
#define CONF_BOARD_REV 3
#define VOLTAGE_REFERENCE 12100000UL
#define PROCESSOR_TYPE 1
#endif |
Good catch Could you check jeromecoutant@4740775 Thx |
yep, that fixed it |
Fix in #13090 is invalid, and I'm requesting it be reverted. The correct fix here would have been to ensure that you have the necessary include of us_ticker_defines.h in your replacement device.h, as the original device.h did. Or make your device.h include the original device.h, rather than objects.h, then add your defines. (I'm not actually clear on include path set-up here - if you have your own device.h, is it deterministic whether TARGET_TEST/device.h or TARGET_STM/device.h gets read?) |
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.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) ?
e345542
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
custom_targets.json
The text was updated successfully, but these errors were encountered: