Fixed issues with the SDRAM and NOR Flash

modified the structure of files and fixed issues with sdram and nor
flash