Hi
Platform: RT1021 with NOR flash on 2nd pinmux and not using DQS.
(Flash device same as RT1020-EVK.)
See function: Nor_Flash_Init
File: nor_flash/fsl_flexspi_nor_flash.c
Lines: 3520 - 3529
/* Get FLEXSPI default settings and configure the flexspi. */
FLEXSPI_GetDefaultConfig(&flexspiConfig);
/*Set AHB buffer size for reading data through AHB bus. */
flexspiConfig.ahbConfig.enableAHBPrefetch = true;
flexspiConfig.ahbConfig.enableAHBBufferable = true;
flexspiConfig.ahbConfig.enableReadAddressOpt = true;
flexspiConfig.ahbConfig.enableAHBCachable = true;
flexspiConfig.rxSampleClock = kFLEXSPI_ReadSampleClkLoopbackFromDqsPad;
FLEXSPI_Init((FLEXSPI_Type *)handle->driverBaseAddr, &flexspiConfig);
This FLEXSPI_Init code was added to Nor_Flash_Init in SDK 2.8.0 (used to be called separately in the demo evkmimxrt1020_flash_component_nor). Which means I cannot set flexspiConfig.rxSampleClock to something different.
Please revert this modification.
Many thanks and regards,
Ronnie
Hello Ronnie,
Could you please specify where did you see that function? In my case, I imported the example flexspi_nor_polling_transfer from SDK 2.8.0 and I checked the function flexspi_nor_flash_init in the file flexspi_nor_flash_ops.c and inside this function, we never call the FLEXSPI_Init function.
Regards,
Victor
Hi Victor,
Both these demos have the same problem in SDK 2.8.0:
File: evkmimxrt1020_flash_component_nor\nor_flash\fsl_flexspi_nor_flash.c
Function:
status_t Nor_Flash_Init(nor_config_t *config, nor_handle_t *handle)
Lines: 3520 - 3529
(File also found here: SDK_2.8.0_EVK-MIMXRT1020\components\flash\nor\flexspi\fsl_flexspi_nor_flash.c)
File: evkmimxrt1020_flexspi_nor_polling_transfer\source\flexspi_nor_flash_ops.c
Function:
void flexspi_nor_flash_init(FLEXSPI_Type *base)
Lines: 331 - 339
(File also found here: SDK_2.8.0_EVK-MIMXRT1020\boards\evkmimxrt1020\driver_examples\flexspi\nor\polling_transfer\flexspi_nor_flash_ops.c)
Many thanks,
Ronnie
Hi Ronnie,
I just compared the function void flexspi_nor_flash_init(FLEXSPI_Type *base) of these two SDKs (2.7.0 and 2.7.8) and the function is exactly the same in both cases. Am I missing something?
Regards,
Victor