Skip to main content
NSirm.1
Associate 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

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.

4 replies

Tesla DeLorean
Guru
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.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
NSirm.1
NSirm.1Author
Associate 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.

Tesla DeLorean
Guru
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

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
MM..1
Super User
October 31, 2020

Use Keil for this little code is more more better