[NUCLEO_L053R8] Fix issue with file upper case file name

+ code cleanup