Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

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 ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists