Skip to content

Implement some CAN modes for the LPC1549/LPC11Cxx/LPC1768 #1059

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 30, 2015

Conversation

devanlai
Copy link
Contributor

I've partially implemented the can_mode HAL functions for the LPC1549/LPC11Cxx and LPC1768 platforms.

On the LPC1549/LPC11Cxx which use the C_CAN controller, I've implemented everything except for GlobalTest mode. On the LPC1768, I implemented everything except for GlobalTest mode and SilentTest mode. Based on my preliminary testing, I'm not sure if it's possible to do SilentTest mode, but it's not entirely obvious what is required of SilentTest mode. Is there official API documentation describing what the behavior is expected for each mode?

As LocalTest mode is substantially new, I've added an automated test case, MBED_A27, which does a simple loopback test that verifies it sees the messages it sends out. It only requires that a CAN transceiver is wired up to the controller with appropriate termination resistors.

I've tested the code against the LPC1549Xpresso and mbed-LPC1768 using GCC_ARM to build the tests.

Implement all CAN modes except for GlobalTest on on the LPC11CXX
and LPC15XX targets which use the C_CAN controller
Fix swapped ordering between MODE_TEST_LOCAL and MODE_TEST_GLOBAL
in the HAL definition of CanMode.
Add test case that configures a MUT for in CAN self-test mode and sends a
series of test messages to verify that it works.
Implement all CAN modes except for GlobalTest and SilentTest on on the LPC17XX
0xc0170 added a commit that referenced this pull request Apr 30, 2015
Implement some CAN modes for the LPC1549/LPC11Cxx/LPC1768
@0xc0170 0xc0170 merged commit 334b341 into ARMmbed:master Apr 30, 2015
@devanlai devanlai deleted the can-loopback-wip branch May 3, 2015 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants