RZA1L QSPI flash programming problem


I have a problem about programming QSPI flash with either e2 studio or .bat file command system. I use Stream It kit.

it gives result succesfull download to QSPI flash but application not running.

also I couldn't see any drivers and sample example for SPI multi IO bu controller. 

any idea about these?



Parents Reply Children
  • I would say if you have a Stream it board, then try to load this GUI demo:


    There will be a batch file under the "FlashTools" directory.

    If you cannot program the board using that script, then maybe your board is bad.
  • We encountered also a problem with QSPI programming with the RZA1M and JLink.
    The cause was that the program switched the QSPI chip to the QSPI mode and therfore all commands need to be sent in this mode. The Segger JLink can not detect this and fails to read or write data to or from the flash chip.
    Solution was to execute a program in RAM that sets the QSPI chip back to normal SPI operation.
  • I need SPI multio IO bus controller driver for this but I coludn't find any yet. I have to write my own ?
  • This looks like a Stream-IT V1.5 board with Spansion QSPI flash. Please check.

    If you have downloaded the latest support for the Stream-IT board, it may be configured for the newer boards with two Macronix devices fitted. In this case you will need to ensure the QSPI boot Loader has been built with the "USE_SPANSION" define located in the spibsc_userdef.h in the renesas\configuration folder.

    If the board has a Macronix QSPI device fitted, then please select USE_MACRONIX, but you will need to also select Single device "SPIBSC_MODE (DDR_SINGLE_4B)" as the photograph shows only one SPI device fitted.

    Please also check the project settings for the device selected, and ensure it does NOT have the "R7S721031_DualSPI" selected. Choose the setting for the device only "R7S721031".

    I could not tell if you were able to program your board at all, if you can, program the updated boot loader as above.

    Please let us know how you get on.
  • right, SPANSION chip mounted on board, I can not program the QSPI chip ; so if I edited the correct settings , how will I download to the flash ?. chip on board is R7S7210121VC .

  • OK, so there are two options.
    1: the QSPI device is booting, but on connection is configuring the QSPI to a state where it can no longer be used. this can happen if the incorrect boot loader is used. This will happen very quickly at power on. The only solution is to erase the device.
    2: The board is broken.

    So assuming 1:

    Please find the Segger installation folder, possibly here:
    C:\Program Files (x86)\SEGGER\JLink_(version)

    Please run JFlash.exe
    Choose File / New Project
    Select the correct device in the dialog presented (use the device number on your chip).
    Change interface to JTAG

    Then select Target / Manual Programming / Erase Chip

    Wait for the process to complete.

    You should then be able to connect to the device and program normally again.

    Please let me know if this works..

    I see that qspi communication is ok on the scope. But erasing the device is not succesfull. I doubt that qspi spansion chip may be in a protected state that I can not erase the device, So I can not erase or program the device. J link flasher says erasing ok but when I look in the memory browser e2 studio looks erase (memory area is different from 0xff) unsuccesfull.