2015-03-05 01:55 PM
STM32CubeMX 4.6.0 Configurator for
CAN
controller
has
inaccuracy
in
calculating
of time for one bit
.If I set
the values for
CAN
speed 500
kbit
/s
(
bittime
2000
ns
)then
configurator
show 2004
ns.
If
you calculate
the bit
time
from
BS1=8
,BS2=3,
prescaler
=8 and APB=48 Mhz, the bit time is2000
ns
.I also recommend
to add to CAN configurator
the calculated
samplepoint
.It's a very
important value
. stm32cubemx-bug-can-bus-bit-time2015-03-05 04:30 PM
I also recommend
to add to CAN configurator
the calculated
samplepoint
.It's a very
important value
. What kind of value are we shooting for in an ideal CAN implementation?2015-03-08 06:41 AM
What kind of value are we shooting for in an ideal CAN implementation?
Each implementation
of the CAN
bus
should be specified:
-speed
-sample
point
-SJW -number of
sample/bit (if avalaible)
to
guarantee a good
compatibility of all
nodes.
It is also necessary
to
checkthe number of
TQ/bit (SYNC_SEG+PROP_SEG+PHASE_SEG1+PHASE_SEG2). I
t
should be
in the range of
8 to 25
. Most controllers configurators show in the table all possible settings. For example Fujitsu Bitmixer:If
STM32CubeMX
CAN
configurator
has a different
philosophy
,then it would
be useful
show the CAN bus speed,
the sample point
and
indicate
if number ofTQ
<
8.