Arm Mbed OS support forum

Mbed Studio 1.3.1 IntelliSence issue for Custom target

I use my own custom target “MCU_STM32H743IIT6”.
I got a lot of errors by IntelliSence:
image
And then clang turns off because too many errors.
But the project compiles without any error.

It looks like IntelliSence can’t see custom target headers (PinNames.h, etc).

When i use builtin target “NUCLEO_H743ZI2” IntelliSence works fine.

Here is my project structure:
project_dir
├── mbed-os
├── CUSTOM_TARGET_MCU_STM32H743IIT6
│⠀ ⠀⠀├── PeripheralPins.c
│⠀⠀ ⠀├── PinNames.h
│⠀⠀⠀ └── system_clock.c
├── source
│ ⠀ ⠀├── configs
│⠀ ⠀⠀│⠀⠀⠀⠀⠀└── periph_setup.h
│⠀⠀⠀ └── main.cpp
├── custom_targets.json
└── mbed_app.json

In file periph_setup.h I want to setup my own names for some pins.

Here is periph_setup.h file contents:

#include <PinNames.h>
static constexpr PinName A_IN_M = PF_13;
static constexpr PinName FB_VF = PF_14;

//Interfaces
static constexpr PinName I2C_2_SDA = PF_0;
static constexpr PinName I2C_2_SCL = PF_1;