Temp fix to work with F4 up to 64k of flash, changed chip detection