[SOLVED] HOW TO QSPI FLASH WRITE ON NXP IMXRT1060-EVK BOARD

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] HOW TO QSPI FLASH WRITE ON NXP IMXRT1060-EVK BOARD

    Hi there,

    i have a IMXRT1060-EVK BOARD with ISSI QSPI Flash(IS25WP128).

    i have "SEGGER Flasher ARM JTAG" and jLink version below
    SEGGER J-Link Commander V6.42c (Compiled Feb 11 2019 17:06:25)

    i am a beginner of jtag.

    i want to write U-boot to QSPI Flash using JTAG.

    i deleted the QSPI FLASH as follows, and U-BOOT write to QSPI FLASH.

    i do flash erase command "erase all" -> "exec EnableEraseAllFlashBanks" -> "erase all"
    attached file "s_01.png"

    i do flash write command "loadfile <path> <addr>"
    attached file "s_02.png"

    but, U-BOOT is not working (U-boot binary is a normal working binary)

    is this the right way my proceed?

    i don't know why u-boot is not work.

    could you give me a guide?

    please help me. fixed this problem.

    thank you.
    Images
    • s_01.png

      41.96 kB, 1,220×1,052, viewed 860 times
    • s_02.png

      46.27 kB, 1,220×1,052, viewed 738 times
  • Hello,

    Thank you for your inquiry.
    Such an issue is not known to us.
    Could you try Flashing your device with J-Flash software?
    Execute the following steps:
    - erase (F4)
    - open your uboot image in J-Flash and program & verify (F6)

    Does this work or do you get an error message?
    If this worked without any error message then the image is Flashed just as provided by you.
    Why it is not booting then check the iMXRT reference manual and consult with NXP support for more target specific information.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Hello,

    The referenced issue is unrelated to the one you are seeing. There the issue was incorrect behaviour by the GDB client.
    Attached to this thread you can find an example project I used for testing.
    Could you load the project in J-Flash software then try the following steps:
    - Check if the example .mot file is loaded correctly in J-Flash
    - Erase chip (F4)
    - Blank Check (F2)
    - Program & Verify (F6)
    - If everything was completed without any error message writing the test image to Flash worked so the Flash loader is working as intended

    Is this successful for you to?
    Do you get any error message when Flashing your uboot image instead?
    If not everything is correct and we suggest contacting NXP about the boot issues as this is not related to Segger hardware or software.

    Best regards,
    Nino
    Files
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Hello, Nino

    Thanks for your support

    I think i found the cause.

    When U-Boot is programmed with J-FLASH,
    The SR register of QSPI FLASH default disable, so did not work U-Boot programming with J-TAG.

    QSPI flash datasheet is over 1MB.
    so, i captured part of STATUS REGISTER table
    (our use QSPI Flash is is25wp128)

    below issi qspi flash memory data sheet
    6.2 Status Register Bit Definition
    Quad Enable bit:
    “0” indicates the Quad output function disable (default)
    “1” indicates the Quad output function enable

    Bit6 of QSPI FLASH MEMORY's STATUS REGISTER in ISSI QE (Non-Volatile) seems to be the cause.

    How can I enable the SR Register BIT6 of QSPI FLASH when programming with J-TAG(JLINK or JFLASH)?

    How do i proceed to receive support?

    Best Regards
    Thank you.
    Images
    • K-063.png

      101.94 kB, 855×781, viewed 498 times
  • Hello,

    To make sure we understand you correctly here, you need QE Bit to be enabled after Flash download. Is that correct?
    Is this a prerequisite of your UBoot image?
    Programming the uboot image worked but it did not start because QE is not enabled?
    Is that correct?

    EDIT:
    To enable the QE bit the boot header for the QSPI can be used. How to configure this can be found in NXP documentation.
    For more questions about the boot header we suggest contacting NXP support.
    An example implementation for a generic boot header can be found on our Wiki for the iMXRT1050 series:
    wiki.segger.com/I.MXRT1050#Examples

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.