[NUCLEO_F401RE] Update to STM32Cube driver V2.1.0

- use the same Cube driver version as in NUCLEO_F411RE
- solve issue with NULL and IAR