Hello
I belive the UART channel 2 interrupt have a failure.
CPU 32MX250
UART channel 2
the following code causes the failure:
IEC1bits.U2RXIE = 1;
IPC8bits.U2IP = 1; ==> this command code belongs to the UART cannel 1. The wrong code is IPC9bits.U2IP = 1;
IPC9bits.U2IS = 0;
INTCONbits.MVEC = 1;
__builtin_mtc0(12,0,(__builtin_mfc0(12,0) | 0x0001));
failure at RXINT1
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: failure at RXINT1
Hello,
I have managed to find and fix the problem in the definition files. There was a surprising number of interrupt issues I came across while investigating this issue which all should hopefully be sorted now.
http://www.flowcode.co.uk/mmforums/viewt ... 63&t=18182
Let me know how you get on.
I have managed to find and fix the problem in the definition files. There was a surprising number of interrupt issues I came across while investigating this issue which all should hopefully be sorted now.
http://www.flowcode.co.uk/mmforums/viewt ... 63&t=18182
Let me know how you get on.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel