2021-03-12 06:59 AM
Hello,
I am developing an application with:
I have already created the .stldr file for this memory and it works fine.
I edited the STM32F411RETX_FLASH.ld file to add the external flash.
I create the project from CubeMX, enable TouchGFX, create a test screen and do "Generate Code".
Why are the .bin files of the bitmaps and fonts not created to put in the external flash?
2021-03-12 08:06 AM
This is generated after linking not after generate code when you ask this.
2021-03-14 06:54 PM
Hello cb.7,
"Generate Code' only generates code, it does not compile the code.
To compile and directly flash the board, you need to press "Run Target". But for this you might need to modify the makefile according to your board/project.
So instead, what I recommend is using STM32CubeIDE or IAR to compile and flash with STM32CubeProgrammer.
When your question is answered, please close this topic by choosing Select as Best.
Alexandre
2021-03-16 12:24 AM
Thanks for the reply.
I create a screen with TouchGFX, press "Generate Code", compile with STM32CubeIDE and everything goes well. The problem is that if I launch the debug from STM32CubeIDE it seems that I cannot find the .BIN file to load in the external flash memory ...
2021-03-16 02:44 AM
Hello cb.7,
To flash your board, if you are using external memories (external RAM for Framebuffer and/or external Flash for assets), you need an external loader.
Also, CubeIDE does not use the .bin file, it uses the .elf binary file to download the code into your board.
/Alexandre
2021-03-16 02:57 AM
I have created an external loader called "SST26VF032B_STMF411RET6_SPI2.stldr" and it works correctly with "STM32CubeProgrammer".
If I launch the debugger it gives me an error as you can see from the attached photo.
Am I wrong to place my external charger in the project?
2021-03-16 06:24 PM
Hello cb.7,
You are not wrong to use your external loader in CubeIDE which you used in CubeProgrammer. That is the correct procedure.
As why you cannot download into the board is not related to TouchGFX and I'm not an expert in CubeProgrammer/CubeIDE. Maybe try to add these tags to your request.
One thing you could try is download using CubeProgrammer and then debug without downloading with CubeIDE. I believe this option is available.
Also, after the download is successful with CubeProgrammer, is your project working ? Do you see the images stored in SPI flash displayed on your screen ? If not, are you sure your external loader is correct ?
/Alexandre
2021-03-16 11:59 PM
With Cube Programmer I can write and verify correctly through my custom external loader ...
I think that the only solution to use custom hardware without starting from the demoboards, is to modify the Makefile, perhaps taking a cue from the NUCLEO-G071RB + X-GFX01M1 demoboard.
Where is the Mekfile to be modified?
Thank you
2021-03-17 12:40 AM
Hello cb.7,
In a project, Makefile is only used for TouchGFX Designer. For CubeIDE you should be able to download into your board even if it's a custom hardware as long as you have the correct external loader and that your loader file was correctly written as well.
In case of Designer, you will find the generated Makefile in gcc/ folder in a Application Template.
/Alexandre
2021-03-17 01:39 AM
Thanks for the reply.
I saw that in the LOG it gives me this error: