[SOLVED] ZBit Flash support

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

  • [SOLVED] ZBit Flash support

    Hi,
    In continue of this thread.
    I downloaded JFlash 6.86 and try to work with ZBit flash - it doesnt work, I cant erase and program flash.
    J-Flash log:

    Source Code

    1. Erasing chip ...
    2. - 1024 sectors, 1 range, 0x60000000 - 0x63FFFFFF
    3. - Start of determining flash info (Bank 0 @ 0x60000000)
    4. - End of determining flash info
    5. - Flash bank info:
    6. - 1024 * 64 KB @ 0x60000000
    7. - Start of preparing flash programming
    8. - End of preparing flash programming
    9. - Start of determining dirty areas in flash cache
    10. - End of determining dirty areas
    11. - CPU speed could not be measured.
    12. - Chip erase not supported for flash bank @ 0x60000000. Switched to sector erase
    13. - Start of determining dirty areas in flash cache
    14. - End of determining dirty areas
    15. - Start of erasing sectors
    16. - ERROR: Failed to initialize RAMCode
    17. - Erasing range 0x60000000 - 0x6001FFFF ( 2 Sectors, 128 KB)
    18. - ERROR: Timeout while erasing sectors, core does not stop. (PC = 0x200002C4, XPSR = 0x01000000, SP = 0x20001FFC)!
    19. - ERROR: Failed to erase sectors.
    20. - End of erasing sectors
    21. - ERROR: Erase failed
    22. - Start of restoring
    23. - End of restoring
    24. - ERROR: Failed to erase chip
    25. Disconnecting ...
    26. - Disconnected
    Display All
    Can anyone help again?
    Thanks.
  • Hi,
    Thank you for your inquiry.

    We will look into this as soon as possible.

    Best regards,
    Fabian
    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.
  • Hi,
    We do not have your specific hardware,
    but we are able to program and erase the ZBit flash via another MCU.

    Could you make sure that the pins of the flash are correctly connected?

    If everything is connected correctly,
    would it be possible for you to send us the hardware?

    Best regards,
    Fabian
    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.
  • We are using NXP MIMXRT1051CVL5B processor.
    We changed JLinkDevices.xml for QSPI support:

    Source Code

    1. <Device>
    2. <ChipInfo Vendor="NXP" Name="MCIMXRT1051_QSPI" WorkRAMAddr="0x20000000" WorkRAMSize="0x00080000" Core="JLINK_CORE_CORTEX_M7" JLinkScriptFile="Devices/NXP/iMXRT105x/NXP_iMXRT105x.pex" />
    3. <FlashBankInfo Name="HyperFlash" BaseAddr="0x60000000" MaxSize="0x04000000" Loader="Devices/NXP/iMXRT105x/NXP_iMXRT105x_QSPI.elf" LoaderType="FLASH_ALGO_TYPE_OPEN" />
    4. </Device>
    5. <Device>
    6. <ChipInfo Vendor="NXP" Name="MIMXRT1051xxxxA_QSPI" WorkRAMAddr="0x20000000" WorkRAMSize="0x00080000" Core="JLINK_CORE_CORTEX_M7" JLinkScriptFile="Devices/NXP/iMXRT105x/NXP_iMXRT105x.pex" Aliases="MIMXRT1051xxx5A_QSPI; MIMXRT1051CVL5A_QSPI; MIMXRT1051xxx6A_QSPI; MIMXRT1051DVL6A_QSPI" />
    7. <FlashBankInfo Name="HyperFlash" BaseAddr="0x60000000" MaxSize="0x04000000" Loader="Devices/NXP/iMXRT105x/NXP_iMXRT105x_QSPI.elf" LoaderType="FLASH_ALGO_TYPE_OPEN" />
    8. </Device>
    9. <Device>
    10. <ChipInfo Vendor="NXP" Name="MIMXRT1051xxxxB_QSPI" WorkRAMAddr="0x20000000" WorkRAMSize="0x00080000" Core="JLINK_CORE_CORTEX_M7" JLinkScriptFile="Devices/NXP/iMXRT105x/NXP_iMXRT105x.pex" Aliases="MIMXRT1051xxx5B_QSPI; MIMXRT1051CVL5B_QSPI; MIMXRT1051xxx6B_QSPI; MIMXRT1051DVL6B_QSPI" />
    11. <FlashBankInfo Name="HyperFlash" BaseAddr="0x60000000" MaxSize="0x04000000" Loader="Devices/NXP/iMXRT105x/NXP_iMXRT105x_QSPI.elf" LoaderType="FLASH_ALGO_TYPE_OPEN" />
    12. </Device>
    Display All
    I found if I change device to NXP MIMXRT1062xxx5A (for example) in JFlash project, erasing and programming works.
    But it doen't work for MCUExpresso, so I need help anyway :D
  • Hi everyone,
    For further information, please refer to:
    wiki.segger.com/i.MXRT1050#QSPI_flash

    We will close this thread now.

    Best regards,
    Fabian
    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.