Skip to main content
SUG
Associate
July 16, 2019
Solved

Compile Error (validation test) in v4.0 and no problem with v3.4 using latest SW4STM32 and Nucleo-F746 board.

  • July 16, 2019
  • 4 replies
  • 1466 views

This topic has been closed for replies.
Best answer by fauvarque.daniel

In your project you deactivated X-Cube-AI 3.4.0 and activated X-Cube-AI 4.0.0 but both are present. This causes problem in the generated code where you have both generated.

As we don't support yet migration of projects from a previous version to the current one, I recommend starting a new project a generating the code.

Last point you have generated the code using the Advanced structure option. The AI plugin still generates the file under Src and not under Core/Src.

It seems that using the option the order of the c files in the linker command is not correct. In order to be able to link correctly you have to move the files under Src into the Core/Src directory.

This last bug will be fixed in the next release.

Regards

Daniel

4 replies

fauvarque.daniel
fauvarque.danielBest answer
ST Employee
July 16, 2019

In your project you deactivated X-Cube-AI 3.4.0 and activated X-Cube-AI 4.0.0 but both are present. This causes problem in the generated code where you have both generated.

As we don't support yet migration of projects from a previous version to the current one, I recommend starting a new project a generating the code.

Last point you have generated the code using the Advanced structure option. The AI plugin still generates the file under Src and not under Core/Src.

It seems that using the option the order of the c files in the linker command is not correct. In order to be able to link correctly you have to move the files under Src into the Core/Src directory.

This last bug will be fixed in the next release.

Regards

Daniel

fauvarque.daniel
ST Employee
July 16, 2019

As a side note, we now support automatic validation on the target with the automatic compilation and flash.

We made this feature to avoid having you to generate an intermediate project with the validation code on the target then go back in MX to lauch the validation.

Hope it helps

Regards

Daniel

SUG
SUGAuthor
Associate
July 16, 2019

Yes it was "Advanced structure option", after selecting "Basic option" the issue was solved.

And the Automatic validation is also working well.

I was looking to change baud rate in previous version and now we have option to select > 115200bps (tested upto 2Mbps).

Hope STM32G4 is supported in future version, right now i have modified the generated file to support STM32G474 and its working well.

Thanks and Regards,

Santosh

fauvarque.daniel
ST Employee
July 16, 2019

STM32G4 is already supported in STM32CubeMX 5.2.1, the X-Cube-AI plugin and SW4STM32.

I would recommend to move to STM32CubeIDE that is the merge of SW4STM32 and Atollic.

STM32CubeIDE is the IDE that will have the support of new MCUs.

Regards