LIN problem with safegauto, in spider.

I am using safegauto within Whitebox.

GitHub - renesas-rcar/whitebox-sdk: R-Car S4 Whitebox SDK repository 

safegauto is from Commits on August 20, 2024.

I am experimenting with it on Spider.

In safegauto, the Makefile.config contains the following:

ifeq ($(TARGET), renesas_rcar_s4)

RLIN3_PORT0 = 7

….

endif

Additionally, in \hypervisor\obj\obj_1pe_atk2\sample1.c, there is:

syslog("HV%d : RH850v2 HyperVisor start on Core%d!\n", coreid, coreid);

The syslog is output through RLIN3_PORT0, which corresponds to LIN7, so there should be a waveform.

However, when measuring CN38[58] RLIN37TX with an oscilloscope, no waveform is detected.

Could you please help identify what might be the issue?



Parents
  • Hi Max.Sun,

    As DuyDang said, LIN has not been supported on Whitebox SDK.
    Thus, we don't check whether it works correctly.

    However, I noticed that pin number may be wrong.
    If I remeber correctly, RLIN37TX is pin56 on CN38 and shorting RLIN_EN pin to GND is also required.

  • Dear YH

    thank you

    and

    I found that in hypervisor\target\renesas_rcar_s4\target_hv_impl.c
    there are only ports 1,3,5,7 for initialization,
    for experimentation, I changed
    Makefile.config to
    ifeq ($(TARGET), renesas_rcar_s4)
    RLIN3_PORT0 = 5
    RLIN3_PORT1 = 7
    RLIN3_PORT2 = 3
    RLIN3_PORT3 = 1
    OSTM_CLK_MHZ = 80
    endif
    And in the
    hypervisor\obj\obj_1pe_atk2\sample1.c
    Add

    #elif RLIN3_PORT0 == 5
        /*
         *  RLIN35へのアクセス権の設定
         */
        sil_wrw_mem(PBGERRSLV50_PBGKCPROT, UNLOCKKEY_VAL);
        sil_wrw_mem(PBG52_PBGPROT1_m(13), (TBIT_HV_SPID|VM0_0_SPIDLIST));
        sil_wrw_mem(PBGERRSLV50_PBGKCPROT, LOCKKEY_VAL);  

    Theoretically, it should become output from LIN3_5, i.e., CN13[2] should output UART data based on the
    syslog(“HV%d : RH850v2 HyperVisor start on Core%d!\n”, coreid, coreid);
    Output UART data

    But CN13[2] doesn't output any waveform, is there something I missed in my modification?

Reply
  • Dear YH

    thank you

    and

    I found that in hypervisor\target\renesas_rcar_s4\target_hv_impl.c
    there are only ports 1,3,5,7 for initialization,
    for experimentation, I changed
    Makefile.config to
    ifeq ($(TARGET), renesas_rcar_s4)
    RLIN3_PORT0 = 5
    RLIN3_PORT1 = 7
    RLIN3_PORT2 = 3
    RLIN3_PORT3 = 1
    OSTM_CLK_MHZ = 80
    endif
    And in the
    hypervisor\obj\obj_1pe_atk2\sample1.c
    Add

    #elif RLIN3_PORT0 == 5
        /*
         *  RLIN35へのアクセス権の設定
         */
        sil_wrw_mem(PBGERRSLV50_PBGKCPROT, UNLOCKKEY_VAL);
        sil_wrw_mem(PBG52_PBGPROT1_m(13), (TBIT_HV_SPID|VM0_0_SPIDLIST));
        sil_wrw_mem(PBGERRSLV50_PBGKCPROT, LOCKKEY_VAL);  

    Theoretically, it should become output from LIN3_5, i.e., CN13[2] should output UART data based on the
    syslog(“HV%d : RH850v2 HyperVisor start on Core%d!\n”, coreid, coreid);
    Output UART data

    But CN13[2] doesn't output any waveform, is there something I missed in my modification?

Children