is not compatible with F1, L4, ... and similar chips that use the older bxCAN peripheral they don't have a PSR register.
The PSR is only present in the much larger FDCAN Hardware like in H7 chips.
bxCAN has the following status registers.
msr master status register
tsr transmit status register
maybe its just as easy as to check for the feature and use msr instead.
for my quick lookup only G4 H5 H7 L5 U5 use FDCAN
The CAN Peripheral function
is not compatible with F1, L4, ... and similar chips that use the older bxCAN peripheral they don't have a
PSR
register. The PSR is only present in the much larger FDCAN Hardware like in H7 chips.bxCAN has the following status registers. msr master status register tsr transmit status register
maybe its just as easy as to check for the feature and use msr instead. for my quick lookup only G4 H5 H7 L5 U5 use FDCAN