cancel
Showing results for 
Search instead for 
Did you mean: 

Issues in building projects created with CubeMX - Nucleo144-H7

Francesco Agosti
Associate II

Hello, I use CubeMX and System Workbench (SW4STM32). I generated a simple project for my board (N144 STM32H743ZI),using HAL drivers and managed to build it and debug it. I then started to play with the project, suddenly I noticed I could not debug anymore, even tho the build was finishing without errors.

I investigated and replicated the issue, simply by adding Cortex M7/DCache enabled in CubeMX. I don;'t think the issue is cache specific and found that what actually happens is that the elf file (which initially was created correctly) is now tiny and contains only two entries : _finit() and _init()

I tried on two different PCs, tried to load the hex with the stlink utility to no avail... apparently, a project that was building correctly, suddenly becomes "faulty", the build process terminates with no errors, the elf and hex are created, but they do not contain anymore what they were supposed to.

I tried using H7 firmware 1.3.2 and 1.3.0 : nothing changed.

Did anyone experience something similar and, maybe found a solution?

Thanks

Francesco

10 REPLIES 10

Hi @Francesco Agosti​ 

Thanks for the feedback,

Please try with CubeMX 5.2.0 version. It must be OK this time.

Best regards.

Nesrine