Stacked mode doubles the number of sectors and device size while parallel mode doubles the sector size and the device size. Make sure that this is accounted for in the device size accessor. --- bsps/shared/dev/spi/xqspipsu-flash-helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bsps/shared/dev/spi/xqspipsu-flash-helper.c b/bsps/shared/dev/spi/xqspipsu-flash-helper.c index 69c4035e6a..10e1066173 100644 --- a/bsps/shared/dev/spi/xqspipsu-flash-helper.c +++ b/bsps/shared/dev/spi/xqspipsu-flash-helper.c @@ -2333,7 +2333,8 @@ u32 QspiPsu_NOR_Get_Sector_Size(XQspiPsu *QspiPsuPtr) u32 QspiPsu_NOR_Get_Device_Size(XQspiPsu *QspiPsuPtr) { - if(QspiPsuPtr->Config.ConnectionMode == XQSPIPSU_CONNECTION_MODE_STACKED) { + if(QspiPsuPtr->Config.ConnectionMode == XQSPIPSU_CONNECTION_MODE_STACKED + || QspiPsuPtr->Config.ConnectionMode == XQSPIPSU_CONNECTION_MODE_PARALLEL) { return Flash_Config_Table[FCTIndex].FlashDeviceSize * 2; } return Flash_Config_Table[FCTIndex].FlashDeviceSize; -- 2.39.2 _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel