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.

BOOSTXL-CANFD-LIN: Abstract layer



i would like to use the BoostXL-CANFD with a different micro, where can i find the abstract layer ?

  • The sample code was developed to be as abstract as possible.  Unfortunately the hardware initialization and SPI functions have to be adjusted because they are mirco specific.

    The only modifications needed to port it to a different micro are with the SPI functions found in TCAN4x5x_SPI.c and in the hardware initialization such as GPIO setup found in the initialization portion of main.c. 

    The code is heavily commented and the MSP430 Specific Initialization are the first lines in the main(void) function and are labeled as such. 

    The MSP430 specific SPI functions begin with "EUSCI" and will need to be replaced with the equivalent SPI transmit/receive function from your micro.

    Once you have the SPI and hardware initialization updated for your micro, the rest of the code should work without modification and is ready to integrate into your application;