ADAFRUIT_F405_EXPRESS and CANbus num_filter_banks
Posted: Sun Apr 03, 2022 4:05 am
The CANbus documentation I am reading does not seem to match what I am seeing in practice. I have the ADAFRUIT_F405_EXPRESS STM32F405 based board so the CAN bus implementation for CAN port 1 should be identical to the PyBoard CAN1. When I attempt to set the number of filter banks on CAN 1 to 28 (or anything) I get an error:
This is following the documentation at:
https://docs.micropython.org/en/latest/ ... b.CAN.html
Line 82 of https://github.com/micropython/micropyt ... tm32/can.h does not seem to have this parameter:
Is the documentation wrong or am I doing something wrong?
Code: Select all
>>> can.init(CAN.NORMAL, baudrate=500_000, extframe=True, num_filter_banks=28)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: extra keyword arguments given
>>>
https://docs.micropython.org/en/latest/ ... b.CAN.html
Line 82 of https://github.com/micropython/micropyt ... tm32/can.h does not seem to have this parameter:
Code: Select all
bool can_init(pyb_can_obj_t *can_obj, uint32_t mode, uint32_t prescaler, uint32_t sjw, uint32_t bs1, uint32_t bs2, bool auto_restart);