Hi Harry,
The sample code only provides how to access NOR Flash ID on PortA and I try to add code to access PortB with PSRAM connected on MCX-N5XX-EVK. Here is the experiment result for you reference:
The FlexSPI setting:
PortA->NOR FLASH
PortB->PSRAM
Test Case 1 : Successful
Initial PortA and Read PortA flash ID(1 byte)

Test Case 2 : Successful
Initial Port B and Read Port B flash ID(1 byte)

Test Case 3 : Failed
Initially both PortA and Port B then read PortA and Port B flash ID(1 byte) individually with the address

Here are the code snippets for your reference. Please check if we made some mistakes or need more configuration on PortA and PortB situation.
code modification on flexspi_nor_flash_init for initalize both Port A and Port B flash device

Add offset to flashXfer.deviceAddress to read Port B device

Here are the modified files and the whole project archive for your reference: