cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F469I Discovery - cannot flash demo hex file

Andreas Zeiler
Associate II
Posted on January 12, 2017 at 14:59

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 file

Is there a problem when flashing the external NAND Flash?

Thank you.

Kind Regards

Andreas

8 REPLIES 8
Khouloud GARSI
Lead II
Posted on January 12, 2017 at 15:14

Hi Andreas,

You are using an old version of STLink firmware.

Please make sure to use the last one provided by ST using :

https://my.st.com/content/my_st_com/en/products/embedded-software/development-tool-software/stsw-link007.license%3d1484131860389.html

Khouloud.

Andreas Zeiler
Associate II
Posted on January 12, 2017 at 16:03

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 : V2J28M18

15: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 : 2MBytes

15:56:31 : Device family :STM32F469x/F479x

15: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 error

15: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

Posted on January 12, 2017 at 18:10

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

 
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on January 12, 2017 at 18:12

Ok, quick search, reported 2 months ago

https://community.st.com/0D50X00009XkgXVSAZ

 
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Khouloud GARSI
Lead II
Posted on January 13, 2017 at 17:53

Hi Andreas,

In order to program the demonstration correctly, have you followed those steps?

  1. Open STM32 ST-Link Utility , click on 'External Loader' from the bar menu then check 'N25Q128A_STM32469I-DISCO' box.
  2. Connect the STM32F469I-DISCO board to PC with USB cable through CN1
  3. Use 'STM32CubeDemo_STM32F469I-Disco_1.1.4.hex' file provided under “Binary� with STM32 ST-Link Utility

    to program both internal Flash and external QSPI memory
  4. Copy the audio and video files provided under 'Utilities/Media/' in the USB key
  5. Plug a USB micro A-Male to A-Female cable on CN13 connector

-> The internal Flash and the external QSPI are now programmed and the demonstration is shown on the board.

Khouloud.

Fabrizio Pizzolato
Associate II
Posted on August 31, 2017 at 11:22

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.

Posted on August 31, 2017 at 14:27

Hi

fabrizio.pizzolato

‌,

Thanks for posting your findings here. This will be helpful for our STM32 MCUs forum.

Khouloud

Posted on August 31, 2017 at 14:46

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