[RTEMS Project] #4984: MCAN init fail on arm/samV71 bsp in RTEMS 5.3

RTEMS trac trac at rtems.org
Tue Jan 16 11:32:34 UTC 2024


#4984: MCAN init fail on arm/samV71 bsp in RTEMS 5.3
---------------------+------------------------------------------------
  Reporter:  Dario   |      Owner:  (none)
      Type:  defect  |     Status:  new
  Priority:  high    |  Milestone:
 Component:  bsps    |    Version:  5
  Severity:  major   |   Keywords:  MCAN wrong configuration on samV71
Blocked By:          |   Blocking:
---------------------+------------------------------------------------
 Hi expert,

    I have found some problems on MCAN module configuration running on SAM
 V71 XPLAINED ULTRA EVALUATION KIT.

 It is not possible choice other input clock reference (excluded
 PMC_PCK_CSS_MCK), the default configuration works only on 500kb/s and
 MCANx_PROP_SEGy, MCANx_PROP_SEG and MCANx_SYNC_JUMP parameters not are
 compatibles with several MCAN bit time calculators suggested from
 Microchip, (is it possible have the MCAN calculator that you have used to
 calculate yours parameters?):

 https://www.kvaser.com/support/calculators/bit-timing-calculator/
 https://intrepidcs.com/products/free-tools/mb-time-calculator/


 PS: I have found the following register description error (the samV71
 datasheet used is DS60001527H)

 #define MCAN_FBTP_FSJW_Msk (0x7u << MCAN_FBTP_FSJW_Pos)
 #define MCAN_FBTP_FTSEG2_Msk (0xfu << MCAN_FBTP_FTSEG2_Pos)
 #define MCAN_FBTP_FTSEG1_Msk (0x1fu << MCAN_FBTP_FTSEG1_Pos)

 And our collaborators has found also:

 #define MCAN_BTP_SJW_Pos  25
 #define MCAN_BTP_SJW_Msk (0x7fu << MCAN_BTP_SJW_Pos)

 #define MCAN_BTP_TSEG2_Pos 0
 #define MCAN_BTP_TSEG2_Msk (0x7fu << MCAN_BTP_TSEG2_Pos)

 #define MCAN_BTP_TSEG1_Pos 8
 #define MCAN_BTP_TSEG1_Msk (0xffu << MCAN_BTP_TSEG1_Pos)

 #define MCAN_BTP_BRP_Msk (0x1ffu << MCAN_BTP_BRP_Pos)


 I hope the description is clear enought.

 Best regards,
 Dario

--
Ticket URL: <http://devel.rtems.org/ticket/4984>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list