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


stm32 using sw4stm32 and simulink

Does any one used stm32 mat/target for rapid code generation. I need help in this regards.
I am sharing my main.c, It is showing some error. Pls help.
BR
Awais

I too try with stm32-mat/target. I got few error on compilation with “System Workbench for STM32” but able to run the code with few hacks. I am trying to create simple model with toggle only one pin (PA5-LED on NUCLEOF410RB). Can you post your error; i hope you too use “System Workbench for STM32”.

For some reason, model _step() functions is not reached by IF statement. So i forced to make True and add my own HAL_Delay on the generated code to debug. can you please help if you know the cause for it.

while (1) {
/*Process tasks every solver time*/
if (... || true) {
....
BSP_step();
HAL_Delay(500);
...
}

I did solved it. STM32-MAT/TARGET creates a variable remainAutoReloadTimerLoopVal_S. This variable is declared as static uint32_t remainAutoReloadTimerLoopVal_S = 1; in main.c. If we change this to static volatile uint32_t remainAutoReloadTimerLoopVal_S = 1; it will work. SysTick_Handler is triggered.
Fix:
added “volatile”
Tools used.
1.STM32-MAT/TARGET
2.STM32CubeMX
3.System Workbench for STM32