[ABANDONED] STM32F412RGT6 erase sector issues (RAM check)

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

  • [ABANDONED] STM32F412RGT6 erase sector issues (RAM check)

    Hi
    I have a question for J-Link.


    1. Generals
    * Target MCU : STM32F412RGT6
    * Development Environment : Windows 10
    * J-Link S/W Version : 6.16F
    * H/W Version : V10.10


    2. Indicated Symptom
    I can erased internal flash by ST-LINK tool.
    But Error occurred When I erased the internal flash by J-LINK.
    Refer to the image.


    -----------------------------DBG LOG START-----------------------------
    Erasing selected sectors ...
    - Connecting ...
    - Connecting via USB to J-Link device 0
    - Target interface speed: 2000 kHz (Fixed)
    - VTarget = 3.311V
    - Executing init sequence ...
    - Executing Reset (0, 0 ms)
    - Initialized successfully
    - Target interface speed: 2000 kHz (Fixed)
    - J-Link found 2 JTAG devices. Core ID: 0x4BA00477 (None)
    - Connected successfully
    - 12 of 12 sectors selected, 1 range, 0x8000000 - 0x80FFFFF
    - Start of preparing flash programming
    - ERROR: Failed to prepare for programming.
    RAM check failed @ addr 0x200006F4.
    RAM check failed while testing 0x1050 bytes @ addr 0x200006F4.
    - End of preparing flash programming
    - ERROR: Failed to erase sectors
    Disconnecting ...
    - Disconnected
    -----------------------------DBG LOG END-----------------------------

    3. Question
    What is the cause of the error message?


    Thank you!
  • Hi,


    I just gave it a try using a STM32F412G-DISCO eval board and could not reproduce any issues.
    Erasing, programming and verification works fine.

    What is the cause of the error message?

    The RAMCheck was interrupted or failed.
    This is usually caused by a unwanted local reset of the device due to a "monitoring system" like a watchdog, brown out or a "side channel" memory access, e.g by a DMA.

    Is the device "factory-fresh" or is there already a target application running?
    Could you please give the STM32 Utility (JLinkSTM32.exe) a try in order to reset the option bytes to factory defaults?


    Best regards,
    Niklas
    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.
  • STM32F412RGT6 erase sector issues (RAM check)

    Thank you for your answer.

    Device was initilized by ST-Link Utility "Erase Chip"

    and Option Byte was Level 0.

    I changed J-Link Debug, PC, and USB cable but I had same problem.