Fixes

Fixed some issues with the existing code and added placeholder
FLASH_ADDR_SIZE definition line