cancel
Showing results for 
Search instead for 
Did you mean: 

program stm32f469-discovery

Andreas Achilleos
Associate II

Hello

 

I have a STM32f469-discovery. I have trouble loading code/programming. I have successfully programmed the board via the Flowcode software. Also I can use the Hex or Bin generated file from Flowcode, import it in the STlink utility and load it on the board. That works. What I can't do is to open a demo or example for the touchGfx designer and program the board. I click on the "program and run target" but ends up in error

"ST-LINK error (DEV_CONNECT_ERR)
c:/TouchGFXProjects/MyApplication_7/gcc/include/flash_sections_int_ext.mk:2: recipe for target '_extflash_' failed
make[1]: *** [_extflash_] Error 1
../gcc/Makefile:53: recipe for target 'flash' failed
make: *** [flash] Error 2
Failed

In the touchGfx there is no indication that the board is connected. I get indication only on the STlink

If I select the "Generate code" it successfully does it but later on I dont know where to load that code in order to use it to program my board via another software. 

Is there a specific sequence for this to work? Should I have cubeIDE or any other utility open and connected to my board?

Can touchGFx load any code to the boards or I should generate a code to use in another software?

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
JohanAstrup
ST Employee

Hello @Andreas Achilleos.

Could you try updating the ST-LINK firmware using STM32CubeProgrammer?

Best regards,
Johan

View solution in original post

4 REPLIES 4
JohanAstrup
ST Employee

Hello @Andreas Achilleos.

Could you try updating the ST-LINK firmware using STM32CubeProgrammer?

Best regards,
Johan

Hello Johan,

 

Thanks for the reply. I have updated the ST-link firmware. I tried then to send an example code to the board but I got error. I think it is the same error before the upgrade. I will attach it.

 

Do I have to have anything written in the "flash target internal command" in the options in TouchGfx?
All other fields are populated but the last one no. 

UPDATE

I have used the "generate code" button instead of the program and run target and the code is successfully generated. I later opened ST-link utility, opened the target.hex from the code generated by touchGfx and then it successfully upload the example to my board!!
The file was located to C:\TouchGFXProjects\MyApplication_11\TouchGFX\build
Afterwards I used the program and run target button and successfully programmed the board
I will attach the logs as well

This was - so far - the only example that worked. The other examples do not upload to the board via the "program and run target" BUT only "generate code" BUT the other examples do not generate any Hex file to use it via the ST-link utility

Hi,

Seems everything is ok now!
I can program the board via the touchGFX and Cube

 

thanks  !!