AnsweredAssumed Answered

Questions about the clock config of the S32R274

Question asked by Peter Haake on Jun 7, 2018

Hello,

 

I am working on a fast variant to program the internal FLASH over CAN bus of the named device for a major company of the automotive area.

 

The device ist already programmed with a 2nd bootloader (3rd party). It uses CAN XCP to download my own firmware in the SRAM so that I can configure CAN for a more efective way to transport data (CAN XCP is then deactivated). 

 

So right after the power-up of the already programmed device with the 3rd party bootloader, I read the registers of the MC_ME, MC_CGM and PLLDIG. There are values set which make no sense to me and make the device exceed it maximum clock rates.

 

Here are the values of the registers i mentioned:

++CGM++
    CGM_SC_SS: 04020000
    CGM_SC_DC0: 80010000
    CGM_SC_DC1: 80000000
    CGM_SC_DC2: 80000000
    CGM_SC_DC3: 80030000
    CGM_SC_DC4: 80010000
    CGM_SC_DC5: 80010000
    CGM_AC0_SC: 04000000
    CGM_AC0_SS: 04000000
    CGM_AC0_DC0: 80020000
    CGM_AC0_DC2: 80020000
    CGM_AC1_SC: 00000000
    CGM_AC1_SS: 00000000
    CGM_AC1_DC0: 00000000
    CGM_AC2_SC: 00000000
    CGM_AC2_SS: 00000000
    CGM_AC2_DC0: 00000000
    CGM_AC3_SC: 01000000
    CGM_AC3_SS: 01000000
    CGM_AC4_SC: 01000000
    CGM_AC4_SS: 01000000
    CGM_AC7_SC: 02000000
    CGM_AC7_SS: 02000000
    CGM_AC7_DC0: 80000000
    CGM_AC8_SC: 00000000
    CGM_AC8_SS: 00000000
    CGM_AC8_DC0: 00000000
    CGM_AC9_DC0: 00000000
    CGM_AC10_SC: 00000000
    CGM_AC10_SS: 00000000
    CGM_AC10_DC0: 00000000
    CGM_AC11_SC: 00000000
    CGM_AC11_DC0: 00000000
    CGM_AC12_SC: 04000000
    CGM_AC12_DC0: 80020000
    CGM_AC13_SC: 00000000
    CGM_AC13_DC0: 00000000
++PLLDIG++
    PLLDIG_PLL0CR: 00000300
    PLLDIG_PLL0SR: 00000084
    PLLDIG_PLL0DV: 40025030
    PLLDIG_PLL1CR: 00000300
    PLLDIG_PLL1SR: 00000084
    PLLDIG_PLL1DV: 00020018
    PLLDIG_PLL1FM: 00000000
    PLLDIG_PLL1FD: 00000000

++MC_ME++
    MC_ME_GS: 301301F4
    MC_ME_MCTL: 3000A50F
    MC_ME_ME: 0000801D
    MC_ME_IS: 00000011
    MC_ME_IM: 00000000
    MC_ME_IMTS: 00000000
    MC_ME_DMTS: 30000000
    MC_ME_RESET_MC: 00130010
    MC_ME_TEST_MC: 00130010
    MC_ME_SAFE_MC: 00930010
    MC_ME_DRUN_MC: 101301F4
    MC_ME_RUN0_MC: 00130010
    MC_ME_RUN1_MC: 00130010
    MC_ME_RUN2_MC: 00130010
    MC_ME_RUN3_MC: 00130010
    MC_ME_HALT0_MC: 00130010
    MC_ME_STOP0_MC: 00130010
    MC_ME_PS0: C0001A00
    MC_ME_PS1: 20022054
    MC_ME_PS2: 0800E000
    MC_ME_PS3: 40000854
    MC_ME_PS4: 00140200
    MC_ME_PS5: 18800000
    MC_ME_PS6: 00020000
    MC_ME_PS7: 88206000
    MC_ME_RUN_PC0: 000000FE
    MC_ME_RUN_PC1: 00000000
    MC_ME_RUN_PC2: 00000000
    MC_ME_RUN_PC3: 00000000
    MC_ME_RUN_PC4: 00000000
    MC_ME_RUN_PC5: 00000000
    MC_ME_RUN_PC6: 00000000
    MC_ME_RUN_PC7: 00000000
    MC_ME_PCTL09: 00000000
    MC_ME_PCTL11: 00000000
    MC_ME_PCTL12: 00000000
    MC_ME_PCTL30: 00000000
    MC_ME_PCTL31: 00000000
    MC_ME_PCTL36: 00000000
    MC_ME_PCTL38: 00000000
    MC_ME_PCTL45: 00000000
    MC_ME_PCTL49: 00000000
    MC_ME_PCTL61: 00000000
    MC_ME_PCTL77: 00000000
    MC_ME_PCTL78: 00000000
    MC_ME_PCTL79: 00000000

I hope you can explain this to me ...

 

 

 

Thx and br,

Peter

Outcomes