HardFault with PICOLIBC and TouchGFX
Hi, I consistently hit HardFault when using PICOLIBC. I am using a STM32H735G-DK board.
Setup:
1. Start from a black CubeMX project, selecting the board and default pins. The FreeRTOS must be enabled, and the TouchGFX (with the MPU configured). We will target CMake and SR Arm Clang. Generate code.
2. Open TouchGFX and load the project with the file ApplicationTemplate.touchgfx.part. No need to add anything, just generate code.
3. Open the entire project with VSCode. The project by default uses the PICOLIBC in the file starm-clang.cmake. The project as is compiles successfully. flash onto the board and click Continue. The code will instantly go in HardFault_Handler().
Here is a printscreen:
Can anyone try to reproduce this, just to make sure it is not something only on my side? Thank you!
If I change for STARM_NEWLIB in starm-clang.cmake instead of STARM_PICOLIBC, everything works as expected, no hardfault, and the screen initializes successfully.
I have added a demo project.
