LIN FSL_LIN_2.x_STACK_Package_4.5.9 package Bug feedback

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LIN FSL_LIN_2.x_STACK_Package_4.5.9 package Bug feedback

843 Views
289402549
Contributor I

I am using LIN FSL_LIN_2.x_STACK_Package_4.5.9 package to implement a master LIN node on J2602.

  • I found a problem in the code that needed to be improved

    /*** MARCOS ***/
    typedef union {
    l_u8 byte; /**< a data byte refer to 8 data bits follow */
    struct
    {
    /* LIN 2.1 */
    l_u8 successful_transfer:1; /**< Transfer flag LIN 2.1*/
    l_u8 error_in_response:1; /**< Error response LIN 2.1*/
    l_u8 bus_activity; /**< Bus activity timeout LIN 2.1*/
    /* J2602 */
    l_u8 framing_error:1; /**< frame error flag J2602*/
    l_u8 checksum_error:1; /**< checksum error flag */
    l_u8 readback_error:1; /**< readback error in J2602 to be called Data Error */
    l_u8 parity_error:1; /**< frame error flag */
    l_u8 reset:1; /**< reset flag (not implemented) */
    }bit;
    } lin_status;
    /* Lin status bit mask */
    #define LIN_STA_SUCC_TRANSFER 1 /**< LIN status bit mask: success transfer */
    #define LIN_STA_ERROR_RESP 2 /**< LIN status bit mask: error in response */
    #define LIN_STA_BUS_ACTIVITY 4 /**< LIN status bit mask: bus activity */
    #define LIN_STA_FRAME_ERR 8 /**< LIN status bit mask: frame error */
    #define LIN_STA_CHECKSUM_ERR 16 /**< LIN status bit mask: checksum error */
    #define LIN_STA_READBACK_ERR 32 /**< LIN status bit mask: readback error */
    #define LIN_STA_PARITY_ERR 64 /**< LIN status bit mask: parity error */
    #define LIN_STA_RESET 128 /**< LIN status bit mask: reset */

l_u8 bus_activity; /**< Bus activity timeout LIN 2.1*/

It should be like this.

l_u8 bus_activity:1; /**< Bus activity timeout LIN 2.1*/

Labels (1)
0 Kudos
1 Reply

705 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hi he maoyi,

I've downloaded this package in the following link and this error was already corrected. Are you sure you download it the last LIN stack?

Best Regards,

Alexis Andalon

0 Kudos