Skip to main content
SaidErsoy
Associate II
March 19, 2022
Solved

How can i use example codes that inside reposity folder?

  • March 19, 2022
  • 2 replies
  • 1037 views

I am trying to use spi interface between 2 stm32f429zi discovery board and i found a code provided by ST that is inside reposity folder. Basicly it says it is an example for two board comminucation. But i could not manage to build that code file from stm32CubeIDE.

This topic has been closed for replies.
Best answer by Pavel A.

Examples for older STM32 models such as F4 do not have native support for CubeIDE.

But CubeIDE can import SW4STM projects (different version of eclipse).

So, start from Import... General... Import ac6 System Workbench... Project

Point to SW4STM folder in the example you want to use.

You can also use "Import STM32Cube example", it is basically same but takes a lot longer.

Be warned that the import is not ideal, there can be minor glitches with the link script and others that should be fixed manually.

2 replies

Tesla DeLorean
Guru
March 19, 2022

The history for GNU/Eclipse based project files has been a bit checkered as ST has jumped between toolsets (Atollic, SW4STM32, etc)

The IAR and Keil project files have tended to have more consistency, although in recent releases IAR seems to have veered all over the road about it's library and include paths.

The Examples should all be self-relative, but Eclipse workspaces are often been very difficult to move, without knowing the specific build errors or failure you're encountering, I'd guess Include Paths might be broken, or those for libraries. Or something deeper within the project meta-data.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Pavel A.
Pavel A.Best answer
March 19, 2022

Examples for older STM32 models such as F4 do not have native support for CubeIDE.

But CubeIDE can import SW4STM projects (different version of eclipse).

So, start from Import... General... Import ac6 System Workbench... Project

Point to SW4STM folder in the example you want to use.

You can also use "Import STM32Cube example", it is basically same but takes a lot longer.

Be warned that the import is not ideal, there can be minor glitches with the link script and others that should be fixed manually.