• AVR Freaks

AnsweredHarmony2 PIC32MX aria_quickstart

Author
AlexGiov_uc
Starting Member
  • Total Posts : 46
  • Reward points : 0
  • Joined: 2012/12/10 10:39:21
  • Location: 0
  • Status: offline
2020/03/24 07:38:29 (permalink)
0

Harmony2 PIC32MX aria_quickstart

Hello,
 
I can not build the following example, could you help me?
C:\microchip\harmony\v2_06\apps\gfx\aria_quickstart\firmware\aria_quickstart.X
I tried with the folloing configurations:
MPLAB IDE X 4.20; XC32 Compiler 2.20; Harmony 2.06
MPLAB IDE X 5.35; XC32 Compiler 2.40; Harmony 2.06
 
the build output is attached
post edited by AlexGiov_uc - 2020/03/24 08:09:26
#1
jdeguire
Super Member
  • Total Posts : 515
  • Reward points : 0
  • Joined: 2012/01/13 07:48:44
  • Location: United States
  • Status: offline
Re: Harmony2 PIC32MX aria_quickstart 2020/03/24 13:52:58 (permalink) ☼ Best Answerby AlexGiov_uc 2020/03/25 04:01:02
5 (1)
The error is saying that two different interrupt handlers are defined for a single interrupt vector, which is not allowed.  You can see from the error that it is interrupt vector #12.  Having a look at Section 7 of the datasheet for the device on the PIC32 USB Starter Kit II (which is what I assume you are using) shows that vector #12 is for Timer 3.  Also, you can see from the error that a Timer 3 interrupt handler is defined in both firmware/src/system_config/pic32mx_usb_sk2_lcc_pictail_qvga/system_interrupt.c  and firmware/src/system_config/pic32mx_usb_sk2_lcc_pictail_qvga/framework/driver/input/touch_adc/src/drv_touch_adc.c.  I'm not familiar enough with that example project to know which one of those is supposed to be used, but in Harmony you will usually find interrupts put into the former location, so I'd lean towards that.
#2
DP06
Starting Member
  • Total Posts : 79
  • Reward points : 0
  • Joined: 2014/11/14 05:00:13
  • Location: 0
  • Status: offline
Re: Harmony2 PIC32MX aria_quickstart 2020/03/25 03:36:45 (permalink)
0
I tried with MPLABX 5.30 XC32 v2.10 and "BUILD SUCCESSFUL". The example is in folder Harmony v2_06
#3
AlexGiov_uc
Starting Member
  • Total Posts : 46
  • Reward points : 0
  • Joined: 2012/12/10 10:39:21
  • Location: 0
  • Status: offline
Re: Harmony2 PIC32MX aria_quickstart 2020/03/25 03:59:37 (permalink)
0
did DP06 try this "pic32mx_usb_sk2_lcc_pictail_qvga" project configuration?
post edited by AlexGiov_uc - 2020/03/25 04:02:27
#4
AlexGiov_uc
Starting Member
  • Total Posts : 46
  • Reward points : 0
  • Joined: 2012/12/10 10:39:21
  • Location: 0
  • Status: offline
Re: Harmony2 PIC32MX aria_quickstart 2020/03/25 04:13:22 (permalink)
0
TO COMPLETE THIS THREAD
 
As jdeguire said the problem was on two different interrupt handlers defined for a single interrupt vector, which is not allowed.
In this Harmony example the definition in the "firmware/src/system_config/pic32mx_usb_sk2_lcc_pictail_qvga/system_interrupt.c" is not used so you can comment it out and then the "pic32mx_usb_sk2_lcc_pictail_qvga" project configuration will be compile and run ok on the demo board.
 
To be a little more exhaustive the unused interrupt for the timer 3 is generated by the configuration 
[Harmony Framework Configuration -> Driver -> Timer -> Use Timer Driver?]. The code you need to comment out in "firmware/src/system_config/pic32mx_usb_sk2_lcc_pictail_qvga/system_interrupt.c" is the following:
 
// AlexGiov: Configuration error, see: https://www.microchip.com...;m=1133241&mpage=1
//void __ISR(_TIMER_3_VECTOR, ipl1AUTO) IntHandlerDrvTmrInstance0(void)
//{
// PLIB_INT_SourceFlagClear(INT_ID_0,INT_SOURCE_TIMER_3);
//}
/*******************************************************************************
End of File
*/
 
#5
DP06
Starting Member
  • Total Posts : 79
  • Reward points : 0
  • Joined: 2014/11/14 05:00:13
  • Location: 0
  • Status: offline
Re: Harmony2 PIC32MX aria_quickstart 2020/03/25 04:20:34 (permalink)
0
yes, "pic32mx_usb_sk2_lcc_pictail_qvga".
 
 
#6
Jump to:
© 2020 APG vNext Commercial Version 4.5