PIC32MZ2048EFM144 UART Interrupt (SOLVED)

An area to discuss 32-bit PIC specific problems and examples

Moderator: Benj

Post Reply
Lagoda
Posts: 153
Joined: Fri Jul 15, 2016 9:51 pm
Contact:

PIC32MZ2048EFM144 UART Interrupt (SOLVED)

Post 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
Attachments
PIC32MZ_Timer_Interrupt_works.fcfx
(12.7 KiB) Downloaded 58 times
PIC32MZ_UART_Interrupt_Doesn't_work.fcfx
(12.49 KiB) Downloaded 63 times
Last edited by Lagoda on Wed Dec 13, 2017 3:49 pm, edited 1 time in total.

User avatar
Benj
Matrix Staff
Posts: 14843
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: PIC32MZ2048EFM144 UART Interrupt

Post 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.

Lagoda
Posts: 153
Joined: Fri Jul 15, 2016 9:51 pm
Contact:

Re: PIC32MZ2048EFM144 UART Interrupt

Post 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

Lagoda
Posts: 153
Joined: Fri Jul 15, 2016 9:51 pm
Contact:

Re: PIC32MZ2048EFM144 UART Interrupt

Post 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

User avatar
Benj
Matrix Staff
Posts: 14843
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: PIC32MZ2048EFM144 UART Interrupt (SOLVED)

Post 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.

Post Reply