About FreeRTOSConfig.h and

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

About FreeRTOSConfig.h and

239 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by arturn on Fri May 31 11:04:03 MST 2013
Hi!

I'm working with LPCXpresso v5.1.2 , in my workspace I have a project named FreeRTOS_Library, some aditional library projects and the main project named Main01.

I'm trying to use vApplicationIdleHook to set MCU in sleep mode, but vApplicationIdleHook It's never called..

I've set config_USE_IDLE_HOOK to 1 in FreeRTOSConfig.h Main01 project, but when I start to debug, a watch to config_USE_IDLE_HOOK shows 0 value..

In main.c from Main01 I include FreeRTOS.h , should I insert also FreeRTOSConfig.h ?
It's seems to compiler include only FreeRTOSConfig.h from FreeRTOS_Library and not from my project...

Can anyone help-me?

Thnks!
0 Kudos
1 Reply

214 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by  on Mon Jun 03 10:25:26 MST 2013
If FreeRTOS is being built as a library, then you will have to perform a complete clean and rebuild of the library for changed in FreeRTOSConfig.h to take effect.  Just building the project that references the library will not necessarily cause this to happen automatically.
0 Kudos