MC9S12ZVML128_LIN_BLDC_Sensorless code

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MC9S12ZVML128_LIN_BLDC_Sensorless code

1,740 次查看
itsnewforme
Contributor IV

1) I'm using the MC9S12ZVML128 Microcontroller as Lin Slave and I'm using CANoe as Master. I'm able to control the speed of the motor using CANoe.

2) I'm using CodeWarrior IDE to flash the code in the MCU.

3) After flashing the code, and running the code in debug mode the code works fine. PFA

itsnewforme_1-1663746302067.png

itsnewforme_2-1663746330622.png

4) But, after flashing the code in the Microcontroller, removing the debugger and after resetting the ECU the code is not working. ( i.e release mode ) PFA

itsnewforme_3-1663746412276.png

please help , thanks in advance :))

0 项奖励
回复
7 回复数

1,650 次查看
itsnewforme
Contributor IV

@lama @danielmartynek Thanks for your reply, I did checked all the points that you have mentioned but it didn't fixed the issue. 

BUT, we were checking the S12zvm.prm file and we found out that the VECTOR 0 _Startup is commented. PFA

itsnewforme_1-1664277924244.png

after uncommenting the highlighted part the code works fine in standalone mode. 

Please confirm if this is a correct fix for this issue.

Thanks & Regards

Abhijit

0 项奖励
回复

1,571 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @itsnewforme,

I'm sorry for the delay.

Which version of the SW do you have?

 

Thanks,

BR, Daniel

0 项奖励
回复

1,551 次查看
itsnewforme
Contributor IV

Hii, I don't  know the exact version. But it is available on the NXP homepage of S12ZVM. PFA

Link 

itsnewforme_0-1665037460662.png

Thanks for you reply

0 项奖励
回复

1,544 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

I don't see any S12ZVM demo there.

Did you combine it with the BLDC demo?

 

BR, Daniel

0 项奖励
回复

1,719 次查看
lama
NXP TechSupport
NXP TechSupport

Hi,

have you add any code to the application?

This behavior usually happens when some register "write anytime in the special mode" is "write once only" (also no cumulative write is accepted) in the normal mode .

Best regards,

Ladislav

 

0 项奖励
回复

1,713 次查看
itsnewforme
Contributor IV

@lama No, I have not added any code to the application. I'm using the code as it is

0 项奖励
回复

1,667 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @itsnewforme,

Do you power cycle the MCU?

If so, can you attach the debugger back (without reset) and halt the execution to see where the code got stuck?

Can you read the GDU registers?

Is there a fault flag set?

 

Thank you,

BR, Daniel

 

0 项奖励
回复