Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


PIC32 port interrupt problem

Posted by wne on December 15, 2009
My code uses int1, int2 and int3. I set break points in each of those ISR and run my code in debug mode. When I trigger the pins, the interrupts never happen. When I stop the code, I can observe that the INTx interrupt flags were set. Any clue on what happen here?

RE: PIC32 port interrupt problem

Posted by Dave on December 15, 2009
Do you think this is something to do with FreeRTOS?

RE: PIC32 port interrupt problem

Posted by mike costa on December 15, 2009
If you never make it to the ISR, the problem is not with FreeRTOS. check your pin settings. make sure you enable GPIO interrupts for those particular pins.

RE: PIC32 port interrupt problem

Posted by wne on December 16, 2009
Thanks for all the answers. I am new to FreeRTOS, so, getting confused where should I look the cause. Now I fixed it. I declared:

void __attribute__((interrupt(ipl1), vector(_EXTERNAL_1_VECTOR))) Membrane_Select_ISR(void)
But, it does not set the interrupt priority. I have to add this

IPC1bits.INT1IP = 1;

then, it works. Just don't know why.

[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers


STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner