Resolved! When using the Low Level libraries for the STM32L072RB I2C bus ( stm32l0xx_ll_i2c.h) I have a function available called LL_I2C_HandleTransfer. I have ported the code to STM32F401RE and the library ( stm32f4xx_ll_i2c.h) does not have this function?
I was wondering why the library function LL_I2C_HandleTransfer is not available in th F4 LL library?