Skip to main content
Visitor II
October 30, 2020
Question

Hi i am trying to load .hex file in my MCU using ST LINK Utility but i am getting the following error

  • October 30, 2020
  • 3 replies
  • 2670 views

I checked the base address in linker script and its matching with the one in ST link utility. Below are the attachements of ST link utility ,STM32CubeIDE Console and hex file

    This topic has been closed for replies.

    3 replies

    Graduate II
    October 30, 2020

    Application has the wrong parameters, lacks a full file name.

    The address is wrong, there is no flash memory at 0x8000, it starts at 0x08000000

    Your .HEX is missing initial records

    More likely a makefile issue than a linker script, but you provided neither.

    NSirm.1Author
    Visitor II
    October 30, 2020

    Thank you

    I changed the address in ST link utility but its showing the same error

    Could you please tell me how do i rectify the issue. Thank you.

    Graduate II
    October 31, 2020

    Make sure the linker script builds at the right address, and have the STM32 Cube Programmer load the .ELF file

    https://www.st.com/en/development-tools/stm32cubeprog.html

    Graduate II
    October 31, 2020

    Use Keil for this little code is more more better