2012-07-30 10:43 AM
2012-07-30 10:09 PM
2012-08-01 03:59 AM
Put to Normal mode and then check what CAN_init returns ... in my case, if I put Normal mode and disconnect the CAN transceiver, I get Init_Failed.
2012-08-01 10:40 AM
2012-08-01 11:04 AM
I have a question for you ... in manual (and CAN library), it says CAN Filter Number has to be between 0 and 13 ... you use 14. I found out that if I use a number between 0 and 13, I don't receive any message at all, but if I set it to 14, it accept them (all). Why so?
Cause you're using CAN2, a slaving device, and the default setting of CAN_FMR is that the filter base for the slave is 14. Use CAN_SlaveStartBank() if you want it set to something else. The CAN on the STM32F40x has 28 filters, the defaults assume 14 for each CAN1 and CAN22012-08-01 09:48 PM
2012-08-01 09:56 PM
I still don't understanding the configuration of CAN Filtering . I have manage to understand the CAN list mode filtering but having a problem with Mask mode.
Suppose I want to filter Identifiers from (100 to 150). Can any one tell me the Mask filter settings and Values for both Extended identifier configuration and Standard Identifier configuration. Thanks.2012-08-02 04:04 AM
You can find more if you search this forum for:
CAN Baud rate
Try this: // CAN Bitrate CAN_InitStructure.CAN_SJW=CAN_SJW_1tq; // SJW (1 bis 4 möglich)CAN_InitStructure.CAN_BS1=CAN_BS1_14tq; // Samplepoint 72%
CAN_InitStructure.CAN_BS2=CAN_BS2_6tq; // Samplepoint 72%