Migrated other functions and put base address for flash's functions