Arm Mbed and Pelion Device Management support forum

Error: Unknown type name "I2CSlave" MAX32620FTHR

I tried to compile this code for the MAX32620FTHR as a I2C slave. However there was an error saying unknown type name “I2CSlave” but the header file “mbed.h” is included. Does anybody know how I could troubleshoot it? I’ve added a picture as well:

Maxim targets do not have I2CSlave or SPISlave code in the Mbed library.

The “device_has” section (line 9235) lists the available peripherals supported.

But it does look like there has been some recent activity in the examples so hopefully the main Mbed library will be updated to include the missing code.