2018-06-05 12:27 PM
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.
2018-06-06 01:27 AM
Hi
bill.pbs
,hex file
did you looked to?'
I keep getting unexected error' what kind of error you are facing?-Nesrine-
2018-06-06 02:02 AM
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.
2018-06-06 02:26 AM
Replace the USB cable
2018-06-06 03:57 AM
What tool generated the error?
What tool generated the .HEX file?
2018-06-06 08:13 AM
Hi Nesrine
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?
Thank you
Bill
On Wed, Jun 6, 2018 at 2:28 AM, Nesrine M <st-microelectronics@jiveon.com>
________________ Attachments : ER4.txt.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxXT&d=%2Fa%2F0X0000000azY%2FSVyk_s_KdG1wW.V4vJVMfdmFjZcYrI.tK8uVgVSkJOw&asPdf=falseER1.PNG : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxXO&d=%2Fa%2F0X0000000azX%2FdNelomALG4yrzQOctWmiaWSRvfpmIs_26uiZ53FR9Bg&asPdf=falseER2.PNG : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxX0&d=%2Fa%2F0X0000000azV%2Fi4X7oavWk6WgCUyxVkAmgdiG.c4EZAeyh9O2rdgiyBo&asPdf=falseER3 ide.PNG : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxXJ&d=%2Fa%2F0X0000000azT%2FzsDB2aADanYOeyCqwbBiR8h3pmJLHyxVAVFCqabyDI8&asPdf=false2018-06-07 06:19 AM
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
2018-06-07 06:20 AM
Thank you for the idea, but same results.
Bill
2018-06-07 06:22 AM
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
2018-06-07 06:32 AM
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.