fixes for perfs
enabled flash memory select on cpp