PIC32MZ2048EFM144 UART Interrupt (SOLVED)

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

Moderator: Benj

Lagoda
Posts: 124
Joined: Fri Jul 15, 2016 9:51 pm
Has thanked: 57 times
Been thanked: 44 times
Contact:

PIC32MZ2048EFM144 UART Interrupt (SOLVED)

Postby Lagoda » Tue Dec 12, 2017 12:01 am

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

User avatar
Benj
Matrix Staff
Posts: 13980
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4244 times
Been thanked: 4006 times
Contact:

Re: PIC32MZ2048EFM144 UART Interrupt

Postby Benj » Wed Dec 13, 2017 11:49 am

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
(79.52 KiB) Downloaded 37 times


If this works then I'll roll out the change to the rest of the family.
These users thanked the author Benj for the post:
Lagoda (Wed Dec 13, 2017 12:45 pm)
Rating: 5.88%
 

Lagoda
Posts: 124
Joined: Fri Jul 15, 2016 9:51 pm
Has thanked: 57 times
Been thanked: 44 times
Contact:

Re: PIC32MZ2048EFM144 UART Interrupt

Postby Lagoda » Wed Dec 13, 2017 12:45 pm

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
These users thanked the author Lagoda for the post:
Benj (Wed Dec 13, 2017 11:09 pm)
Rating: 5.88%
 

Lagoda
Posts: 124
Joined: Fri Jul 15, 2016 9:51 pm
Has thanked: 57 times
Been thanked: 44 times
Contact:

Re: PIC32MZ2048EFM144 UART Interrupt

Postby Lagoda » Wed Dec 13, 2017 3:38 pm

: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
These users thanked the author Lagoda for the post:
Benj (Wed Dec 13, 2017 6:43 pm)
Rating: 5.88%
 

User avatar
Benj
Matrix Staff
Posts: 13980
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4244 times
Been thanked: 4006 times
Contact:

Re: PIC32MZ2048EFM144 UART Interrupt (SOLVED)

Postby Benj » Wed Dec 13, 2017 6:45 pm

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.
These users thanked the author Benj for the post:
Lagoda (Wed Dec 13, 2017 7:03 pm)
Rating: 5.88%