Skip to main content
parisa
Associate III
July 21, 2017
Question

Differences between program with keil directly and stm32 st-link

  • July 21, 2017
  • 2 replies
  • 620 views
Posted on July 21, 2017 at 20:46

Hi,

I'm writing a code that works fine when I program directly via Keil with this settings

0690X00000607dYQAQ.png

However if I compile the project and write hex file with stm32 st-link it doesn't work fine. It is good to mention that I active ''read out protection'' bit.

0690X00000607diQAA.png

my means is that I my Ethernet protocol didn't work when I program with st-link however it works fine when I program it directly via keil with the same programmer.

    This topic has been closed for replies.

    2 replies

    Vangelis Fortounas
    Associate II
    July 21, 2017
    Posted on July 21, 2017 at 21:00

    Hello!

    How do you produce this hex file?

    Did you tried to load as a binary file? with stlink?

    look

    http://www.keil.com/support/docs/3213.htm

    how to produce this binary.

    regards vf

    Tesla DeLorean
    Guru
    July 21, 2017
    Posted on July 21, 2017 at 21:47

    Try not enabling read-out protection and do a byte level verify. Heck have your own code checksum the image it is trying to execute, and make a determination if they are actually writing different things to flash.

    Version of ST-LINK Utilities?

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