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 Reply Children
  • Anonymous
    0 Anonymous in reply to Y.H. [Renesas]

    Thank you. I changed the measurement point(pin56), and the data output is correct.

    However, I modified the Makefile.confing

    ifeq ($(TARGET), renesas_rcar_s4)
    rlin3_port0 = 7
    Modify
    ifeq ($(TARGET), renesas_rcar_s4)
    rlin3_port0 = 0

    And in the
    hypervisorobj\obj_1pe_atk2\sample1.c
    Theoretically, it can support
    RLIN3_PORT0 == 0
    I checked the program, all the permissions are enabled.
    But there is no output from CN8[2].
    My SW5 and SW9 are the same value.

    How can I modify the program to replace LIN7 with LIN0?

  • 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?