I will connect the two external memory SDRAM and SRAM to the SEMC module.
How do I control the switching of SEMC Pin Mux ?
Both SDRAM and SRAM use the same SEMC DATA, ADDR lines, and you need to use different SEMC CS to control the switching.