This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AWRL1432: SBL over LIN

Part Number: AWRL1432
Other Parts Discussed in Thread: SYSCONFIG

Hi,

My customer would use SBL over LIN, in current SDK5.3.3.1, there is only example of SBL over UART.

Can u help share the example SBL over LIN? Look forward to your reply.

Thanks.

Andy

  • Hey Andy, 

    We don't have an example for SBL over LIN, but there are some general steps your customer can follow to adapt the SBL example in the SDK to use LIN instead of UART.

    • Enable the LIN driver in SysConfig
      • You should be able to use the default configuration, but you may have to change it to responder mode
    • Include the lin.h file in sbl_main.c and transport.c
      • Call LIN_initModule once before executing any LIN functions
      • Modify SBL_UARTrecv and SBL_UARTsend to use LIN_getData and LIN_sendData functions instead of UART_read and UART_write respectively

    There may be a few more functions you will need to adjust, but you should be able to swap most UART functions with LIN functions. Hopefully this helps but let me know if you have any other questions.

    Regards,

    Kristien