"#error directive: "CMSIS Target not recognised"" in file "lib/mbed/cmsis.h"
#include "mbed.h"
PwmOut servo(p21);
int main() {
servo.period(0.020); // servo requires a 20ms period
while (1) {
for(float offset=0.0; offset<0.001; offset+=0.0001) {
servo.pulsewidth(0.001 + offset); // servo position determined by a pulsewidth between 1-2ms
wait(0.25);
}
}
}
When I try to comple I got error:
<<code>>
"#error directive: "CMSIS Target not recognised"" in file "lib/mbed/cmsis.h"
<</code>>
<<code>>
#include "mbed.h"
PwmOut servo(p21);
int main() {
servo.period(0.020); // servo requires a 20ms period
while (1) {
for(float offset=0.0; offset<0.001; offset+=0.0001) {
servo.pulsewidth(0.001 + offset); // servo position determined by a pulsewidth between 1-2ms
wait(0.25);
}
}
}
<</code>>
Do you have any other libraries in the folder of your program? I dont think it should compile them if they aren't included, but it doesn't really make sense it tries to do anything with cmsis, that should be completely unrelated to this program.
Do you have any other libraries in the folder of your program? I dont think it should compile them if they aren't included, but it doesn't really make sense it tries to do anything with cmsis, that should be completely unrelated to this program.
click on mbed library in Your project and on righ side click Update. This should do the trick.
Thanks a lot, all is working, after update.
<<quote llumpu>>
Hello Roman,
click on mbed library in Your project and on righ side click Update. This should do the trick.
<</quote>>
Thanks a lot, all is working, after update.
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.
When I try to comple I got error: