Flash programming error on STM32L452

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

  • Flash programming error on STM32L452

    Hi,

    I noticed that J-link fails to program the STM32L452, if image size exceeds 256KB.

    Please refer attached file for log messages. It looks J-link treat STM32L452 as dual bank device,
    but it is SINGLE bank device.

    Regards,

    Tosh
    Images
    • jlink_stm32l452.png

      601.06 kB, 2,374×1,964, viewed 722 times
  • Hello Tosh,

    Thank you for your inquiry.
    Such an issue is not known to us.
    Could you try out the test bin i have attached. Does that work for you?
    If not does it show the same error?
    I noticed that J-link fails to program the STM32L452, if image size exceeds 256KB.

    So it works for you with a smaller image?
    Could you provide both working and not working images?
    Does doing a erase, then power on reset the target device and then program work with your images?

    Best regards,
    Nino
    Files
    • 384kB_test.bin

      (393.22 kB, downloaded 343 times, last: )
    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.
  • [SOLVED] Flash programming error on STM32L452

    Hello,

    Thanks for your response.

    Yes, programming works fine for the images smaller than 256K.

    My target is Nucleo-L452 board with the ST-Link reflashed to J-Link.
    When I use J-link erase command, it works with out any problem.
    I had restored the ST-Link and tried to use ST-Link Utility, then I noticed that "chip erase"
    failed with the message telling "some pages/sectores are read protected".
    (But, I didn't change any option bytes setting. ?( )

    So, I tried to erase all sectors by using ST-Link utility "sectors erase" command and it works!

    Now, I reflashed to J-link again, and confirmed I can program images bigger than 256kB! :thumbsup:

    I guess that it may related to silicon errata found in earlier production runs.

    Regards,

    Tosh
  • Hi,

    Great to hear that you are up and running again.
    We will consider this case as closed then.

    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.