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
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
please help , thanks in advance :))
@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
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
Hii, I don't know the exact version. But it is available on the NXP homepage of S12ZVM. PFA
Thanks for you reply
I don't see any S12ZVM demo there.
Did you combine it with the BLDC demo?
BR, Daniel
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
@lama No, I have not added any code to the application. I'm using the code as it is
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