program flash; WARNING: Could not set S_RESET_ST

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

  • program flash; WARNING: Could not set S_RESET_ST

    Using IAR for ARM.
    I first worked with the dicovery EV board (stm32f4-
    discovrey) which uses ST-LINK and all worked fine.
    Now ,using our board im having trouble debugging/loading to internal
    flash.using the stm32f427vi on our board. boot0=1 boot1=0;using segger jlink
    EDU;I am able to connect once with IAR workbench and run/debug the SW.Second
    time I get "the flash loader program reported an error".When setting the
    boot to load directly from flash(boot0=0, boot1=1)the SW is running ok but I
    cant debug or load flash..
    When chacking with jlink commander I get the folllowing:

    SEGGER J-Link Commander V4.82 ('?' for help) Compiled Mar 10 2014 19:07:55
    DLL version V4.82, compiled Mar 10 2014 19:07:45
    Firmware: J-Trace Cortex-M Rev.3 compiled May 9 2014 18:01:15
    Hardware: V3.10
    S/N: 183100033
    OEM: IAR
    Emulator has RAWTRACE capability
    VTarget = 3.203V
    Info: TotalIRLen = 9, IRPrint = 0x0011
    Info: Found Cortex-M4 r0p1, Little endian.
    Info: FPUnit: 6 code (BP) slots and 2 literal slots
    Info: TPIU fitted.
    Info: ETM fitted.
    Found 2 JTAG devices, Total IRLen = 9:
    #0 Id: 0x4BA00477, IRLen: 04, IRPrint: 0x1, CoreSight JTAG-DP (ARM)
    #1 Id: 0x06419041, IRLen: 05, IRPrint: 0x1, STM32 Boundary Scan
    Cortex-M4 identified.
    Target interface speed: 100 kHz

    And after reset I get:
    J-Link>r
    Reset delay: 0 ms
    Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET
    bit.

    WARNING: Could not set S_RESET_ST

    WARNING: Could not set S_RESET_ST
    J-Link>

    Please advise,
    project is pending for this reason.

    Thanks in advance,
  • Hi,

    Sounds a bit like a hardware / connection issue.
    We also use plenty of STM32F4 devices internally and they work fine.

    Did you give the STM32F4-Discovery a try with J-Link?
    How to connect a discovery board to J-Link: segger.com/admin/uploads/evalB…kToSTM32F407Discovery.pdf

    Could you please clarify?:
    In your description of the problem, you wrote that you are using a J-Link EDU but the Commander output shows a J-Trace Cortex-M (OEM product from IAR).
    Are you seeing this problem with both J-Links?


    - Alex
    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.