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
PIC32MZ2048EFM144 UART Interrupt (SOLVED)
Moderator: Benj
-
- Posts: 170
- Joined: Fri Jul 15, 2016 9:51 pm
- Has thanked: 69 times
- Been thanked: 61 times
- Contact:
PIC32MZ2048EFM144 UART Interrupt (SOLVED)
- Attachments
-
- PIC32MZ_Timer_Interrupt_works.fcfx
- (12.7 KiB) Downloaded 255 times
-
- PIC32MZ_UART_Interrupt_Doesn't_work.fcfx
- (12.49 KiB) Downloaded 266 times
Last edited by Lagoda on Wed Dec 13, 2017 3:49 pm, edited 1 time in total.
- 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: PIC32MZ2048EFM144 UART Interrupt
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.
If this works then I'll roll out the change to the rest of the family.
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.
If this works then I'll roll out the change to the rest of the family.
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
-
- Posts: 170
- Joined: Fri Jul 15, 2016 9:51 pm
- Has thanked: 69 times
- Been thanked: 61 times
- Contact:
Re: PIC32MZ2048EFM144 UART Interrupt
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
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
-
- Posts: 170
- Joined: Fri Jul 15, 2016 9:51 pm
- Has thanked: 69 times
- Been thanked: 61 times
- Contact:
Re: PIC32MZ2048EFM144 UART Interrupt
Joy and happiness!!!
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.
Thanks again for your help.
Lagoda
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.
Thanks again for your help.
Lagoda
- 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: PIC32MZ2048EFM144 UART Interrupt (SOLVED)
Brilliant thanks for letting us know and glad it's working
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.
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.
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