Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

LM3S5749 CAN bus cannot be configured as GPIO after calling CANMessageSet()

$
0
0

Hello all:

For our application we would like to configure CAN bus as GPIO input before entering deep sleep mode and be woken up by this pin (PD0 in LM3S5749) with dummy CAN message. But I found if I used the function CANMessageSet() in driver library then GPIO PD0 would fail to generate interrupt while receiving dummy message. I've tried all possible workarounds which include: 

1. Set CAN register to default values

2. CANDisable (back to initial state)

3. Close interrupt and peripheral of CAN bus before entering deep sleep mode and re-configure to CAN bus after waking up

4. Configure PD0 as GPIO input and enable port D interrupt before entering deep sleep mode

Unfortunately all trials failed unless I remove the function of CANMessageSet() in my project. Is there anyone encounters the same problem? Can someone help to analyze this issue? Thank you in advance!

Best Regards

Joe


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>