Hi,
You should look into the AFIO section of the STM32 Reference Manual.
Giovanni
CAN - Don't get RXMSG
Moderators: RoccoMarco, lbednarz, tfAteba
- 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
You can remap to PB8 & PB9 with the following
Code: Select all
AFIO->MAPR |= AFIO_MAPR_CAN_REMAP_REMAP2;- 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
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
There is a special online calculator to do this trick.
http://www.bittiming.can-wiki.info/#C_CAN16