Arm Mbed OS support forum

Today my code can not to be build suddenly

I’m using same code for long time , but suddenly it can not to be build at today.


static PwmOut PwmOutCH1(p21);//brake actuator

Error: Constant “p21” is not a type name in “OutputIF.h”, Line: 15, Col: 26

crome online build

same at other pin .

why? please help me


can you share what a tool (Online compiler, MbedStudio, mbed CLI) and MbedOS version did you use?
I tried to import blinky into the Online Compiler and put static PwmOut PwmOutCH1(p21) inside. The compilation was OK.

BR, Jan