Other Parts Discussed in Thread: SYSCONFIG, C2000WARE
Hello,
I started to work on CAN applications.
I tried to use SysConfig for that.
I can send a message but I cannot use Interrupts. Down here what I did on SysConfig, and in my code. My coal is to generate an interrupt each time the Message 1 is sent.
1) I enabled IE1, message transfer completed or bus error
For the Global Interrupt lines, I selected Global_INT0 and GLOBAL_INT1.
I chose Global_INT0 even if I don't want to use this line. I don't know why, but there is a warning message if I don't choose this option:
(I didn t Enable Line 0 Interrupts)
2) I only Use Message 1 Mailbox
3) This mailbox is configured as a transmitt mailbox. I ask for a transmitt interrupt, and connect it to Line1:
4) I enabled Interrupts in the PIE:
5) In the ISR 1, I clear the Interrupt Status, the Global Interrupt Status, and acknowledge the group
But the problem is that I never enter in the ISR, although the message is correctly sent by the command
So, my questions are:
- what does the warning message mean ?
- why do I never enter in the ISR ?
- Does my code in the ISR make sense ?
Thank you to anyone who will help me !