2025-03-26 7:28 AM
Hello,
I am using a STM32H7S78-DK and I created a project using TouchGFX Designer with the default empty template. However, when I try to run it, the board immediately hard faults.
Stack Trace:
main()
└── MX_TouchGFX_Init()
└── touchgfx_components_init()
└── nema_init()
└── nema_sys_init()
└── tsi_malloc_init_pool_aligned(1, (void*)nemagfx_stencil_buffer_mem, (uintptr_t)nemagfx_stencil_buffer_mem, NEMAGFX_STENCIL_POOL_SIZE, 1, 8);
I've seen some some discussions where the CRC could be the problem, everything seems fine with the CRC, and i don't think any of the issues are directly related to the NeoChrom GPU.
A while back i tried the same project setup, and it was fine. After that i was checking Rust with Embassy and adding lvgl to an empty project. I'm not sure if it could be related, it might just be a weird coincidence.
2025-03-26 8:12 AM
Hello @diogomargalho ,
Can you describe the steps to achieve this error?
I open TouchGFX Designer 4.25.0, create a new project with STM32H7S78-DK with freeRTOS and RGB565 and I am able to flash from the TouchGFX Designer itself.
Regards,
2025-03-26 9:04 AM
The steps to achieve it are:
After this it crashes.
Debug window
Fault Analyzer window
nema_hal.c file
2025-03-26 10:18 AM
I never flashed a STM32H7S78-DK through STM32CubeIDE.
Usually, I build the code through STM32CubeIDE and then I open STM32CubeProgrammer to flash.
I select the external loader for the STM32H7S78-dk board then I connect the board, then I flash the boot and then I flash the appli.
Would this be ok for you to do that or do you really want to flash through STM32CubeIDE (I am not an expert on STM32CubeIDE but I could ask someone).
Regards,
2025-03-27 10:35 AM
I don’t think the issue is with flashing. I’ve flashed from STM32CubeIDE in other projects without any problems. I think the problem could be in the code or the board itself, but I can try flashing through STM32CubeProgrammer.
2025-05-05 4:48 AM
Hello @diogomargalho ,
Have you had time to try to flash through STM32CubeProgrammer?
Regarding STM32CubeIDE, perhaps you should not add the boot elf to the application startup, simply build both the boot and appli, then flash the boot, then flash the appli, then run.
Regards,
2025-05-09 7:45 PM
@diogomargalho
I also encountered the same problem, so I just changed the compiler to EWARM, maybe you can try it.