AN5201(Integrating the LIN driver) question

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AN5201(Integrating the LIN driver) question

620 Views
bjhwang
Contributor I

Dear Sir or Madam,

I'm using S12ZVMx128 EVB for testing LIN communication.

I use OSBDM port to debug the board and using AN5201SW for example.

The problem is the sw runs very well while OSBDM cable is inserted, but after reset(power switch off/on and the cable is removed), the motor is not running. It doesn't perform reset.

Could you give me some advice for this?

Thank you. 

0 Kudos
Reply
2 Replies

449 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,

With OSBDM, the MCU enters Special Single Chip Mode. See Chapter 1.9.1 of the reference manual.

Without the debugger, the MCU enters Normal Single Chip Mode.

Certain registers can be written only once in Normal Mode, for instance MODRR0/1,2, FOPT, CPMUCOP, …

Whereas in Special Mode, they can be written anytime.

So make sure all the registers are written only once.

 

Regards,

Daniel

0 Kudos
Reply

449 Views
bjhwang
Contributor I

Thanks for the feedback.

I have one more question to this AN5201SW.

You said that all the registers are written only once, but I'm confuse about this.

The testing condition is same as I mentioned before(S12ZVMxEVB), and If I perform reset(SW4) while the OSBDM is implemented the motor is not running.(the motor automatically runs at 1500RPM).

So the point is, if I change this registers to normal single chip mode, the board can performs reset and runs at 1500RPM again?

Thanks

Best Regards 

0 Kudos
Reply