Can bit segments?
What are the CAN bit segment 1 and 2?
CAN specification doesn't use those names.
Are they PROP_SEG and PHASE_SEG1 or PHASE_SEG1 and PHASE_SEG2?
All three are programmable by the CAN spec, but PHASE_SEG2 should be max. of PHASE_SEG1 and INFORMATION PROCESSING TIME which is "less than or equal to 2 time quanta".
I would guess that bit segment 1 = PROP_SEG and bit segment 2 = PHASE_SEG1. PHASE_SEG2 is then probably equal to PHASE_SEG1.
Is that right?
I also realized that in STM32F427 data sheets it says that CAN can work upto 1Mbps.
I wonder how? Is there Cube restriction or why it seems impossible?
With "full speed" (APB1@45MHz) I tried to set prescaler to 5, bit segment1 to 2 and bit segment2 to 3, but CubeMX says they are too small values.
I'd think that it would mean:
Tq=111.11 ns,
SYNC_SEG = 1Tq
PROP_SEG = 2Tq
PHASE_SEG1=3Tq
PHASE_SEG2=3Tq
Total 9Tq/bit = 999.99ns