S32G: M kernel Standby demo and how to porting to Mcal

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

S32G: M kernel Standby demo and how to porting to Mcal

S32G: M kernel Standby demo and how to porting to Mcal

This article explains the details and customization of the S32G M7 core Standby demo. And how to porting to Autosar Mcal demo.

Contents

1    Description of reference materials. 2

2    Demo creation and running process. 2

2.1  Demo checkpoints. 2

2.2  The difference between Standby and StandbyRAMboot 4

3    S32G Standby principle and Code Description. 5

3.1  Peripheral initialization function. 5

3.2  standbyramc_cpy(optional) 5

3.3  WKPU_set 8

3.4  standby_modechange. 13

4    VR5510 PMIC Standby principle and code description. 15

4.1  PMIC_initConfig. 15

4.2  PMIC_standbyEntry. 17

5    Customization modification. 18

5.1  Do not enable RTC wakeup feaure. 18

5.2  Eable CAN1_RX wakeup feature. 19

5.3  Only support full boot 21

5.4  Open the DDR related power 21

5.5  Modify debug serial port to UART1. 24

5.6  Modify the device drive clock. 26

5.7  close other non-main core. 30

6    Build a new MCAL demo. 34

6.1  Modify the UART driver 35

6.2  Implement the clock shutdown code. 36

6.3  Configure the power mode switching driver 37

6.4  Confgure the wakeup source. 42

6.5  Add PMIC driver 51

6.6  Main function call routine. 59

6.7  Test 61

6.8  Future development plan. 62

本文说明S32G M7核Standby demo 详细情况及定制,以及如何新建一个mcal demo

1    参考资料说明... 2

2    Demo创建运行过程... 2

2.1  创建运行... 2

2.2  Standby和StandbyRAMboot的区别... 4

3    S32G Standby原理与代码说明... 5

3.1  外设初始化函数... 5

3.2  standbyramc_cpy(可选) 5

3.3  WKPU_set 8

3.4  standby_modechange. 13

4    VR5510 PMIC Standby原理与代码说明... 14

4.1  PMIC_initConfig. 14

4.2  PMIC_standbyEntry. 16

5    定制修改... 17

5.1  关闭RTC唤醒功能... 17

5.2  打开CAN1_RX唤醒功能... 19

5.3  只支持full boot 20

5.4  打开DDR相关电源... 21

5.5  修改调试串口为UART1. 23

5.6  修改设备驱动时钟... 25

5.7  事先关掉所有其它的非主核... 29

6    修改为MCAL Demo. 33

6.1  修改UART驱动... 34

6.2  实现时钟关闭代码... 35

6.3  配置电源模式切换驱动... 36

6.4  配置唤醒源... 41

6.5  加入PMIC驱动... 50

6.6  主函数逻辑实现... 58

6.7  运行测试... 60

6.8  未来开发计划... 61

 

attachment include chinese/english doc, s32ds codes with 2 zip package(remove the .7z), mcal codes.

 

Labels (1)
Attachments
Comments

Hi,

Adding timing measurements at wakeup done on a RDB2 board (you can read the duration in the |A1-A2| Timings Marker Pairs):

  • Pink: PMIC_STBY_MODE_B
  • Blue: STBY_GOOD (PMIC_VDD_OK)
  • Green: CAN_RX (wakeup source, you'll see bounce as I touch manually the ground)
  • Yellow: UART1 (can be seen as startup).

10.PNG15.PNG20.PNG

The board setup for the measures with the logic analyzer:

board_setup.jpg

Hi John,

We follow the document to implement M7 standby mode but we met a mode setting issue.

EB_SOC_STNADBY.jpg

If we change the operation mode from RUN to SOC_STANDBY, the GUI will show error and can't build successful.

May I lose some flow?

Thanks.

 

Allen

maybe you can use my project to test again.

Hi

where can I find the S32G M7 core Standby demo which you a referencing here and which I shall import

Import project into S32DS:Open S32DS3.4.3+RTD3.0.2, File->Import->Existing Projects into
Workspace/Next->Brows to “….\S32G274Astandbymode” /Finish.

jochengerster_0-1688570437733.png

thanks

Jochen

 

do your means you need the S32DS hard coding project? and if you use the mcal, suggest you use the mcal demo in the attachment.

and if you need the S32DS one, pls contact your NXP windows FAE to get it.

Not sure what you mean with hard coding project

I like to have the Design Studio Project so I can modified and build it.

To my understanding this is described under chapter 2.1 but as said I can't find the standby demo project nor the ...UG.pdf

jochengerster_0-1688623168376.png

PS: I'm FAE but not sure what a window FAE is...

 

100% helpful (2/2)
Version history
Last update:
‎11-18-2022 12:25 AM
Updated by: