MC9S12G128F0MLH How to go in the STOP mode and wake up with CAN?

cancel
Showing results for 
Search instead for 
Did you mean: 

MC9S12G128F0MLH How to go in the STOP mode and wake up with CAN?

Jump to solution
859 Views
kemingkai
Contributor III

Hi Nxp:

    Can you help me understand how to enter stop mode and how to wake up via CAN? I don't know how to do it is the complete step,Thanks in advance!If there is sample code, can you provide a reference

 

0 Kudos
1 Solution
823 Views
StanoA
NXP Employee
NXP Employee

Hi Kemingkai,

What kind of project are you trying to open? Please provide more information for help.

Best Regards,

Stano.

View solution in original post

0 Kudos
7 Replies
841 Views
kemingkai
Contributor III

Good morning,Stano:

        If i want go to stop mode,What else to pay attention to besides PSTP = 0, OSCE = 0;

0 Kudos
838 Views
StanoA
NXP Employee
NXP Employee

Hi Kemingkai,

I suggest you to study the Chapter 8.1.3 of RM and pay attention to clock module and COP module settings. You need set-up also the wake-up option – e.g. RTC module.

Best Regards,

Stano.

0 Kudos
852 Views
StanoA
NXP Employee
NXP Employee

Hi Kemingkai,

The MSCAN can work in sleep mode only. In STOP mode the module is set to power down mode and will not work.

The one option how to wake-up MCU by CAN activity could be connect the RXCAN signal externally to GPIO pin with wake-up functionality. Then after wake-up the MCU the CAN must be activated and the next message can be successfully received. As you know the CAN transmitter sends message and waits for back response from the receiver site. The send message repeats till right answer received. So the first attempt will wake the MCU up and second message (or next) can be successfully received and answered.

Sorry, but I haven’t example code for it.

Best Regards,

Stano.

0 Kudos
827 Views
kemingkai
Contributor III

Hi StanoA

    

kemingkai_0-1627983180894.png

i can't find the file per_XDx512_L15Y.h and per_XDx512_L15Y.c,Some variable definitions cannot be understood,Do you have these two files?

 

0 Kudos
824 Views
StanoA
NXP Employee
NXP Employee

Hi Kemingkai,

What kind of project are you trying to open? Please provide more information for help.

Best Regards,

Stano.

0 Kudos
793 Views
kemingkai
Contributor III

Hi StanoA:

     We want to make a shifter project, and if there is an SDK package for this chip, thank you in advance。

 

0 Kudos
789 Views
StanoA
NXP Employee
NXP Employee

Hi Kemingkai,

the SDK = Software Development Kit is not available for this MCU family. But you can select another MCU for SDK use on web:

https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-s...

I hope it could help you to solve your task.

Best Regards,

Stano.

0 Kudos