Quality RTOS & Embedded Software

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


FreeRTOS - CHANGE NOTICE Interrupt - Pic32Mx

Posted by stratodream on June 18, 2017

Hi, I'm working with FreeRTOSv9.0.0 and I have a BMP085 pressure sensor that has an End Of Conversion Pin. I would like to use this pin to manage a (CHANGE NOTICE) interrupt on my Pic32 PIC32MX795F512L.

After vTaskStartScheduler(); start my task and in the init of the task i wrote this code : ~~~ TRISBbits.TRISB0 = 0; CNCONbits.ON = 1;
CNENbits.CNEN2 = 1;
CNPUEbits.CNPUE2 = 1;
IPC6bits.CNIP = 1; IEC1bits.CNIE = 1; IFS1bits.CNIF = 0;
INTCONbits.MVEC = 1; asm volatile("ei"); ~~~

than i wrote the ISR as follow :

~~~ void _ISR(CHANGENOTICEVECTOR, IPL1SOFT) vCNInterruptHandler (void) {

MyFlag = 1;
IFS1bits.CNIF = 0; 

} ~~~

About the hardware connection it's all'ok, i already tested the EOC (end of conversion) signal presence and the Pic pin (corresponding to RB0 PORT).

The issue is that the ISR is never executed.

Thanks in advance. Best Regards

FreeRTOS - CHANGE NOTICE Interrupt - Pic32Mx

Posted by rtel on June 18, 2017

What have you done to establish that the issue is related to FreeRTOS. For example, are you implying that in a bare metal project (without FreeRTOS) the interrupt works ok, but in a multi-threaded FreeRTOS project it doesn't. I'm afraid we can't support chip specific interrupt configuration, as per the code you posted.

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

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

Latest News

Version 10.1.0 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