-
Notifications
You must be signed in to change notification settings - Fork 3k
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
LPC1768: Attaching callback with only one CAN interface defined causes hardfault #56
Comments
I assume that this can be fixed by first checking if the CAN peripheral is Something similar is happening here:
} I don't have the hardware available now but I could look at it later this On Friday, September 6, 2013 11:55:20 AM UTC-7, Richard Low wrote:
|
Fixed and verified that it works by modifying the 'can_interrupt' testcase. On Sunday, September 8, 2013 7:15:23 PM UTC-7, Joris wrote:
|
… from a1982c1..e125164 e125164 Check secure session pointer in timer callback (ARMmbed#61) f49e596 Update unit tests (ARMmbed#59) 6a5634a Support for multiple virtual services (ARMmbed#58) 7fe6b98 Remove yotta files (ARMmbed#57) 5c5c8fe Fix socket send return value overflow (ARMmbed#56) 0870d05 Update unit test stubs to match latest socket api (ARMmbed#55) e687be8 Merge pull request ARMmbed#54 from ARMmbed/warn_fixes b8fe613 updated unittests 8640d05 Compilation warnings fixed eea83e5 Flag out entropy source addition (ARMmbed#53) 7d72eb4 Fix unittests (ARMmbed#52) 4a6991e Avoid referencing ns_msghdr_t::flags git-subtree-dir: features/nanostack/FEATURE_NANOSTACK/coap-service git-subtree-split: e125164
Add SD card reader support over DISCO_L476VG platform for running Cloud Client.
Update to latest version of Mbed OS
The Environment
The Problem
Hardfault interrupt on LPC1768 when attaching a callback function to a CAN object and only one CAN object is defined.
How to Reproduce
Run the following app on an mbed LPC1768 . Note the blue LEDs of death as HardFault_Handler() is called.
The Workaround
Create a second unused CAN object
and run the app again. The app now works OK.
The Cause
Checking IER on both CAN peripheral modules when only one of them is enabled causes a hard fault.
The error is in function can_irq_set(), at line 167 of file …/mbed/targets/hal/TARGET_NXP/TARGET_LPC176x/can_api.c.
The text was updated successfully, but these errors were encountered: