I try to carry my code from STM32F469ZITx to STM32L552RE.
I obtain the error message " unknown type name ‘CANMessage’".
The hardware difference is CAN (STM32F469ZITx) becomes FDCAN (STM32L552RE).
There is special API for FDCAN ? If yes how to use it ?
Thanks for advance.
I do not know about an Mbed CANFD API - Full API list - API references and tutorials | Mbed OS 6 Documentation
I have created my own target. It’s enough ?
Now i still have “unknown type name ‘CANMessage’” with STM32L5
Information, i use meb-os 6.8.0
What’s wrong ?
Thanks for advance
I do not know, it seems like your settings is ignored.
However, I tried that with Nucleo-L552ZE-Q and I added the CAN via
mbed_app.json file. I had no errors about CAN or CANMesage but another one from this line.
CAN_HandleTypeDef CanHandle; probably may be
FDCAN_HandleTypeDef CanHandle; but that still not solve the problem and the compiler trow many more erros from mbed-os/can_api.c
So from my point of view, currently the CAN API is not implemented for this target/L5 family in MbedOS.
can you please share some informations about state of CAN API for L5 family under MbedOS.
I agree that CAN porting layer has maybe not been updated for STM32L5.
I added it in my todo list
Please check STM32L5/STM32U5 : CAN suport by jeromecoutant · Pull Request #15065 · ARMmbed/mbed-os · GitHub
Thanks a lot.