2017-01-12 05:59 AM
Hi,
I'm trying to flash the demo hex file from STM32F469I-Discovery Kit. But STLink Utility fails when download the Firmware.
I've attached log Files.
Following Error Message occurs:
14:32:53 : Connection to device is lost: check power supply and debug connection.
14:32:53 : If the target is in low power mode, please enable 'Debug in Low Power mode' option from Target->settings menu.14:53:49 : Cannot save hex/srec file to bin fileIs there a problem when flashing the external NAND Flash?
Thank you.
Kind Regards
Andreas
2017-01-12 06:14 AM
Hi Andreas,
You are using an old version of STLink firmware.
Please make sure to use the last one provided by ST using :Khouloud.
2017-01-12 07:03 AM
Hi,
thanks for reply.
Actually it didn't help. This is the error I get:
15:56:31 : ST-LINK SN : 0672FF544949847067075921
15:56:31 : ST-LINK Firmware version : V2J28M1815:56:31 : Connected via SWD.15:56:31 : SWD Frequency = 0,9 MHz.15:56:31 : Connection mode : Normal.15:56:31 : Debug in Low Power mode enabled.15:56:31 : Device ID:0x434 15:56:31 : Device flash Size : 2MBytes15:56:31 : Device family :STM32F469x/F479x15:56:35 : [NAND_Dump_FW_Ver_1_3_0.hex] opened successfully.15:56:35 : [NAND_Dump_FW_Ver_1_3_0.hex] checksum : 0x92F6E884 15:56:39 : [STM32CubeDemo_STM32F469I-Disco_1.1.4.hex] opened successfully. Address Ranges [0x08000000 0x080AF787] [0x90000000 0x90792C14] 15:56:39 : [STM32CubeDemo_STM32F469I-Disco_1.1.4.hex] checksum : 0x54A4A2ED 15:59:00 : STLink USB communication error15:59:00 : Error occured during program operation!15:59:00 : Can not connect to device! 15:59:07 : Disconnected from device.15:59:07 : Connection to device is lost: check power supply and debug connection.15:59:07 : If the target is in low power mode, please enable 'Debug in Low Power mode' option from Target->settings menu.I already switched on low power mode debug. I think the problem is with the external NAND Flash. The 1st part which should be flashed on microcontroller is working. So I can see the whole menu of the DemoApp. But there are no Images or Animations.
The Demo I'm loading is from the Demo Package provided by ST.
Kind Regards
Andreas
2017-01-12 10:10 AM
Sounds more like the bugginess I complained about in ST-LINK Utilities v4.0.0 a while back, it can't save files in certain formats some of the time.
This is a mirror of v3.9.0
https://drive.google.com/open?id=0B7OY5pub_GfITE5lM1RZbnlpUVE
2017-01-12 10:12 AM
Ok, quick search, reported 2 months ago
https://community.st.com/0D50X00009XkgXVSAZ
2017-01-13 08:53 AM
Hi Andreas,
In order to program the demonstration correctly, have you followed those steps?
-> The internal Flash and the external QSPI are now programmed and the demonstration is shown on the board.
Khouloud.
2017-08-31 02:22 AM
I stumbled into this this morning. I am using version 4.0.0 and the message mentioned in the original post appeared when I tried to dump content of the flash into a bin file. Other formats where saved without problems. After a bit of trial and error I found a workaround: I used command line, AND I started the prompt specifying I wanted it with administrator rights (nb: my current windows user already has them, so it seems mandatory to do this way). I then executed something like:
ST-LINK_CLI.exe -Dump 0x08000000 0x200000 filename.bin
and after the progress bar shown is completed, and a confirmation message is shown, I had my dump file.
Note that the same command line on a prompt without administrative rights results in the same output except for the final confirmation message.
Hope this helps.
2017-08-31 07:27 AM
Hi
fabrizio.pizzolato
,Thanks for posting your findings here. This will be helpful for our STM32 MCUs forum.
Khouloud
2017-08-31 07:46 AM
You're welcome. I am not a sesoned expert with this specific MCU but I know this kind of problem take a lot of time to solve, shortening valuable development time, so it's always nice to share hints like this. Have a nice day.
Fabrizio