MC9S12ZVML128_LIN_BLDC_Sensorless code

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MC9S12ZVML128_LIN_BLDC_Sensorless code

1,757件の閲覧回数
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,667件の閲覧回数
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,588件の閲覧回数
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,568件の閲覧回数
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,561件の閲覧回数
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,736件の閲覧回数
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,730件の閲覧回数
itsnewforme
Contributor IV

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

0 件の賞賛
返信

1,684件の閲覧回数
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 件の賞賛
返信