Hello,
Tool : S32 Design Studio for S32 Platform 3.3
MCU : S32k144W
use Application Note : 1) S32K144EVB (AN12235 PMSM_1ch)
2) lin_slave_s32k144w (SDK)
i try combined two sources.
result
If the LIN signal is not given, the motor operates. (motor 500 rpm , 0.2 Ampere)
The motor stops when the lin signal is activated. (Motor brake , 3 Ampere)
Could anyone help me to solve this problem?
Solved! Go to Solution.
Hello,
So simply you need to manage interrupt priorities. As the motor has the high priority, simply lower LIN interrupt priority.
Have a look at reference manual:
7.2.1 Interrupt priority levels
Best regards,
Peter
Hello,
So simply you need to manage interrupt priorities. As the motor has the high priority, simply lower LIN interrupt priority.
Have a look at reference manual:
7.2.1 Interrupt priority levels
Best regards,
Peter
I resolved this problem follow your advice,Thank you very much!
Hello,
Could you share which HW development board you are using?
Is it NXP or Custom one?
With a very little information given, I assume that you have some issue with resource sharing in your SW.
You can start with looking into interrupts, which could be most common case for such issue.
Best regards,
Peter
We have designed a custom board for our S32K144W
step1 : POWER ON(12V) , Motor run (500rpm, 0.2A)
step2 : start Lin communication
step3 : Motor stop ( 0 rpm ,Brake, 3A)
I think commutation timing calculations are essential for the motor to work.
Motor commutation calculation stops while Lin interrupt is activated
help me~