2009-02-02 08:25 PM
Error in stm32f10x_can.c CAN_TRANSMIT() Func
2011-05-17 04:01 AM
In stm32f10x_can.c under the CAN_TRANSMIT() func:
lines 406-415Code:
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, Todd2011-05-17 04:01 AM
Tberk1:
What you suggest makes sense to me. Thank you for discovering this for us. I am changing my LIB file accordingly. Garry.2011-05-17 04:01 AM
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 ]