Skip to main content
Tchou.1
Associate
August 17, 2020
Question

what happen in my canbus sample code.(use 2 canbus need to enable 3canbus )

  • August 17, 2020
  • 2 replies
  • 689 views

Discovery broad SPC528B-DIS

SPC5Studio 6

UDE STK 5.00.05

OS: WIN10 64BIT

1. i imort this sample project: SPC582Bxx RLA CAN Test Application for Discovery .

2. follow sample code cand2 and cand7 enable sub0 mcan1 and sub1 mcan1

,but i can't work( no loopback mode).

3. if i enable additional "mcan 0 sub0", cand2 and cand7 can work.

i have no idea what happen.

    This topic has been closed for replies.

    2 replies

    Erwan YVIN
    ST Employee
    August 18, 2020

    Hello ,

    Could you send me the installation details ?

    How do you detect that the CAN transmission does not work ?

    LEDs do not toggle ?

     pal_lld_togglepad(PORT_E, LED_4);
     pal_lld_togglepad(PORT_A, LED_3);

    Best Regards

    Erwan

    Tchou.1
    Tchou.1Author
    Associate
    August 19, 2020

    led to check work or not .

    if i turn on MCAN0 , and led will be lit.

    Best Regards

    tim