cancel
Showing results for 
Search instead for 
Did you mean: 

Differences between program with keil directly and stm32 st-link

parisa
Senior
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.

2 REPLIES 2
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

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
Up vote any posts that you find helpful, it shows what's working..