cancel
Showing results for 
Search instead for 
Did you mean: 

Error in stm32f10x_can.c CAN_TRANSMIT() Func

tberk1
Associate II
Posted on February 03, 2009 at 05:25

Error in stm32f10x_can.c CAN_TRANSMIT() Func

3 REPLIES 3
tberk1
Associate II
Posted on May 17, 2011 at 13:01

In stm32f10x_can.c under the CAN_TRANSMIT() func:

lines 406-415

Code:

u8 CAN_Transmit(CanTxMsg* TxMessage)

{

u8 TransmitMailbox = 0;

/* Check the parameters */

assert_param(IS_CAN_STDID(TxMessage->StdId));

assert_param(IS_CAN_EXTID(TxMessage->StdId));

assert_param(IS_CAN_IDTYPE(TxMessage->IDE));

assert_param(IS_CAN_RTR(TxMessage->RTR));

assert_param(IS_CAN_DLC(TxMessage->DLC));

Shouldn't Line 412: assert_param(IS_CAN_EXTID(TxMessage->StdId));

Be: assert_param(IS_CAN_EXTID(TxMessage->ExtId));

Regards,

Todd

design5
Associate II
Posted on May 17, 2011 at 13:01

Tberk1:

What you suggest makes sense to me.

Thank you for discovering this for us.

I am changing my LIB file accordingly.

Garry.

sofiene
Associate III
Posted on May 17, 2011 at 13:01

Hi,

This info was already posted by michael.kotthaus.

Anyway, thank u.

However, this error has no impact in the user application!!

M3allem.

[ This message was edited by: M3allem on 03-02-2009 09:59 ]