Hello,
I started a mbed project on NUCLEO_U575ZI_Q board, and i have some issues with clang intellisense (I think)
Here is a dummy source code for exemple :
#include “mbed.h”
Ticker ticker;
bool ledSwitch = false;
int main()
{
DigitalOut led(LED1);
ticker.attach(callback([](){
ledSwitch = true;
}), 1000ms);
while (true) {
if (ledSwitch)
{
led = !led;
ledSwitch = false;
}
ThisThread::sleep_for(1ms);
}
}
In this exemple, clang intellisense make an error on “ticker.attach” : [Clang IntelliSense] Error : no matching member function for call to ‘attach’ test C : \Users\maxime\Desktop\test\test\main.cpp 10
I have this error too : [Clang IntelliSense] Error : “Unknown ARM architecture for exclusive access” test C : \Users\maxime\Desktop\test\test\mbed – os\platform\include\platform\mbed_atomic.h 95
However, the code compiles and runs correctly on the boards.
I tried with another board (NUCLEO_L496ZG) and everything works perfeclty with no error from intellisense.
Setup :
Windows 11
Visual Studio 2022 17.8.11
VisualGDB 6.0R3 build 5191
GCC 9.3.1
Thank you
-
This topic was modified 4 months, 3 weeks ago by mgraceltis.
-
This topic was modified 4 months, 3 weeks ago by mgraceltis.