CAN - Don't get RXMSG

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: CAN - Don't get RXMSG

Post by Giovanni »

Hi,

You should look into the AFIO section of the STM32 Reference Manual.

Giovanni
gnif
Posts: 8
Joined: Wed Jan 08, 2014 12:23 am

Re: CAN - Don't get RXMSG

Post by gnif »

You can remap to PB8 & PB9 with the following

Code: Select all

AFIO->MAPR |= AFIO_MAPR_CAN_REMAP_REMAP2;
User avatar
DeusExMachina
Posts: 223
Joined: Tue Apr 03, 2012 5:08 am
Has thanked: 3 times
Been thanked: 3 times

Re: CAN - Don't get RXMSG

Post by DeusExMachina »

Also you need to set up CAN_BTR register according to your APB bus frequency
There is a special online calculator to do this trick.
http://www.bittiming.can-wiki.info/#C_CAN16
Post Reply