Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

System Workbench for STM32


Importing Cube example programs: F7-discovery

Hi,

Since I have compiled and debugged CubeMX generated projects and around 10 ST examples for 4 different boards, even that I don’t have yet a ST F7 board I was curious to try a project for STM32F7.

As for the rest of the projects generated using CubeMX I have follow the steps described in the documentation “Importing a STCubeMX generated project”, at this link: http://www.openstm32.org/Importing+a+STCubeMX+generated+project?structure=DocumentationQuestion

The build was without errors and the elf file was generated. Attached is a screen shoot after build step - stm32f7_build.

I have also setup the debug configuration (hope that I did not mess up something because I did it without to check the documentation).
On my system, at least the debug process is started but of course at the end fails - no board communication.

If anyone is interested to try to rebuild the project using System Workbench the project is at this link:https://bitbucket.org/csalageanu/stm32f7_disco_test.gitQuestion

CubeMX project is this one: stm32f7_disco_first.ioc
Should be open with CubeMX without problems. I don’t know if CubeMX will update the path for the new pc. So to test only the build step is better to not regenerate the project,
anyway project could be open and inspected.

For build step should be follow the process described in documentation “Importing a STCubeMX generated project”:

- Open System Workbench for STM32. When SW ask for workspace, browse to directory stm32f7_disco_first_wa. This is step 3 in the documentation (see link above)

- After the Eclipse Welcome screen, import the project as following
File >> Import...
Click on “Browse” and navigate to
“your_location”\stm32f7_disco_first_wa\stm32f7_disco_first\SW4STM32

The projects list is refreshed and should display your project (“stm32f7_disco_first
Configuration”), select it.
Ensure the option “Copy projects into workspace” is uncheck
Click on “Finish” button.

- Build the project

- Check if the debugger configuration is present. If it is present try to debug. If not create
a new one, following the steps described at above link.

I hope this will work, I did’t have time to test it.


=====

Regarding the CubeMX project, I selected Discovery board for STM32F7 and I didn’t change any configuration, so it is the default configuration that came from ST. There are few peripherals that are enabled, but not all. Also seems that most of the Cortex-M7 features are disabled: ART Accelerator, CPU I,D cache, Instruction Prefetch - I let them as it was.

For other peripherals the ST provides examples in the Cube Library. For this board (STM32746G-Discovery):
- 15 examples are provided to demonstrate simple usage of the existing peripherals (ADC, BSP, CEC, DAC, DMA, DMA2D, FLASH, FMC, I2C, LTDC, PWR, QSPI, RCC, SPI, TIM, UART).
- 11 projects to demonstrate simple applications (Audio, Display, EEPROM, FatFs, FreeRTOS, LibJPEG, LwIP, QSPI, STemWin, USB_Device, USB_Host)
- one big demo application- this is the application that came installed on the board.

All this examples and more or less documentation are inside the downloaded STM32Cube_FW_F7_V1.1.0 package. An easy way to locate where this folder is on pc is to go in CubeMx > Help > Updater Settings. Then see what is in input text box named “Repository Folder”. Please note that System Workbench could also download this package but in another place.
On my system is: D:\STM32Cube\Repository\STM32Cube_FW_F7_V1.1.0\Projects\STM32746G-Discovery

From what I seen from F4 library package all those projects are also build for SW4STM32 (System Workbench).

For board STM32756G_EVAL ST provides even more examples.

For my “STM32F429I-Discovery” I was able to compile all examples that I need except 2 application examples.