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


a relly newbie problem ..how to program board from workbench ?

hi guys
Have been using coocox and stm32f4 for a while ..
Now my new stm32f7-discovery just arived and now i want to go with the system workbench for stm32 ..
I can compile and run and make the ELF file ..
But how to “upload” / “program” the board ..In coocox i could set up so it use st-link with the swd to program the board...and the just hit “programchip” from coocox and then we go...
Can i do the same with “system workbench for stm32” and where to find the documentation ?

Great product ;o)

best regards
Hjalmar Skovholm Hansen
www.skovholm.comQuestion
Denmark

Hi,

Yes, it should be the same for System Workbench.

Take a look on the Documentation section at this page “Importing an STM32CubeMX generated project under System Workbench for STM32” at the end you shoul find the section “Setting up your project for debug”.

The location on this site is: “Documentation » System Workbench for STM32 » User Guide » Importing a STCubeMX generated project”.
and the link is:
http://www.openstm32.org/Importing+a+STCubeMX+generated+projectQuestion

Hope this help.


HI

Now i do understand ;o)

Did import a stm32cube project for stm32f4-discovery and can build without problems ..i get my .elf file
‘Generating binary and Printing size information:’
arm-none-eabi-objcopy -O binary “my_test1.elf” “my_test1.bin” && arm-none-eabi-size “my_test1.elf”
text data bss dec hex filename
2232 12 32 2276 8e4 my_test1.elf
’ ’

22:54:19 Build Finished (took 6s.955ms)


But get a failures when try to run

An internal error occurred during: “Launching my_test1 Configuration Debug”.
java.lang.NullPointerException

And do have JDK version 8 but did install version 7 as mentioned here http://www.openstm32.org/forumthread242Question

Please let me know what can be the issue

THANKS so much ;o)

Hjalmar Skovholm Hansen
www.skovholm.comQuestion


France

Hi,

There seems to be a problem in the “run” feature that sometimes forbids to run your program correctly; try to debug it instead and it should work.

Bernard

Hi,

I have checked on my side and the Run feature works as expected. I test this by changing the frequency of a LED (see below code) and then hit Run (icon with the play triangle on it) and then I can see that the LED is blink with other frequency. For test I changed HAL_Delay(200); to 50.

The code is running on NUCLEO-L152RE board with STM32L152RET6 microcontroller. For building I use a 64 bit machine with Windows 8.1

Here is the code:

/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
/* USER CODE END WHILE */

/* USER CODE BEGIN 3 */
if(HAL_GPIO_ReadPin(GPIOC, 0x2000) == GPIO_PIN_RESET) //PC13
{
HAL_Delay(500); //PA5
}
else
{
HAL_Delay(200);
}

HAL_GPIO_TogglePin(GPIOA, 0x20); //PA5
}
/* USER CODE END 3 */

This code is generated from CubeMX v4.7 (v4.8 is available)


@ skovholm:
Did you add yourself the line to print the size of the used code ?
This should look like: && arm-none-eabi-size “${BuildArtifactFileName}” and should be added to Eclipse project, Properties windows under tab Build Steps under Post-build steps group.

I ask this beacause I imported 2 projects from CubeMX (for NUCLEO-L152RE board and stm32f3discovery board) and in both cases I did not have at the end f the build the code size information (unless I add myself the arm-none-eabi-size command).
It you have the size at the end of the build maybe the generated project from CubeMX is not imported correct into System Workbech for STM32.
Just be sure to follow exactly the steps from page “Importing a STCubeMX generated project”.

Here are the last lines of build step on my side:

‘Building target: nucleo_stm32l152re.elf’
‘Invoking: MCU GCC Linker’
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -mfloat-abi=soft -T”..\STM32L152RETx_FLASH.ld” -Wl,-Map=output.map -Wl,--gc-sections -lm -o “nucleo_stm32l152re.elf” @”objects.list”
‘Finished building target: nucleo_stm32l152re.elf’
’ ’
make --no-print-directory post-build
‘Generate binary’
arm-none-eabi-objcopy -O binary “nucleo_stm32l152re.elf” “nucleo_stm32l152re.bin”
’ ’

14:53:35 Build Finished (took 8s.31ms)