Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

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