Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 10 months ago.
Does NUCLEO-F072RB support CAN library
Hi,
Does NUCLEO-F072RB support CAN library?
Thanks
Question relating to:
1 Answer
9 years, 10 months ago.
Hello,
My short answer is no.
A long answer...
One of the best information resources is the source code.
For example, the mbed LPC1768 supports CAN library. Then, the device.h file contains the following line.
http://developer.mbed.org/users/mbed_official/code/mbed-src/file/8a0b45cd594f/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768/device.h
#define DEVICE_CAN 1
And, the can_api.c source code is available in the following directory.
http://developer.mbed.org/users/mbed_official/code/mbed-src/file/8a0b45cd594f/targets/hal/TARGET_NXP/TARGET_LPC176X
I could not find any CAN information in the following directory.
http://developer.mbed.org/users/mbed_official/code/mbed-src/file/8a0b45cd594f/targets/hal/TARGET_STM/TARGET_NUCLEO_F072RB
update:
Found the latest library supports the CAN interface.
https://developer.mbed.org/users/mbed_official/code/mbed-dev/file/d6373279a6f1/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/device.h
https://developer.mbed.org/users/mbed_official/code/mbed-dev/file/d6373279a6f1/targets/hal/TARGET_STM/TARGET_STM32F0/can_api.c