Interrupt component fails on PIC32MZ

Moderator: Benj

Post Reply
Brendan
Posts: 243
Joined: Tue Nov 27, 2012 12:53 pm
Location: Cambridge, UK
Has thanked: 140 times
Been thanked: 118 times
Contact:

Interrupt component fails on PIC32MZ

Post by Brendan »

Hi team.

Attached is an extract from a project which exemplifies an issue with the interrupt component when deployed with the challenging PIC32MZ2048EFG144.

Exactly the same macro is called in the loop as by interrupt. Clock settings therefore appear AOK and the loop approach works fine, but all interrupt timers I've tried are no-go. The attached allows either loop or interrupt to be enabled for test.
PIC32MZ_Interrupt_Debug.fcfx
(19.17 KiB) Downloaded 196 times
It's probably unfair to expect Flowcode to be able to handle all such complex devices, so if not a conventional bug as-such, then is there a workaround I can employ?

Many thanks,
Brendan

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times

Re: Interrupt component fails on PIC32MZ

Post by stefan.erni »

Hi Brendan

Just go to the:
Build/Project Options/
Then to the:
BOOTISA and change form
Bootcode and Exeption code is micromips
to
Bootcode and Exeption code is mips


regards

Stefan
2020-11-20_17-03-30.png
2020-11-20_17-03-30.png (45.81 KiB) Viewed 5763 times

Brendan
Posts: 243
Joined: Tue Nov 27, 2012 12:53 pm
Location: Cambridge, UK
Has thanked: 140 times
Been thanked: 118 times
Contact:

Re: Interrupt component fails on PIC32MZ

Post by Brendan »

Hi Stefan.

Good spot!
Happy to confirm the interrupt is now functional.

Thank you for your help :D

Best regards,
Brendan

Post Reply