I need help loading a new hex file. I keep getting unexected error. I am not an engineer and I am glad to pay for assistance.
Hi Bill Berkan,
Thank you for your reply. First,let me tell you I know very little about
this situation. I am an old guy who owns a small business, we make
laminating machinery, devices used for laminating maps, menus, etc. I had
a board designed to control speed. The guy who designed it can't seem to
figure out the problem. The hex file I am trying to load was written by
him to address a few small issues in the original file. I have not used
this system before but have had experience using a similar program for Pic
chips from Microchip. I studied the ST Link stuff and hooked up the pcb as
instructed. After a few small issues it seemed I think I was able to
connect the pcb to the software. Each time I press erase the pcb is
disconnect from the s/w and I get the unexpected error. When I click on
that I get the write protected error.
I have attached several screen shots that seem to answer some of your
questions, including a shot of the log which seems to identify the st link
v2, the chip, etc. The new hex file is written by the guy who wrote the
original one, I am guessing he just changed some code in the original that
needed modification as requested.
Does any of this make any sense?
On Wed, Jun 6, 2018 at 2:28 AM, Nesrine M <firstname.lastname@example.org>
I need help loading a new hex file.
I guess that means Flashing (programming).
Which tool ?
I keep getting unexected error.
The exact error message would be helpful.
I guess I dont know what tool means, sorry. The code was compiled with Atollic and the device is a st link /v2. The first message is unexpected error at which time the target is instantly disconnected from st link. The next message is some flash pages are write protected. It has an OK button but it is grayed out. Thank you
I guess I dont know what tool means, sorry.
As your first image shows, the "ST-Link Utility".
You can try to configure the "option bytes", and remove the write protection for sectors marked as such.
See the ST-Link Utility manual, as found here:http://www.st.com/resource/en/user_manual/cd00262073.pdf
Section 3.6 covers this topic.
Try a mass erase again, and then program.
I haven't myself dealt with write-protection on STM32 devices.
Replace the USB cable
Thank you for the idea, but same results.
What tool generated the error?
What tool generated the .HEX file?
I am not sure about all of your terminology but the code was compiled with Atollic and the tool I am using is ST LINK /V2. I hope these are the right answers. Thank you, Bill
Retrieving data ...