2020-04-16 12:51 PM
Hi,
I am struggling Struggling with TouchGFX Generated Code Building on STM32Cube IDE.
I am working on below setup:
Software Tool Chain:
STM32CubeMX 5.6.0
TouchGFX 4.13.0 Designer
STM32CubeIDE 1.3.0
Hardware:
STM32F746G-DISCO (Discovery Board)
I have created GUI on TouchGFX 4.13.0. worked fine on simulator and Discovery Board as well.
I am doing as below :
Open TouchGFX:
1. File->New
2. Select Application Template STM32F746G Discovery Kit
3. Select UI Template -> Blank UI
4. Name the project TestHardware and Click Create
5. Add a Red box that fills with rectangle and the entire canvas.
6. Add a button that I can click
7. Click Generate Code
8. Click Run Target
This does work, and I get the desired Red box and single button that I can click.
When I am trying to Open In STM32CubeIDE 1.3.0 and Import as per below:
C:\TouchGFXProjects\TestHardware\STM32CubeIDE
Binary File Created in Too Large ..
1) STM32F746G_DISCO.bin 2.12 GB
STM32F746G_DISCO.elf 239 KB
STM32F746G_DISCO.hex 99 KB
2) STM32CubeIDE Debugger Error !!
(Read) Failed determine breakpoint type
Error ! Failed to read target status
Debugger connection lost.
Shutting down . . .
3) STM32CubeProgrammer 2.4.0 also have Error while programming .But The TouchGFX Generated File works Well.
4) Changing the STM32F746NGHx_FLASH.ld (from Repository Demo of specific board ) reduce the file size to 35KB . But Code did not work on target either Debug Mode receive error at mention 2) nor the STM32CubeProgrammer/ST-Link.
Is this is Bug or I am using something wrong. ? Please advice me ..
Thanks in advance
--
Karan
Solved! Go to Solution.
2020-04-20 05:07 AM
2020-04-20 05:08 AM
Please show me a stack trace.
2020-04-20 05:11 AM
2020-04-20 11:19 PM
@Martin KJELDSEN (ST Employee)
Please Update..
2020-04-21 01:34 AM
Connect your debugger and dump your registers when the application hard faults.
Something you can also try is to step through your application, break inside setupScreen() in your main view and see if you reach that.
2020-04-21 07:34 AM
2020-04-22 03:45 AM
Did you got as expected from My Side ? Please Update ..
2020-04-23 11:27 PM
@Martin KJELDSEN (ST Employee)
Hi,
Will it possible to resolve the issue ? with me remotely ..Thanks.
--
Karan
2020-04-23 11:29 PM
Please Update...
2020-04-26 09:54 AM
Hi
Alexandre RENOUX (ST Employee) @Martin KJELDSEN (ST Employee)
2) STM32CubeIDE Debugger Error !!
(Read) Failed determine breakpoint type
Error ! Failed to read target status
Debugger connection lost.
Shutting down . . .
Problem Solves with Select Application Template STM32F746G Discovery Kit v3.0.1
But .bin Still Nearly GB .
Why So ?
--
Karan