Hi Felix Shih,
Answer your 3 questions:
1) how to get the flash driver .cfx file?
We don't have the specific .cfx file for W25Q32jv, you can try the IS25WP064A .cfx.
2) where to get the flash config define?
const flexspi_nor_config_t qspiflash_config
You don't to modify the flexspi_nor_config_t qspiflash_config. Because the read LUT is the same as IS25WP064A.
But, I think you can run this SDK code:
SDK_2.5.1_EVKB-IMXRT1050\boards\evkbimxrt1050\driver_examples\flexspi\nor\polling_transfer
And modify the QE code like this:
status_t flexspi_nor_enable_quad_mode(FLEXSPI_Type *base)
{
flexspi_transfer_t flashXfer;
status_t status;
uint32_t writeValue = 0x0200;//0x40;// enable bit 9 in the status, it is QE bit.
/* Write enable */
status = flexspi_nor_write_enable(base, 0);
if (status != kStatus_Success)
{
return status;
}
/* Enable quad mode. */
flashXfer.deviceAddress = 0;
flashXfer.port = kFLEXSPI_PortA1;
flashXfer.cmdType = kFLEXSPI_Write;
flashXfer.SeqNumber = 1;
flashXfer.seqIndex = NOR_CMD_LUT_SEQ_IDX_WRITESTATUSREG;
flashXfer.data = &writeValue;
flashXfer.dataSize = 2;
status = FLEXSPI_TransferBlocking(base, &flashXfer);
if (status != kStatus_Success)
{
return status;
}
status = flexspi_nor_wait_bus_busy(base);
return status;
}
As you know, the Winbond QSPI QE bit is S9

This is different with IS25WP064A.
You also need to erase sector, in the customLUT array, you need to change the 0xD7 for 0x20.
You can also change the size with 0x52 for 32KB or 0xD8 for 64KB block erase.
3) Does mfgtool support Winbond QSPI flash? Do I need to modify anything?
yes, mfgtool can support winond QSPI flash, you just need to select the program_flexspinor_image_qspinor_status_reg2_bit1.bd , choose the correct QE bit, it can be found in the RT1050 flashloader folder: Flashloader_i.MXRT1050_GA\Flashloader_RT1050_1.1\Tools\bd_file\imx10xx
BTW, I highly recommend you use our new tool, MCUBOOTutility, which can be downloaded from this link:
https://github.com/JayHeng/NXP-MCUBootUtility/releases/tag/v1.4.0
You can find the user manual from this link:
GitHub - JayHeng/NXP-MCUBootUtility: A one-stop utility tool based on Python2.7+wxPython4.0, it can ...
This tool can support winbond QSPI FLASH directly, and it is easy to use.
You just need to configure the device configuration like this:

You can try it on your side.
If you still have question about it, please kindly let me know.
Have a great day,
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------