add eraseAll function to handle different erase methods for different EFM32 familys