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,

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)