Page 1 of 1

PIC32MZ2048EFM144 UART Interrupt (SOLVED)

Posted: Tue Dec 12, 2017 12:01 am
by Lagoda
Hi Ben,

Now there is a problem with UART interrupt.

When a byte is loaded into RX FIFO it does not cause interrupt.

I used the Configure setting, what Stefan Erni suggested.
(Boot ISA Selection=Boot code and Exception code is MIPS32)

I tried to debugging with different settings of SFR (priority level, INTCON) in the MPLABX, but I haven't got any result yet. :(
I tested the Timer Interrupt on this MCU and it works.


Do you have any idea to the solution?

Best Regards,

Lagoda

Re: PIC32MZ2048EFM144 UART Interrupt

Posted: Wed Dec 13, 2017 11:49 am
by Benj
Hi Lagoda,

Please can you try this updated definition file and see how you get on.

Simply copy the file into your "Flowcode 7/FCD/PIC32" folder and restart Flowcode.
32MZ2048EFM144.fcdx
(78.8 KiB) Downloaded 77 times
If this works then I'll roll out the change to the rest of the family.

Re: PIC32MZ2048EFM144 UART Interrupt

Posted: Wed Dec 13, 2017 12:45 pm
by Lagoda
Hi Ben,

Works well with the test program. :)

I have created an UART bridge on the target panel between the GSM module and an RS232 interface with UART RX interrupt.
Unfortunately, it does not work in this program.
Maybe I did something wrong.
I'll check it out.

Thanks for the quick fix.

I'll let you know if I have a result.

Best Regards,

Lagoda

Re: PIC32MZ2048EFM144 UART Interrupt

Posted: Wed Dec 13, 2017 3:38 pm
by Lagoda
:D Joy and happiness!!! :D

The improved version that you have created works perfectly.

The UART bridge now works in my circuitboard, but I do not know what it was. :o

Thanks again for your help.

Lagoda

Re: PIC32MZ2048EFM144 UART Interrupt (SOLVED)

Posted: Wed Dec 13, 2017 6:45 pm
by Benj
Brilliant thanks for letting us know and glad it's working :D

This problem was effecting all of the UART RX interrupts on PIC32MZ devices.

I've just managed to roll out and squeeze this fix into the 7.3 release which hopefully goes live tomorrow.