Board: STM NUCLEO-F411RE
Libraries used:
mbed.h
Keypad.h (keypad | Mbed)
TextLCD (TextLCD - TextLCD library for controlling various LCD panel… | Mbed)
Error message:
unknown type name ‘Serial’
too many arguments to function call, expected single argument ‘func’, have 2 arguments
too many arguments to function call, expected single argument ‘func’, have 2 arguments
too many arguments to function call, expected single argument ‘func’, have 2 arguments
too many arguments to function call, expected single argument ‘func’, have 2 arguments
no type named ‘wait’ in ‘rtos::Thread’
compile mbed-os/connectivity/cellular/source/framework/AT/AT_CellularStack.cpp
compile mbed-os/connectivity/cellular/source/framework/common/APN_db.cpp
compile mbed-os/connectivity/cellular/source/framework/AT/AT_ControlPlane_netif.cpp
compile mbed-os/connectivity/cellular/source/framework/AT/AT_CellularNetwork.cpp
compile mbed-os/connectivity/cellular/source/framework/AT/AT_CellularDevice.cpp
compile keypad/Keypad.cpp
/src/keypad/Keypad.cpp:3:8: error: unknown type name ‘Serial’
extern Serial PC;
^
/src/keypad/Keypad.cpp:31:30: error: too many arguments to function call, expected single argument ‘func’, have 2 arguments
_rows[0]->rise(this, &Keypad::_cbRow0Rise);
~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/extras/mbed-os.lib/drivers/include/drivers/InterruptIn.h:106:10: note: ‘rise’ declared here
void rise(Callback<void()> func);
^
/src/keypad/Keypad.cpp:35:30: error: too many arguments to function call, expected single argument ‘func’, have 2 arguments
_rows[1]->rise(this, &Keypad::_cbRow1Rise);
~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/extras/mbed-os.lib/drivers/include/drivers/InterruptIn.h:106:10: note: ‘rise’ declared here
void rise(Callback<void()> func);
^
/src/keypad/Keypad.cpp:39:30: error: too many arguments to function call, expected single argument ‘func’, have 2 arguments
_rows[2]->rise(this, &Keypad::_cbRow2Rise);
~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/extras/mbed-os.lib/drivers/include/drivers/InterruptIn.h:106:10: note: ‘rise’ declared here
void rise(Callback<void()> func);
^
/src/keypad/Keypad.cpp:43:30: error: too many arguments to function call, expected single argument ‘func’, have 2 arguments
_rows[3]->rise(this, &Keypad::_cbRow3Rise);
~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/extras/mbed-os.lib/drivers/include/drivers/InterruptIn.h:106:10: note: ‘rise’ declared here
void rise(Callback<void()> func);
^
/src/keypad/Keypad.cpp:137:13: error: no type named ‘wait’ in ‘rtos::Thread’
Thread::wait(_debounce);
~~~~~~~~^
6 errors generated.
Internal error.
Build failed
Build failed
I am getting all of these errors in Keil Studio, but when I use the same code and libraries in Mbed Online compiler, no errors. Is there a workaround for this problem?