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


false condition if statement getting executed inside ISR

India

Hi,

Thanks for replying.

It is not a bouncing issue. I wouldn’t write here without verifying something as silly.
Also, if it was, it wouldn’t execute statement in both if and else parenthesis.
Once again, How in the world is it possible that both “IF” and “ELSE” condition be true to execute both sets simultaneously.
I am not using two interrupts, but one, that detects both rising and falling edges.
The edges are differentiated by GPIO Read. (PRX_PinState) which is the digital state of Pin PA15.
The variables I’m monitoring reflect the timer value. Looking at the values it’s very obvious that they are executed sequentially.

What can I do ? I wanted to run this project on another IDE (CubeIDE) and had funny errors when building(I’ve put them below). I’m stuck.

23:50:52 **** Incremental Build of configuration Debug for project BLDC_Home ****
make -j4 all
arm-none-eabi-gcc “../Src/main.c” -mcpu=cortex-m4 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32F303xC -DARM_MATH_CM4 -DDEBUG -c -I../../Drivers/CMSIS/Include -I../../MCSDK_v5.4.3/MotorControl/MCSDK/MCLib/Any/Inc -I../../Drivers/STM32F3xx_HAL_Driver/Inc/Legacy -I../../Drivers/STM32F3xx_HAL_Driver/Inc -I../../Inc -I../../MCSDK_v5.4.3/MotorControl/MCSDK/MCLib/F3xx/Inc -I../../MCSDK_v5.4.3/MotorControl/MCSDK/UILibrary/Inc -I../../MCSDK_v5.4.3/MotorControl/MCSDK/SystemDriveParams -I../../Drivers/CMSIS/Device/ST/STM32F3xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF”Src/main.d” -MT”Src/main.o” --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o “Src/main.o”
arm-none-eabi-gcc “../Src/mc_api.c” -mcpu=cortex-m4 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32F303xC -DARM_MATH_CM4 -DDEBUG -c -I../../Drivers/CMSIS/Include -I../../MCSDK_v5.4.3/MotorControl/MCSDK/MCLib/Any/Inc -I../../Drivers/STM32F3xx_HAL_Driver/Inc/Legacy -I../../Drivers/STM32F3xx_HAL_Driver/Inc -I../../Inc -I../../MCSDK_v5.4.3/MotorControl/MCSDK/MCLib/F3xx/Inc -I../../MCSDK_v5.4.3/MotorControl/MCSDK/UILibrary/Inc -I../../MCSDK_v5.4.3/MotorControl/MCSDK/SystemDriveParams -I../../Drivers/CMSIS/Device/ST/STM32F3xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF”Src/mc_api.d” -MT”Src/mc_api.o” --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o “Src/mc_api.o”
arm-none-eabi-gcc “../Src/mc_config.c” -mcpu=cortex-m4 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32F303xC -DARM_MATH_CM4 -DDEBUG -c -I../../Drivers/CMSIS/Include -I../../MCSDK_v5.4.3/MotorControl/MCSDK/MCLib/Any/Inc -I../../Drivers/STM32F3xx_HAL_Driver/Inc/Legacy -I../../Drivers/STM32F3xx_HAL_Driver/Inc -I../../Inc -I../../MCSDK_v5.4.3/MotorControl/MCSDK/MCLib/F3xx/Inc -I../../MCSDK_v5.4.3/MotorControl/MCSDK/UILibrary/Inc -I../../MCSDK_v5.4.3/MotorControl/MCSDK/SystemDriveParams -I../../Drivers/CMSIS/Device/ST/STM32F3xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF”Src/mc_config.d” -MT”Src/mc_config.o” --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o “Src/mc_config.o”
arm-none-eabi-gcc “../Src/mc_interface.c” -mcpu=cortex-m4 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32F303xC -DARM_MATH_CM4 -DDEBUG -c -I../../Drivers/CMSIS/Include -I../../MCSDK_v5.4.3/MotorControl/MCSDK/MCLib/Any/Inc -I../../Drivers/STM32F3xx_HAL_Driver/Inc/Legacy -I../../Drivers/STM32F3xx_HAL_Driver/Inc -I../../Inc -I../../MCSDK_v5.4.3/MotorControl/MCSDK/MCLib/F3xx/Inc -I../../MCSDK_v5.4.3/MotorControl/MCSDK/UILibrary/Inc -I../../MCSDK_v5.4.3/MotorControl/MCSDK/SystemDriveParams -I../../Drivers/CMSIS/Device/ST/STM32F3xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF”Src/mc_interface.d” -MT”Src/mc_interface.o” --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o “Src/mc_interface.o”
../Src/mc_interface.c:24:10: fatal error: mc_math.h: No such file or directory
#include “mc_math.h”

~~~~~~ compilation terminated. ../Src/mc_config.c”>19:10: fatal error: main.h: No such file or directory

#include “main.h”

~20:10: fatal error: mc_interface.h: No such file or directory

#include “mc_interface.h”

~~~~~~~<span style="color”> compilation terminated. make”> *** Src/subdir.mk:47: Src/mc_api.o Error 1

make: *** Waiting for unfinished jobs....
make: *** Src/subdir.mk:49: Src/mc_config.o Error 1
make: *** Src/subdir.mk:51: Src/mc_interface.o Error 1
../Src/main.c:22:10: fatal error: main.h: No such file or directory
#include “main.h”

~

compilation terminated.
make: *** Src/subdir.mk:45: Src/main.o Error 1
“make -j4 all” terminated with exit code 2. Build might be incomplete.

23:51:33 Build Failed. 9 errors, 0 warnings. (took 41s.388ms)