AnsweredAssumed Answered

FlexSPI port B1 configuration

Question asked by Lutz Volkmann on Jan 14, 2020
Latest reply on Jan 15, 2020 by Kerry Zhou

Hello,

 

our device consist of iMX 1050 RT connected SPI NOR Flash via FlexSPI port A1 and connected via FlexSPI port B1.
Data strobe is configured as internal loopback for both.
If I try to execute FlexSPI commands on port B1, I see no signal activity on port B1 but on port A1.
The FlexSPI init sequence is as follows:

 

flexspi_device_config_t deviceconfigNor = {
    .flexspiRootClk = 120000000,
    .flashSize = NOR_FLASH_SIZE,
    .CSIntervalUnit = kFLEXSPI_CsIntervalUnit1SckCycle,
    .CSInterval = 2,
    .CSHoldTime = 3,
    .CSSetupTime = 3,
    .dataValidTime = 0,
    .columnspace = 0,
    .enableWordAddress = 0,
    .AWRSeqIndex = 0,
    .AWRSeqNumber = 0,
    .ARDSeqIndex = NOR_CMD_LUT_SEQ_IDX_READ_FAST_QUAD,
    .ARDSeqNumber = 1,
    .AHBWriteWaitUnit = kFLEXSPI_AhbWriteWaitUnit2AhbCycle,
    .AHBWriteWaitInterval = 0,
};

 


flexspi_device_config_t deviceconfigNand = {
    .flexspiRootClk = 120000000,
    .flashSize = NAND_FLASH_SIZE,
    .CSIntervalUnit = kFLEXSPI_CsIntervalUnit1SckCycle,
    .CSInterval = 2,
    .CSHoldTime = 3,
    .CSSetupTime = 3,
    .dataValidTime = 0,
    .columnspace = 0,
    .enableWordAddress = 0,
    .AWRSeqIndex = 0,
    .AWRSeqNumber = 0,
    .ARDSeqIndex = 0,
    .ARDSeqNumber = 0,
    .AHBWriteWaitUnit = kFLEXSPI_AhbWriteWaitUnit2AhbCycle,
    .AHBWriteWaitInterval = 0,
};


    flexspi_config_t config;
    FLEXSPI_GetDefaultConfig(&config);

 

    FLEXSPI_Init(EXAMPLE_FLEXSPI, &config);

    FLEXSPI_SetFlashConfig(EXAMPLE_FLEXSPI, &deviceconfigNor, kFLEXSPI_PortA1);
    FLEXSPI_SetFlashConfig(EXAMPLE_FLEXSPI, &deviceconfigNand, kFLEXSPI_PortB1);

What shall I do to get port B1 working ?

Thanks in advance.
Lutz

Outcomes