This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Hex download via Ulink2

Hi,

through ULINK2 I want to download a hex file into a STM32 device.
I followed the instructions in the "IDE User's Guide-Flash Programming-HEX Files".
It allways ends up with the error "Could not load file xxx.AXF" though I named the
file as .hex or even without extension.
How can I make the prommer load this hex file?

Regards
Detlef

  • Putting xxx.hex in output folder that has the same file name except .axf is replaced with .hex should work.

    for example: instead Blinky.axf => Blinky.hex

    File name should be the same as one that build process would produce.

    Also, you have to take into account that addresses in hex file are in area that flash algorithm can write to, so that addresses in hex file are not on non-flashable addresses.

  • that's what I hoped it would work with. But it doesn't.

    uV4
    an empty project named P9
    STM32F103VB
    the target has been checked as STM32F103VBT6
    output folder is the same as project folder
    name of executable is P9 (without extension like .hex)
    the folder contains the P9.hex-file
    debugging is set to ULINK cortex Debugger
    the utilities are set appropriately and checked ok

    A click on the Load button raises the error "Error: Flash Download failed - Could not load file xxx\P9.AXF"
    where xxx is the correct path.

    At this point, is handling an ARM different from that of an 8051 ?

    I also tried the command line input:

    UV4 -f P9.hex
    or UV4 -f P9.hex -o P9.txt
    or UV4 -f P9.uvproj -o P9.txt

    In all three cases the uV4 GUI opens and the contents of the intel-hex file is displayed but
    no programming action is performed.

    Regards
    Detlef

  • You also have to change output file name in settings to P9.hex instead of P9

    In Options for Target -> Name of Executable change it from P9 to P9.hex

  • then the error reads : "....Could not load file xxx\P9.hex.AXF

  • hello!
    I have the same trouble..
    Does anybody know how fix it ?
    thanks