What is the smallest mcu which support Mbed,and the target board?
In terms of RAM/Flash capacity, the smallest MCU I used with Mbed-OS v5 bare metal is STM32F042K6. About 24KB flash and 5KB RAM are used by OS. So to do anything meaningful, you will probably need a MCU that has at least 32KB flash and 8KB RAM.