cancel
Showing results for 
Search instead for 
Did you mean: 

St-link Error in HEX parser

rigomate2
Associate III
Posted on April 23, 2015 at 18:22

Hi folks!

I found a serious error in the ST-Link v3.6 parser.

I have a project with the 

https://launchpad.net/gcc-arm-embedded

 4.9-2014q4 toolchain.

It generates a valid intel hex file, whit the small quirk, that there is one byte address which does not hold any value. As the intel hex format is specified that every line starts with an address and the data length, I think it is safe to suppose, that this correct.

If I load this into Segger's J-flash, it shows it correctly, on the other hand ST-Link v3.6 misreads it totally, which leads to that after that address everything is shifted onto a smaller address.

See the attached picture.

For a fast fix, I am currently modifying my linker script, that everything should be padded. But still I think this is a huge bug.

edit: I added the picture here:

BTW, where can I officially post this to ST, as this is some super serious bug.

I just shipped my project to a customer, whom I advised to use Stlink for production programming, and if there hadn't been a simple code verification in the startup function, he would have had a completely malfunctioning product.

0690X0000060316QAA.jpg

3 REPLIES 3
Posted on April 27, 2015 at 11:47

> BTW, where can I officially post this to ST,

Try http://www.st.com/web/en/support/online_support.html if you don't have a local representative/FAE at hand.

JW

yaredbw
Associate
Posted on July 31, 2015 at 01:56

The same problem here but ST-Link Utility V3.5 works with hex file.  I tried ST-Link V3.6 to load hex file, it didn’t work and I downgrade it to V3.5, it works. It seems like the problem with V3.6 is some of the bytes shifted by one when it read hex files.

Regards

Posted on July 31, 2015 at 02:07

[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Java/ST-Link%20Utility%20HEX%20bug&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/AllItems.aspx&currentviews=74]Common Thread

[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Java/ST%20Link%20Utility%203.7&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/AllItems.aspx&currentviews=198]V3.7 Thread

http://www.st.com/web/en/catalog/tools/PF258168

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